[U-Boot] [PATCH 1/3] davinci: spl: use correct macro to select boot device

Fabien Parent fparent at baylibre.com
Tue Dec 6 14:48:28 CET 2016


The macro used to select the boot device is not the intended one. It
should be CONFIG_SPL_NAND_LOAD and not CONFIG_SPL_NAND_SIMPLE.

Using the correct config option will help move them to Kconfig option.

Every davinci board that use the SPL are defining both
CONFIG_SPL_NAND_LOAD and CONFIG_SPL_NAND_SIMPLE at the same place, so
there should be no issue created by this change.

Signed-off-by: Fabien Parent <fparent at baylibre.com>
---
 arch/arm/mach-davinci/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-davinci/spl.c b/arch/arm/mach-davinci/spl.c
index 0aeaa7d8b7..9d5a173701 100644
--- a/arch/arm/mach-davinci/spl.c
+++ b/arch/arm/mach-davinci/spl.c
@@ -52,7 +52,7 @@ u32 spl_boot_mode(const u32 boot_device)
 
 u32 spl_boot_device(void)
 {
-#ifdef CONFIG_SPL_NAND_SIMPLE
+#ifdef CONFIG_SPL_NAND_LOAD
 	return BOOT_DEVICE_NAND;
 #elif defined(CONFIG_SPL_SPI_LOAD)
 	return BOOT_DEVICE_SPI;
-- 
2.11.0



More information about the U-Boot mailing list