diff options
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index a06c5c8a14a8..64559e8af14b 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -244,9 +244,17 @@ static int usbhs_get_id(struct platform_device *pdev) | |||
244 | return gpio_get_value(GPIO_PTB3); | 244 | return gpio_get_value(GPIO_PTB3); |
245 | } | 245 | } |
246 | 246 | ||
247 | static void usbhs_phy_reset(struct platform_device *pdev) | ||
248 | { | ||
249 | /* enable vbus if HOST */ | ||
250 | if (!gpio_get_value(GPIO_PTB3)) | ||
251 | gpio_set_value(GPIO_PTB5, 1); | ||
252 | } | ||
253 | |||
247 | static struct renesas_usbhs_platform_info usbhs_info = { | 254 | static struct renesas_usbhs_platform_info usbhs_info = { |
248 | .platform_callback = { | 255 | .platform_callback = { |
249 | .get_id = usbhs_get_id, | 256 | .get_id = usbhs_get_id, |
257 | .phy_reset = usbhs_phy_reset, | ||
250 | }, | 258 | }, |
251 | .driver_param = { | 259 | .driver_param = { |
252 | .buswait_bwait = 4, | 260 | .buswait_bwait = 4, |