[U-Boot] [PATCH 3/3] sunxi:Added difference MMC SLOT for booting
加特技的肖特基
h at iloli.xyz
Mon Jun 29 11:48:05 CEST 2015
From 94a30632fb9db555b8dbfac4e46c922c73371960 Mon Sep 17 00:00:00 2001
From: Zhi Yuan Wan <dv.xw at qq.com>
Date: Thu, 25 Jun 2015 20:03:58 +0800
Subject: [PATCH 3/3] sunxi:Added difference MMC SLOT for booting
Signed-off-by: Zhi Yuan Wan <dv.xw at qq.com>
---
board/sunxi/Kconfig | 6 ++++++
configs/Mele_I7_SD2_defconfig | 16 ++++++++++++++++
include/configs/sunxi-common.h | 2 ++
3 files changed, 24 insertions(+)
create mode 100644 configs/Mele_I7_SD2_defconfig
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
index b2eca51..b711542 100644
--- a/board/sunxi/Kconfig
+++ b/board/sunxi/Kconfig
@@ -280,6 +280,12 @@ config MMC_SUNXI_SLOT_EXTRA
slot or emmc on mmc1 - mmc3. Setting this to 1, 2 or 3 will enable
support for this.
+config MMC_SUNXI_SLOT
+ int "default boot mmc slot number"
+ default 0
+ ---help---
+ sunxi always boot from slot 0, but you still can modify the default setting of mmc slot number.
+
config SPL_NAND_SUPPORT
bool "SPL/NAND mode support"
depends on SPL
diff --git a/configs/Mele_I7_SD2_defconfig b/configs/Mele_I7_SD2_defconfig
new file mode 100644
index 0000000..7fab694
--- /dev/null
+++ b/configs/Mele_I7_SD2_defconfig
@@ -0,0 +1,16 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN6I=y
+CONFIG_MMC_SUNXI_SLOT=2
+CONFIG_MMC_SUNXI_SLOT_EXTRA=0
+CONFIG_DRAM_ZQ=120
+CONFIG_USB1_VBUS_PIN="PC27"
+CONFIG_USB2_VBUS_PIN=""
+CONFIG_DEFAULT_DEVICE_TREE="sun6i-a31-i7"
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="USB_EHCI,SUNXI_GMAC"
+CONFIG_ETH_DESIGNWARE=y
+CONFIG_AXP221_DCDC1_VOLT=3300
+CONFIG_AXP221_DLDO1_VOLT=3300
+CONFIG_AXP221_DLDO4_VOLT=3300
+CONFIG_AXP221_ALDO1_VOLT=3300
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 07db736..b32c1bf 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -146,7 +146,9 @@
#define CONFIG_GENERIC_MMC
#define CONFIG_CMD_MMC
#define CONFIG_MMC_SUNXI
+#ifndef CONFIG_MMC_SUNXI_SLOT
#define CONFIG_MMC_SUNXI_SLOT 0
+#endif
#if !defined(CONFIG_SPL_NAND_SUPPORT)
#define CONFIG_ENV_IS_IN_MMC
#define CONFIG_SYS_MMC_ENV_DEV 0 /* first detected MMC controller */
--
1.7.9.5
More information about the U-Boot
mailing list