From: Fabien Parent Date: Tue, 6 Dec 2016 14:48:28 +0100 Subject: [U-Boot] [PATCH 1/3] davinci: spl: use correct macro to select boot device In-Reply-To: <20161206134830.22130-1-fparent@baylibre.com> References: <20161206134830.22130-1-fparent@baylibre.com> Message-ID: <20161206134830.22130-2-fparent@baylibre.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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