summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra
diff options
context:
space:
mode:
authorVenkat Moganty <vmoganty@nvidia.com>2010-03-19 13:58:40 +0530
committerGary King <gking@nvidia.com>2010-03-19 07:36:55 -0800
commitb5e2a330f8101221f082648feba49bf0da2a69b7 (patch)
tree7d6ee8153c4e1757473c1e73ca80547ec84cf6d1 /arch/arm/mach-tegra
parent115f07bd49dea978ad55fb2ffa5a7004e40a1eea (diff)
tegra usb:Enable host based on the odm usb property
USB host is getting enabled when the odm usb property is set to None. During the system initialization host enable condition was not checked properly when Odm USB mode property is set to "NvOdmUsbModeType_None". Due to the wrong condition, host controller is turned on and consuming the power. Bug 665409: [whistler/android/power] - USB power consumption has increased Tested on AP20 whistler Change-Id: I47622e1da6ca2c9edd107df9b5e6de3953260f5c Reviewed-on: http://git-master/r/908 Tested-by: Dara Ramesh <dramesh@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra')
-rwxr-xr-xarch/arm/mach-tegra/init_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/init_common.c b/arch/arm/mach-tegra/init_common.c
index 62b8547ce991..c890fb66bdc0 100755
--- a/arch/arm/mach-tegra/init_common.c
+++ b/arch/arm/mach-tegra/init_common.c
@@ -606,7 +606,8 @@ static void __init tegra_register_usb_host(void)
struct platform_device *platdev = NULL;
p = NvOdmQueryGetUsbProperty(NvOdmIoModule_Usb, i);
- if (!p || (p->UsbMode & NvOdmUsbModeType_Device))
+ if (!p || !((p->UsbMode & NvOdmUsbModeType_Host) ||
+ (p->UsbMode & NvOdmUsbModeType_OTG)))
continue;
platdev = platform_device_alloc("tegra-ehci", i);