From c5878e4113cf6428ae16ca20137c603b931bd780 Mon Sep 17 00:00:00 2001 From: Steve Kipisz Date: Sat, 2 Mar 2013 08:55:27 -0600 Subject: 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 --- include/configs/am335x_evm.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include') 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) -- cgit v1.2.3