ARM: omap3_logic: Fix SPL boot failure when EHCI enabled
authorAdam Ford <aford173@gmail.com>
Thu, 22 Aug 2019 20:32:42 +0000 (15:32 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2019 15:46:27 +0000 (11:46 -0400)
Some of the USB code is still being built into SPL even when the
SPL menu options have it explicitly disabled for SPL. Unit there is
a better solution, This patch undefines CONFIG_USB_EHCI_OMAP when
building SPL which reduces the code and lets the board boot again.

Fixes: 25e4ff45b17d ("ARM: omap3_logic: Enable OMAP EHCI support
for SOM-LV Boards")

Signed-off-by: Adam Ford <aford173@gmail.com>
include/configs/omap3_logic.h

index b7c3ddf564db8d898fa57a1230efb136fe0f493e..90292ae31211f1922f696deacbd16ecffc66b3a7 100644 (file)
@@ -30,6 +30,9 @@
 /* I2C */
 #define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* EEPROM AT24C64      */
 
+#ifdef CONFIG_SPL_BUILD
+#undef CONFIG_USB_EHCI_OMAP
+#endif
 #ifdef CONFIG_USB_EHCI_OMAP
 #define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO       4
 #endif