projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update omap24xx kconfig
[openwrt.git]
/
target
/
linux
/
lantiq
/
patches
/
700-dwc_otg.patch
diff --git
a/target/linux/lantiq/patches/700-dwc_otg.patch
b/target/linux/lantiq/patches/700-dwc_otg.patch
index
7193155
..
8188403
100644
(file)
--- a/
target/linux/lantiq/patches/700-dwc_otg.patch
+++ b/
target/linux/lantiq/patches/700-dwc_otg.patch
@@
-1,6
+1,6
@@
--- a/drivers/usb/Kconfig
+++ b/drivers/usb/Kconfig
--- a/drivers/usb/Kconfig
+++ b/drivers/usb/Kconfig
-@@ -11
1,6 +111
,8 @@
+@@ -11
3,6 +113
,8 @@
source "drivers/usb/host/Kconfig"
source "drivers/usb/host/Kconfig"
@@
-39,9
+39,9
@@
+ bool "HOST ONLY MODE"
+ depends on DWC_OTG
+
+ bool "HOST ONLY MODE"
+ depends on DWC_OTG
+
-+config DWC_OTG_DEVICE_ONLY
-+ bool "DEVICE ONLY MODE"
-+ depends on DWC_OTG
++
#
config DWC_OTG_DEVICE_ONLY
++
#
bool "DEVICE ONLY MODE"
++
#
depends on DWC_OTG
+endchoice
+
+choice
+endchoice
+
+choice
@@
-6335,16
+6335,16
@@
+static int __devinit
+dwc_otg_driver_probe(struct platform_device *_dev)
+{
+static int __devinit
+dwc_otg_driver_probe(struct platform_device *_dev)
+{
-+ int retval = 0;
-+ dwc_otg_device_t *dwc_otg_device;
-+ int32_t snpsid;
++ int retval = 0;
++ dwc_otg_device_t *dwc_otg_device;
++ int pin = (int)_dev->dev.platform_data;
++ int32_t snpsid;
+ struct resource *res;
+ gusbcfg_data_t usbcfg = {.d32 = 0};
+
+ // GPIOs
+ struct resource *res;
+ gusbcfg_data_t usbcfg = {.d32 = 0};
+
+ // GPIOs
-+ if(
_dev->dev.platform_data
>= 0)
++ if(
pin
>= 0)
+ {
+ {
-+ int pin = (int)_dev->dev.platform_data;
+ gpio_request(pin, "usb_power");
+ gpio_direction_output(pin, 1);
+ gpio_set_value(pin, 1);
+ gpio_request(pin, "usb_power");
+ gpio_direction_output(pin, 1);
+ gpio_set_value(pin, 1);
This page took
0.0455 seconds
and
4
git commands to generate.