summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/omap3/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/cpu/armv7/omap3/board.c')
-rw-r--r--arch/arm/cpu/armv7/omap3/board.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap3/board.c b/arch/arm/cpu/armv7/omap3/board.c
index 29228160c..2cd2df519 100644
--- a/arch/arm/cpu/armv7/omap3/board.c
+++ b/arch/arm/cpu/armv7/omap3/board.c
@@ -56,7 +56,18 @@ const struct gpio_bank *const omap_gpio_bank = gpio_bank_34xx;
* We would not typically need to save these parameters in regular
* U-Boot. This is needed only in SPL at the moment.
*/
+
+/*
+ * We need two different builds, one for UART and one for NAND.
+ * In the future, consider changing this to make NAND the default,
+ * and if it isn't there or isn't working, try UART.
+ */
+
+#ifdef SPL_BOOT_DEVICE_UART
+u32 omap3_boot_device = BOOT_DEVICE_UART;
+#else
u32 omap3_boot_device = BOOT_DEVICE_NAND;
+#endif
/* auto boot mode detection is not possible for OMAP3 - hard code */
u32 spl_boot_mode(void)