usb: phy: generic: Add gpio_reset to platform data
authorRoger Quadros <rogerq@ti.com>
Tue, 24 Sep 2013 08:53:47 +0000 (11:53 +0300)
committerFelipe Balbi <balbi@ti.com>
Fri, 4 Oct 2013 14:25:22 +0000 (09:25 -0500)
The GPIO number of the RESET line can be passed to the
driver using the gpio_reset member.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
include/linux/usb/usb_phy_gen_xceiv.h

index f9a7e7bc925be61322a24304076503bd918a520a..42f3b71a97754cb9fde449a8350dc3daee2c06c7 100644 (file)
@@ -9,7 +9,8 @@ struct usb_phy_gen_xceiv_platform_data {
 
        /* if set fails with -EPROBE_DEFER if can't get regulator */
        unsigned int needs_vcc:1;
-       unsigned int needs_reset:1;
+       unsigned int needs_reset:1;     /* deprecated */
+       int gpio_reset;
 };
 
 #if IS_ENABLED(CONFIG_NOP_USB_XCEIV)