am33xx: support for booting via usbeth
authorIlya Yanok <ilya.yanok@cogentembedded.com>
Tue, 5 Feb 2013 11:36:25 +0000 (11:36 +0000)
committerTom Rini <trini@ti.com>
Mon, 18 Feb 2013 18:48:04 +0000 (13:48 -0500)
This patch adds BOOT_DEVICE define for USB booting and fixes
spl_board_init function to call arch_misc_init (this is the place there
musb is initialized).

Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
arch/arm/cpu/armv7/omap-common/boot-common.c
arch/arm/include/asm/arch-am33xx/spl.h

index 2b584e0a53755ec0164a0412a9449a57760af13f..1c8b6177dd5f8912046222569ecf505a3dc27f86 100644 (file)
@@ -55,6 +55,9 @@ void spl_board_init(void)
 #ifdef CONFIG_SPL_NAND_SUPPORT
        gpmc_init();
 #endif
+#if defined(CONFIG_AM33XX) && defined(CONFIG_SPL_MUSB_NEW_SUPPORT)
+       arch_misc_init();
+#endif
 }
 
 int board_mmc_init(bd_t *bis)
index 644ff353febdfea316bc6d0978995367743faa82..e961ce0578a8e7839bc7c1ba9c3899c00e4241c2 100644 (file)
@@ -29,6 +29,7 @@
 #define BOOT_DEVICE_MMC2       9       /* eMMC or daughter card */
 #define BOOT_DEVICE_SPI                11
 #define BOOT_DEVICE_UART       65
+#define BOOT_DEVICE_USBETH     68
 #define BOOT_DEVICE_CPGMAC     70
 #define BOOT_DEVICE_MMC2_2      0xFF
 #endif