aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHao Wu <hao.wu@intel.com>2010-12-09 10:37:43 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-09 10:37:43 +0000
commit7538441b8739d9f1072a3d431ae64c00cce12ef0 (patch)
treea218b4e6d57ae4f569c9ef542e1381560bb7cc74
parentb7bfe7d6f50386cba8b265271fa76772ea4d3418 (diff)
downloadmrst-s0i3-test-7538441b8739d9f1072a3d431ae64c00cce12ef0.tar.gz
mrst-s0i3-test-7538441b8739d9f1072a3d431ae64c00cce12ef0.tar.xz
mrst-s0i3-test-7538441b8739d9f1072a3d431ae64c00cce12ef0.zip
usb: ehci-pci: add Intel Penwell USB Host Power budget limitation
Intel Penwell USB Host only can provide 200mA via its OTG port. so add power budget limitaition for power supply safety on OTG port. Signed-off-by: Hao Wu <hao.wu@intel.com>
-rw-r--r--drivers/usb/host/ehci-pci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 48215e591dc..c84add2096e 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -104,6 +104,11 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
ehci->has_hostpc = 1;
ehci->has_otg = 1;
force_otg_hc_mode = 1;
+
+ /* For Penwell, Power budget limit is 200mA */
+ if (pdev->device == 0x0829)
+ hcd->power_budget = 200;
+
hcd->has_sram = 1;
hcd->sram_no_payload = 1;
sram_init(hcd);