ARM: am3517-evm: Disable CONFIG_USB_EHCI_OMAP in SPL
authorAdam Ford <aford173@gmail.com>
Thu, 22 Aug 2019 21:44:03 +0000 (16:44 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2019 15:46:30 +0000 (11:46 -0400)
Found accidentally in omap3_logic, CONFIG_USB_EHCI_OMAP adds some
code size to SPL, so this patch disables it on the am3517-evm to
reduce the code a bit since it's tight for space.

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

index 63489133a880cb0599521d7320378cd95b007032..3e5f0b1992f3ccd1a1c68bbd8c3cbf4c03a387ab 100644 (file)
  * Enable CONFIG_USB_MUSB_HOST for Host functionalities MSC, keyboard
  * Enable CONFIG_USB_MUSB_GADGET for Device functionalities.
  */
-
+#ifdef CONFIG_SPL_BUILD
+#undef CONFIG_USB_EHCI_OMAP
+#else
 #define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO       57
+#endif
 
 /* I2C */