usb/ehci-pci: remove 200mA current limitation for DV
authorWu, Hao <hao.wu@intel.com>
Wed, 25 Apr 2012 14:00:53 +0000 (22:00 +0800)
committerbuildbot <buildbot@intel.com>
Sat, 28 Apr 2012 13:42:36 +0000 (06:42 -0700)
BZ: 33514

As in DV, we can support 500mA so the 200mA budget limitation
should be removed.

Change-Id: If70b2aa4a12736229ef66bd608eba0bfd3a0b48c
Signed-off-by: Wu, Hao <hao.wu@intel.com>
Reviewed-on: http://android.intel.com:8080/46054
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Reviewed-by: Tang, Jianqiang <jianqiang.tang@intel.com>
Reviewed-by: Zhuang, Jin Can <jin.can.zhuang@intel.com>
Reviewed-by: Meng, Zhe <zhe.meng@intel.com>
Tested-by: Meng, Zhe <zhe.meng@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/usb/host/ehci-pci.c

index ffbc986..1ba2aeb 100644 (file)
@@ -194,9 +194,13 @@ static int ehci_pci_setup(struct usb_hcd *hcd)
 #endif
                        force_otg_hc_mode = 1;
 
+#ifdef CONFIG_BOARD_REDRIDGE
+                       hcd->power_budget = 500;
+#else
                        /* For Penwell, Power budget limit is 200mA */
                        if (pdev->device == 0x0829 || pdev->device == 0xE006)
                                hcd->power_budget = 200;
+#endif
 
                        hcd->has_sram = 1;
                        /*