USB: EHCI: Add I2C support for SMSC hsic hub
Currently default configuration will be active
during SMSC hub enumeration. For changing the default
configuration, requires I2C support for configuring
the configurable parameters of SMSC hub like VID,PID.
Change-Id: Ie0449b166ddaae990b9a69c3a75f8059250faf0e
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-8960-gpiomux.c b/arch/arm/mach-msm/board-8960-gpiomux.c
index bfb8be3..2cb923c 100644
--- a/arch/arm/mach-msm/board-8960-gpiomux.c
+++ b/arch/arm/mach-msm/board-8960-gpiomux.c
@@ -539,6 +539,9 @@
[GPIOMUX_SUSPENDED] = &hsic_sus_cfg,
},
},
+};
+
+static struct msm_gpiomux_config msm8960_hsic_hub_configs[] = {
{
.gpio = 91, /* HSIC_HUB_RESET */
.settings = {
@@ -706,6 +709,11 @@
(PLATFORM_IS_CHARM25() || machine_is_msm8960_liquid()))
msm_gpiomux_install(msm8960_hsic_configs,
ARRAY_SIZE(msm8960_hsic_configs));
+
+ if ((SOCINFO_VERSION_MAJOR(socinfo_get_version()) != 1) &&
+ machine_is_msm8960_liquid())
+ msm_gpiomux_install(msm8960_hsic_hub_configs,
+ ARRAY_SIZE(msm8960_hsic_hub_configs));
#endif
#ifdef CONFIG_FB_MSM_HDMI_MSM_PANEL