From 8eb15a787c558fee98b0fa2a66ff0849c732edcc Mon Sep 17 00:00:00 2001 From: Steve Kipisz Date: Fri, 15 Mar 2013 08:32:53 -0500 Subject: am335x_evm:Add restore flash target and PG1.0 USB SPL support This patch adds the make targets for PG1.0 - am335x_evm_uart_usbspl - am335x_evm_restore_flash_usbspl It also add the make target - am335x_evm_restore_flash Signed-off-by: Steve Kipisz --- common/spl/spl.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common/spl/spl.c') diff --git a/common/spl/spl.c b/common/spl/spl.c index 4765e41d9c..005912655b 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -180,6 +180,13 @@ void board_init_r(gd_t *dummy1, ulong dummy2) boot_device = spl_boot_device(); debug("boot device - %d\n", boot_device); + +#ifdef CONFIG_UART_THEN_USB_SPL + /* Hack: load SPL via UART, then use USB */ + if (boot_device == BOOT_DEVICE_UART) + boot_device = BOOT_DEVICE_USBETH; +#endif + switch (boot_device) { #ifdef CONFIG_SPL_RAM_DEVICE case BOOT_DEVICE_RAM: -- cgit v1.2.3