summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kipisz <s-kipisz2@ti.com>2013-03-02 08:55:27 -0600
committerFranklin S. Cooper Jr <fcooper@ti.com>2013-03-20 12:43:15 -0500
commitc5878e4113cf6428ae16ca20137c603b931bd780 (patch)
tree81fd66978b3abc9844e4a17c925b21f1bae7ef0c
parentb94c42dd9075a89941f4ad53e66422a04c67093e (diff)
am335x_evm:Add USB SPL restore flash option
This patch adds a build target to build restore flash images that use a debrick script to restore flash over USB. Signed-off-by: Steve Kipisz <s-kipisz2@ti.com>
-rw-r--r--boards.cfg1
-rw-r--r--include/configs/am335x_evm.h15
2 files changed, 16 insertions, 0 deletions
diff --git a/boards.cfg b/boards.cfg
index cb2dd51101..4080e6db3e 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -238,6 +238,7 @@ am335x_evm_uart3 arm armv7 am335x ti
am335x_evm_uart4 arm armv7 am335x ti am33xx am335x_evm:SERIAL5,CONS_INDEX=5
am335x_evm_uart5 arm armv7 am335x ti am33xx am335x_evm:SERIAL6,CONS_INDEX=6
am335x_evm_usbspl arm armv7 am335x ti am33xx am335x_evm:SERIAL1,CONS_INDEX=1,SPL_USBETH_SUPPORT
+am335x_evm_restore_flash_usbspl arm armv7 am335x ti am33xx am335x_evm:SERIAL1,CONS_INDEX=1,RESTORE_FLASH,SPL_USBETH_SUPPORT
highbank arm armv7 highbank - highbank
mx51_efikamx arm armv7 mx51_efikamx genesi mx5 mx51_efikamx:MACH_TYPE=MACH_TYPE_MX51_EFIKAMX,IMX_CONFIG=board/genesi/mx51_efikamx/imximage_mx.cfg
mx51_efikasb arm armv7 mx51_efikamx genesi mx5 mx51_efikamx:MACH_TYPE=MACH_TYPE_MX51_EFIKASB,IMX_CONFIG=board/genesi/mx51_efikamx/imximage_sb.cfg
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index fbfd59d663..7752ca9993 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -148,6 +148,7 @@
#endif
+#ifndef CONFIG_RESTORE_FLASH
#define CONFIG_BOOTCOMMAND \
"mmc dev ${mmcdev}; if mmc rescan; then " \
"echo SD/MMC found on device ${mmcdev};" \
@@ -170,6 +171,20 @@
"run nandboot;" \
"fi;" \
+#else
+
+#undef CONFIG_BOOTDELAY
+#define CONFIG_BOOTDELAY 0
+
+#define CONFIG_BOOTCOMMAND \
+ "setenv autoload no; " \
+ "setenv ethact usb_ether; " \
+ "dhcp; " \
+ "if tftp 80000000 debrick.scr; then " \
+ "source 80000000; " \
+ "fi"
+#endif
+
/* Clock Defines */
#define V_OSCK 24000000 /* Clock output from T2 */
#define V_SCLK (V_OSCK)