From 4fc2bd56253f8cc0c10fe2cfadd40a14f136e467 Mon Sep 17 00:00:00 2001 From: Luo Ji Date: Thu, 22 Mar 2018 19:05:13 +0800 Subject: [PATCH] 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 --- configs/mx8qm_mek_androidauto_defconfig | 2 -- configs/mx8qxp_mek_androidauto_defconfig | 2 -- include/configs/imx8qm_mek_android_auto.h | 7 +++++++ include/configs/imx8qxp_mek_android_auto.h | 7 +++++++ 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/configs/mx8qm_mek_androidauto_defconfig b/configs/mx8qm_mek_androidauto_defconfig index 48d1a4cbfe..51d2add68e 100644 --- a/configs/mx8qm_mek_androidauto_defconfig +++ b/configs/mx8qm_mek_androidauto_defconfig @@ -18,9 +18,7 @@ CONFIG_DM_I2C=y CONFIG_SYS_I2C_IMX_LPI2C=y CONFIG_CMD_I2C=y -CONFIG_CMD_USB=y CONFIG_USB=y -CONFIG_DM_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_GADGET=y diff --git a/configs/mx8qxp_mek_androidauto_defconfig b/configs/mx8qxp_mek_androidauto_defconfig index 6067c102b8..be68a63ed0 100644 --- a/configs/mx8qxp_mek_androidauto_defconfig +++ b/configs/mx8qxp_mek_androidauto_defconfig @@ -20,9 +20,7 @@ CONFIG_CMD_I2C=y CONFIG_I2C_MUX=y CONFIG_I2C_MUX_PCA954x=y -CONFIG_CMD_USB=y CONFIG_USB=y -CONFIG_DM_USB=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_GADGET=y diff --git a/include/configs/imx8qm_mek_android_auto.h b/include/configs/imx8qm_mek_android_auto.h index 48b648cf78..f84382e2a9 100644 --- a/include/configs/imx8qm_mek_android_auto.h +++ b/include/configs/imx8qm_mek_android_auto.h @@ -14,6 +14,13 @@ #define CONFIG_CMD_READ #define CONFIG_USB_GADGET_VBUS_DRAW 2 +/* USB OTG controller configs */ +#ifdef CONFIG_USB_EHCI_HCD +#ifndef CONFIG_MXC_USB_PORTSC +#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) +#endif +#endif + #define CONFIG_ENABLE_LOCKSTATUS_SUPPORT #define CONFIG_ANDROID_AB_SUPPORT #define CONFIG_AVB_SUPPORT diff --git a/include/configs/imx8qxp_mek_android_auto.h b/include/configs/imx8qxp_mek_android_auto.h index a10855e25e..0cc3adb850 100644 --- a/include/configs/imx8qxp_mek_android_auto.h +++ b/include/configs/imx8qxp_mek_android_auto.h @@ -14,6 +14,13 @@ #define CONFIG_CMD_READ #define CONFIG_USB_GADGET_VBUS_DRAW 2 +/* USB OTG controller configs */ +#ifdef CONFIG_USB_EHCI_HCD +#ifndef CONFIG_MXC_USB_PORTSC +#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) +#endif +#endif + #define CONFIG_ENABLE_LOCKSTATUS_SUPPORT #define CONFIG_ANDROID_AB_SUPPORT #define CONFIG_AVB_SUPPORT -- 2.17.1