Skip to content

Commit 9be37bd

Browse files
committed
rockchip: Implement Tow-Boot predictable boot order scheme
Note that this relies on distroboot being put back into place for rockchip.
1 parent cc3238e commit 9be37bd

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

include/configs/rockchip-common.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,20 @@
1313

1414
#ifndef CONFIG_SPL_BUILD
1515

16-
/* First try to boot from SD (index 1), then eMMC (index 0) */
16+
/*
17+
* eMMC: index 0
18+
* SD: index 1
19+
*/
1720
#if IS_ENABLED(CONFIG_CMD_MMC)
21+
#if defined(CONFIG_TOW_BOOT_PREDICTABLE_BOOT_PREFER_INTERNAL)
22+
#define BOOT_TARGET_MMC(func) \
23+
func(MMC, mmc, 0) \
24+
func(MMC, mmc, 1)
25+
#elif defined(CONFIG_TOW_BOOT_PREDICTABLE_BOOT_PREFER_EXTERNAL)
1826
#define BOOT_TARGET_MMC(func) \
1927
func(MMC, mmc, 1) \
2028
func(MMC, mmc, 0)
29+
#endif
2130
#else
2231
#define BOOT_TARGET_MMC(func)
2332
#endif

0 commit comments

Comments
 (0)