summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/eukrea_cpuimx25/lowlevel.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-01-28 09:28:25 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-01-31 21:30:32 +0100
commit0e80f5b4cc0d2b6b5fdeed99785ba88fe1753337 (patch)
tree5a60cbc8de20599fa6b93f07824d4bee57d2e3d3 /arch/arm/boards/eukrea_cpuimx25/lowlevel.c
parent23f23a7224fc4de6a4be42350df35d589e929c18 (diff)
downloadbarebox-0e80f5b4cc0d2b6b5fdeed99785ba88fe1753337.tar.gz
barebox-0e80f5b4cc0d2b6b5fdeed99785ba88fe1753337.tar.xz
ARM: i.MX: cleanup bootmode selection
Which bootmode is selected has no longer to be chosen by Kconfig. The boards can decide themselves which bootmode they want to support. This makes it unnecesary to ask the user which bootmode shall be supported, so the "Select boot mode" becomes invisible and both support will be compiled in as needed by the boards. NAND_IMX_BOOT goes away and the already existing ARCH_IMX_EXTERNAL_BOOT_NAND can now be used for the boards to depend on external nand boot. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/eukrea_cpuimx25/lowlevel.c')
-rw-r--r--arch/arm/boards/eukrea_cpuimx25/lowlevel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/boards/eukrea_cpuimx25/lowlevel.c b/arch/arm/boards/eukrea_cpuimx25/lowlevel.c
index 07659f53fc..f0bf2c7fd5 100644
--- a/arch/arm/boards/eukrea_cpuimx25/lowlevel.c
+++ b/arch/arm/boards/eukrea_cpuimx25/lowlevel.c
@@ -127,12 +127,12 @@ void __bare_init __naked barebox_arm_reset_vector(void)
writeb(0xda, MX25_CSD0_BASE_ADDR + 0x1000000);
writel(0x82216080, MX25_ESDCTL_BASE_ADDR + IMX_ESDCTL0);
-#ifdef CONFIG_NAND_IMX_BOOT
- /* setup a stack to be able to call imx25_barebox_boot_nand_external() */
- arm_setup_stack(STACK_BASE + STACK_SIZE - 12);
+ if (IS_ENABLED(CONFIG_ARCH_IMX_EXTERNAL_BOOT_NAND)) {
+ /* setup a stack to be able to call imx25_barebox_boot_nand_external() */
+ arm_setup_stack(MX25_IRAM_BASE_ADDR + MX25_IRAM_SIZE - 12);
- imx25_barebox_boot_nand_external(0);
-#endif
+ imx25_barebox_boot_nand_external(0);
+ }
out:
imx25_barebox_entry(0);
}