aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobie Basak <robie.basak@ubuntu.com>2012-02-16 09:02:17 -0700
committerJohn Rigby <john.rigby@linaro.org>2012-04-25 07:54:07 -0600
commit91e0005be2cd9612d102499ed0140909daffb0a9 (patch)
tree4717d7580ff2e04e14fc468b20e168fb8f038c55 /include
parentc227fd86c0538e5618feda09d1628598b264ec77 (diff)
OMAP4: Force PXE booting when booting via spl-usb
So we don't use boot script on MMC/SD card. Signed-off-by: John Rigby <john.rigby@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/configs/omap4_common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/configs/omap4_common.h b/include/configs/omap4_common.h
index cf3dbf220..2e2af1a4a 100644
--- a/include/configs/omap4_common.h
+++ b/include/configs/omap4_common.h
@@ -173,6 +173,15 @@
"ramdisk_addr_r=0x81600000\0" \
"pxefile_addr_r=0x86000000\0"
+#ifdef CONFIG_SPL_USB
+#define CONFIG_BOOTCOMMAND \
+ "if usb start; then " \
+ "set autoload no; "\
+ "bootp; "\
+ "pxe get;" \
+ "pxe boot;" \
+ "fi"
+#else
#define CONFIG_BOOTCOMMAND \
"if mmc rescan ${mmcdev}; then " \
"if run loadbootscript; then " \
@@ -189,6 +198,7 @@
"pxe get;" \
"pxe boot;" \
"fi"
+#endif
#define CONFIG_AUTO_COMPLETE 1