aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches/700-dwc_otg.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2011-02-01 14:37:35 +0000
committerJohn Crispin <john@openwrt.org>2011-02-01 14:37:35 +0000
commit1e89df511a1506c0d476466f7cb60950522e51e3 (patch)
tree9030ad26ad3d83cda1743b31ce16add02d240f47 /target/linux/lantiq/patches/700-dwc_otg.patch
parente919bd002a7f08d1c893dc3272f1f6332442fc35 (diff)
downloadupstream-1e89df511a1506c0d476466f7cb60950522e51e3.tar.gz
upstream-1e89df511a1506c0d476466f7cb60950522e51e3.tar.bz2
upstream-1e89df511a1506c0d476466f7cb60950522e51e3.zip
* adds profiles to the kernel * fixes 2 compile errors in the usb driver * ioports were not allocated properly
SVN-Revision: 25278
Diffstat (limited to 'target/linux/lantiq/patches/700-dwc_otg.patch')
-rw-r--r--target/linux/lantiq/patches/700-dwc_otg.patch11
1 files changed, 8 insertions, 3 deletions
diff --git a/target/linux/lantiq/patches/700-dwc_otg.patch b/target/linux/lantiq/patches/700-dwc_otg.patch
index ea2a5f7f07..819872c080 100644
--- a/target/linux/lantiq/patches/700-dwc_otg.patch
+++ b/target/linux/lantiq/patches/700-dwc_otg.patch
@@ -5693,7 +5693,7 @@
+}
--- /dev/null
+++ b/drivers/usb/dwc_otg/dwc_otg_driver.c
-@@ -0,0 +1,1269 @@
+@@ -0,0 +1,1274 @@
+/* ==========================================================================
+ * $File: //dwh/usb_iip/dev/software/otg_ipmate/linux/drivers/dwc_otg_driver.c $
+ * $Revision: 1.1.1.1 $
@@ -6342,8 +6342,13 @@
+ gusbcfg_data_t usbcfg = {.d32 = 0};
+
+ // GPIOs
-+ gpio_request(_dev->dev.platform_data, "USB_POWER");
-+ gpio_direction_output(_dev->dev.platform_data, 1);
++ if(_dev->dev.platform_data >= 0)
++ {
++ gpio_request(_dev->dev.platform_data, "usb_power");
++ gpio_direction_output(_dev->dev.platform_data, 1);
++ gpio_set_value(_dev->dev.platform_data, 1);
++ gpio_export(_dev->dev.platform_data, 0);
++ }
+
+ dev_dbg(&_dev->dev, "dwc_otg_driver_probe (%p)\n", _dev);
+