ARM: tegra: macallan: enable OTG ID pin detect through PMIC
Yunfan Zhang [Thu, 28 Mar 2013 07:58:26 +0000 (15:58 +0800)]
Bug 1256755

Change-Id: I86fabdd6da4481cf7365aa0e47fd086817cb9d35
Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com>
Reviewed-on: http://git-master/r/213874
(cherry picked from commit 82cc526af10d41fdea45867ca35e4c91f6668e78)
Reviewed-on: http://git-master/r/219355
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/board-macallan-power.c
arch/arm/mach-tegra/board-macallan.c

index d220119..3806691 100644 (file)
@@ -362,7 +362,7 @@ static struct palmas_pinctrl_platform_data palmas_pinctrl_pdata = {
 struct palmas_extcon_platform_data palmas_extcon_pdata = {
        .connection_name = "palmas-extcon",
        .enable_vbus_detection = true,
-       .enable_id_pin_detection = false,
+       .enable_id_pin_detection = true,
 };
 
 static struct palmas_platform_data palmas_pdata = {
index 4ac27ac..7d61f24 100644 (file)
@@ -374,6 +374,7 @@ static struct tegra_usb_platform_data tegra_udc_pdata = {
        .port_otg = true,
        .has_hostpc = true,
        .support_pmu_vbus = true,
+       .id_det_type = TEGRA_USB_PMU_ID,
        .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
        .op_mode = TEGRA_USB_OPMODE_DEVICE,
        .u_data.dev = {
@@ -399,6 +400,7 @@ static struct tegra_usb_platform_data tegra_ehci1_utmi_pdata = {
        .port_otg = true,
        .has_hostpc = true,
        .support_pmu_vbus = true,
+       .id_det_type = TEGRA_USB_PMU_ID,
        .unaligned_dma_buf_supported = false,
        .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
        .op_mode = TEGRA_USB_OPMODE_HOST,
@@ -426,6 +428,7 @@ static struct tegra_usb_otg_data tegra_otg_pdata = {
        .ehci_device = &tegra_ehci1_device,
        .ehci_pdata = &tegra_ehci1_utmi_pdata,
        .vbus_extcon_dev_name = "palmas-extcon",
+       .id_extcon_dev_name = "palmas-extcon",
 };
 
 static void macallan_usb_init(void)