summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenkat Moganty <vmoganty@nvidia.com>2010-03-24 15:09:04 +0530
committerGary King <gking@nvidia.com>2010-03-24 13:18:31 -0800
commit9e85f24647a2d1f7074a3663c105254e32b6dba4 (patch)
tree9ed7495edda6edb0ed6ba1c11d64335811edf401
parentb488d3228e76fb434010ff5e3f1044ce62196217 (diff)
tegra odm: Enable USB OTG based on the config
Since CONFIG_TEGRA_OTG is not defined in the whistler linux def config file OTG driver is not getting loaded and causing the USB core to malfunction. This is fixed by enabling the usb odm property mode as OTG only based on the CONFIG_TEGRA_OTG. If OTG is not enabled then USB1 port behaves as device by default. Bug 664864:[Mobile LDK\LP1] unable to run LP1 Tested on ap20/whistler/android Change-Id: I0e97596b1341a82652b57afb003c715dd0b7724b Reviewed-on: http://git-master/r/944 Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com> Tested-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
-rwxr-xr-xarch/arm/mach-tegra/odm_kit/query/whistler/nvodm_query.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/odm_kit/query/whistler/nvodm_query.c b/arch/arm/mach-tegra/odm_kit/query/whistler/nvodm_query.c
index 4ef673a080f9..8f59368875a6 100755
--- a/arch/arm/mach-tegra/odm_kit/query/whistler/nvodm_query.c
+++ b/arch/arm/mach-tegra/odm_kit/query/whistler/nvodm_query.c
@@ -1207,7 +1207,11 @@ NvOdmQueryGetUsbProperty(NvOdmIoModule OdmIoModule,
(NvOdmUsbChargerType_SE0 | NvOdmUsbChargerType_SE1 | NvOdmUsbChargerType_SK),
20,
NV_TRUE,
+#ifdef CONFIG_USB_TEGRA_OTG
NvOdmUsbModeType_OTG,
+#else
+ NvOdmUsbModeType_Device,
+#endif
NvOdmUsbIdPinType_CableId,
NvOdmUsbConnectorsMuxType_None,
NV_FALSE