diff options
author | Igor Grinberg <grinberg@compulab.co.il> | 2009-12-06 08:45:43 -0500 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2009-12-13 08:42:57 -0500 |
commit | 1b82e4c32fba96d8805b1e2126ba5382e56fac32 (patch) | |
tree | 4cb7bd20610d198beed7df7b3f87357e0fe14c38 | |
parent | f40542532e96dda5506eb76badea322f2ae4731c (diff) |
[ARM] pxa/em-x270: fix usb hub power up/reset sequence
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
-rw-r--r-- | arch/arm/mach-pxa/em-x270.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/arm/mach-pxa/em-x270.c b/arch/arm/mach-pxa/em-x270.c index 1c0de808b54d..c8a01bc85fde 100644 --- a/arch/arm/mach-pxa/em-x270.c +++ b/arch/arm/mach-pxa/em-x270.c | |||
@@ -497,16 +497,15 @@ static int em_x270_usb_hub_init(void) | |||
497 | goto err_free_vbus_gpio; | 497 | goto err_free_vbus_gpio; |
498 | 498 | ||
499 | /* USB Hub power-on and reset */ | 499 | /* USB Hub power-on and reset */ |
500 | gpio_direction_output(usb_hub_reset, 0); | 500 | gpio_direction_output(usb_hub_reset, 1); |
501 | gpio_direction_output(GPIO9_USB_VBUS_EN, 0); | ||
501 | regulator_enable(em_x270_usb_ldo); | 502 | regulator_enable(em_x270_usb_ldo); |
502 | gpio_set_value(usb_hub_reset, 1); | ||
503 | gpio_set_value(usb_hub_reset, 0); | 503 | gpio_set_value(usb_hub_reset, 0); |
504 | gpio_set_value(usb_hub_reset, 1); | ||
504 | regulator_disable(em_x270_usb_ldo); | 505 | regulator_disable(em_x270_usb_ldo); |
505 | regulator_enable(em_x270_usb_ldo); | 506 | regulator_enable(em_x270_usb_ldo); |
506 | gpio_set_value(usb_hub_reset, 1); | 507 | gpio_set_value(usb_hub_reset, 0); |
507 | 508 | gpio_set_value(GPIO9_USB_VBUS_EN, 1); | |
508 | /* enable VBUS */ | ||
509 | gpio_direction_output(GPIO9_USB_VBUS_EN, 1); | ||
510 | 509 | ||
511 | return 0; | 510 | return 0; |
512 | 511 | ||