diff mbox series

[U-Boot] rockchip: update emmc/sd index for distro boot order

Message ID 1525662348-29570-1-git-send-email-kever.yang@rock-chips.com
State Superseded
Delegated to: Philipp Tomsich
Headers show
Series [U-Boot] rockchip: update emmc/sd index for distro boot order | expand

Commit Message

Kever Yang May 7, 2018, 3:05 a.m. UTC
According to the emmc/sdcard index in dts alias, emmc is 0 and
sdcard is 1, let's update to using correct mmc number for distro
boot order in common header.

series-version: 2
series-changes: 2
- update the commit message

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---

 include/configs/rockchip-common.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/include/configs/rockchip-common.h b/include/configs/rockchip-common.h
index 4062480..d658854 100644
--- a/include/configs/rockchip-common.h
+++ b/include/configs/rockchip-common.h
@@ -16,11 +16,11 @@ 
 
 #ifndef CONFIG_SPL_BUILD
 
-/* First try to boot from SD (index 0), then eMMC (index 1) */
+/* First try to boot from SD (index 1), then eMMC (index 0) */
 #if CONFIG_IS_ENABLED(CMD_MMC)
 	#define BOOT_TARGET_MMC(func) \
-		func(MMC, mmc, 0) \
-		func(MMC, mmc, 1)
+		func(MMC, mmc, 1) \
+		func(MMC, mmc, 0)
 #else
 	#define BOOT_TARGET_MMC(func)
 #endif