diff mbox series

[U-Boot] ARM: am3517-evm: Disable CONFIG_USB_EHCI_OMAP in SPL

Message ID 20190822214403.26468-1-aford173@gmail.com
State Accepted
Commit 9fcea65bca12775c599168641ec1ae15d088800b
Delegated to: Tom Rini
Headers show
Series [U-Boot] ARM: am3517-evm: Disable CONFIG_USB_EHCI_OMAP in SPL | expand

Commit Message

Adam Ford Aug. 22, 2019, 9:44 p.m. UTC
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>

Comments

Tom Rini Aug. 27, 2019, 12:18 a.m. UTC | #1
On Thu, Aug 22, 2019 at 04:44:03PM -0500, Adam Ford wrote:

> 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>
> 
> diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
> index 63489133a8..3e5f0b1992 100644

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index 63489133a8..3e5f0b1992 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -26,8 +26,11 @@ 
  * 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 */