summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/board_late_init.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 20:07:39 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 22:41:59 +0900
commitc3d8f1e8e92fd70abb912942300cf44fff9e9d86 (patch)
tree1ec3c23ba24a893e8e076438ca9de6468115bf74 /arch/arm/mach-uniphier/board_late_init.c
parent539d6e0dbc9634cbf0e14a383d2907e6e462558a (diff)
ARM: uniphier: detect SD boot mode
The planned new SoC supports the SD boot mode. Detect and display it. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/board_late_init.c')
-rw-r--r--arch/arm/mach-uniphier/board_late_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/board_late_init.c b/arch/arm/mach-uniphier/board_late_init.c
index 972dbe8ae5..86b128a91f 100644
--- a/arch/arm/mach-uniphier/board_late_init.c
+++ b/arch/arm/mach-uniphier/board_late_init.c
@@ -68,6 +68,10 @@ int board_late_init(void)
printf("eMMC Boot");
env_set("bootdev", "emmc");
break;
+ case BOOT_DEVICE_MMC2:
+ printf("SD Boot");
+ env_set("bootdev", "sd");
+ break;
case BOOT_DEVICE_NAND:
printf("NAND Boot");
env_set("bootdev", "nand");