diff options
author | Juergen Kilb <J.Kilb@phytec.de> | 2011-04-14 03:31:43 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-05-11 05:09:57 -0400 |
commit | 557f447f21621de9c5447c8702c33b53279822ce (patch) | |
tree | e8daf9667f74cb9f4e9b0b28fb0136a4c48c2434 /drivers | |
parent | 9f381a61f58bb6487c93ce2233bb9992f8ea9211 (diff) |
mfd: Fixed gpio polarity of omap-usb gpio USB-phy reset
With commit 19403165 a main part of ehci-omap.c moved to
drivers/mfd/omap-usb-host.c created by commit 17cdd29d.
Due to this reorganisation the polarity used to reset the
external USB phy changed and USB host doesn't recognize
any devices.
Signed-off-by: Juergen Kilb <J.Kilb@phytec.de>
Acked-by: Felipe Balbi <balbi@ti.com>
Tested-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/omap-usb-host.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 2e165117457b..3ab9ffa00aad 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c | |||
@@ -717,14 +717,14 @@ static int usbhs_enable(struct device *dev) | |||
717 | gpio_request(pdata->ehci_data->reset_gpio_port[0], | 717 | gpio_request(pdata->ehci_data->reset_gpio_port[0], |
718 | "USB1 PHY reset"); | 718 | "USB1 PHY reset"); |
719 | gpio_direction_output | 719 | gpio_direction_output |
720 | (pdata->ehci_data->reset_gpio_port[0], 1); | 720 | (pdata->ehci_data->reset_gpio_port[0], 0); |
721 | } | 721 | } |
722 | 722 | ||
723 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1])) { | 723 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1])) { |
724 | gpio_request(pdata->ehci_data->reset_gpio_port[1], | 724 | gpio_request(pdata->ehci_data->reset_gpio_port[1], |
725 | "USB2 PHY reset"); | 725 | "USB2 PHY reset"); |
726 | gpio_direction_output | 726 | gpio_direction_output |
727 | (pdata->ehci_data->reset_gpio_port[1], 1); | 727 | (pdata->ehci_data->reset_gpio_port[1], 0); |
728 | } | 728 | } |
729 | 729 | ||
730 | /* Hold the PHY in RESET for enough time till DIR is high */ | 730 | /* Hold the PHY in RESET for enough time till DIR is high */ |
@@ -904,11 +904,11 @@ static int usbhs_enable(struct device *dev) | |||
904 | 904 | ||
905 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[0])) | 905 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[0])) |
906 | gpio_set_value | 906 | gpio_set_value |
907 | (pdata->ehci_data->reset_gpio_port[0], 0); | 907 | (pdata->ehci_data->reset_gpio_port[0], 1); |
908 | 908 | ||
909 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1])) | 909 | if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1])) |
910 | gpio_set_value | 910 | gpio_set_value |
911 | (pdata->ehci_data->reset_gpio_port[1], 0); | 911 | (pdata->ehci_data->reset_gpio_port[1], 1); |
912 | } | 912 | } |
913 | 913 | ||
914 | end_count: | 914 | end_count: |