Commit 4fc2bd56253f8cc0c10fe2cfadd40a14f136e467

Authored by Luo Ji
1 parent 73984f1f8e

MA-11617 [Android Auto]Refine USB configs for imx8qm/imx8qxp

Remove some non-required USB configs to reduce the size of u-boot.

Change-Id: Ia27ccc11a119f287c406a6e255decda8e4c77150
Signed-off-by: Luo Ji <ji.luo@nxp.com>

Showing 4 changed files with 14 additions and 4 deletions Side-by-side Diff

configs/mx8qm_mek_androidauto_defconfig
... ... @@ -18,9 +18,7 @@
18 18 CONFIG_SYS_I2C_IMX_LPI2C=y
19 19 CONFIG_CMD_I2C=y
20 20  
21   -CONFIG_CMD_USB=y
22 21 CONFIG_USB=y
23   -CONFIG_DM_USB=y
24 22 CONFIG_USB_EHCI_HCD=y
25 23  
26 24 CONFIG_USB_GADGET=y
configs/mx8qxp_mek_androidauto_defconfig
... ... @@ -20,9 +20,7 @@
20 20 CONFIG_I2C_MUX=y
21 21 CONFIG_I2C_MUX_PCA954x=y
22 22  
23   -CONFIG_CMD_USB=y
24 23 CONFIG_USB=y
25   -CONFIG_DM_USB=y
26 24 CONFIG_USB_EHCI_HCD=y
27 25  
28 26 CONFIG_USB_GADGET=y
include/configs/imx8qm_mek_android_auto.h
... ... @@ -14,6 +14,13 @@
14 14 #define CONFIG_CMD_READ
15 15 #define CONFIG_USB_GADGET_VBUS_DRAW 2
16 16  
  17 +/* USB OTG controller configs */
  18 +#ifdef CONFIG_USB_EHCI_HCD
  19 +#ifndef CONFIG_MXC_USB_PORTSC
  20 +#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
  21 +#endif
  22 +#endif
  23 +
17 24 #define CONFIG_ENABLE_LOCKSTATUS_SUPPORT
18 25 #define CONFIG_ANDROID_AB_SUPPORT
19 26 #define CONFIG_AVB_SUPPORT
include/configs/imx8qxp_mek_android_auto.h
... ... @@ -14,6 +14,13 @@
14 14 #define CONFIG_CMD_READ
15 15 #define CONFIG_USB_GADGET_VBUS_DRAW 2
16 16  
  17 +/* USB OTG controller configs */
  18 +#ifdef CONFIG_USB_EHCI_HCD
  19 +#ifndef CONFIG_MXC_USB_PORTSC
  20 +#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
  21 +#endif
  22 +#endif
  23 +
17 24 #define CONFIG_ENABLE_LOCKSTATUS_SUPPORT
18 25 #define CONFIG_ANDROID_AB_SUPPORT
19 26 #define CONFIG_AVB_SUPPORT