diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-02-14 01:24:26 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-02-23 08:37:56 +0900 |
commit | 784548efb2b76fdbfdb73f6a505a156f90bb1e55 (patch) | |
tree | 1e8457137b8933095298964f8a6cb3675cdedfc4 /arch/arm/mach-uniphier/board_late_init.c | |
parent | 81c847bf3806f2cb275f8b084872b97508823462 (diff) | |
download | u-boot-imx-784548efb2b76fdbfdb73f6a505a156f90bb1e55.zip u-boot-imx-784548efb2b76fdbfdb73f6a505a156f90bb1e55.tar.gz u-boot-imx-784548efb2b76fdbfdb73f6a505a156f90bb1e55.tar.bz2 |
ARM: uniphier: rework spl_boot_device() and related code
The current implementation has ugly switch statements here and there,
and duplicates similar code. Rework it using table lookups for SoC
data and reduce code duplication.
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-uniphier/board_late_init.c b/arch/arm/mach-uniphier/board_late_init.c index ece761f..92dd610 100644 --- a/arch/arm/mach-uniphier/board_late_init.c +++ b/arch/arm/mach-uniphier/board_late_init.c @@ -13,7 +13,7 @@ #include <linux/io.h> #include <../drivers/mtd/nand/denali.h> -#include "boot-mode/boot-device.h" +#include "init.h" static void nand_denali_wp_disable(void) { @@ -62,7 +62,7 @@ int board_late_init(void) { puts("MODE: "); - switch (spl_boot_device_raw()) { + switch (uniphier_boot_device_raw()) { case BOOT_DEVICE_MMC1: printf("eMMC Boot\n"); setenv("bootmode", "emmcboot"); |