diff options
author | Roger Quadros <rogerq@ti.com> | 2013-03-12 13:24:19 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 11:13:54 +0200 |
commit | 1f0972f5b05a674d73e4eb314fa1b6c78e37aef1 (patch) | |
tree | 0c81d65676c11a598c266fce48e3020e4ca4efe7 | |
parent | a937536b868b8369b98967929045f1df54234323 (diff) | |
download | blackbird-op-linux-1f0972f5b05a674d73e4eb314fa1b6c78e37aef1.tar.gz blackbird-op-linux-1f0972f5b05a674d73e4eb314fa1b6c78e37aef1.zip |
usb: phy: nop: Add some parameters to platform data
Add clk_rate parameter to platform data. If supplied, the
NOP phy driver will program the clock to that rate during probe.
Also add 2 flags, needs_vcc and needs_reset.
If the flag is set and the regulator couldn't be found
then the driver will bail out with -EPROBE_DEFER.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | include/linux/usb/nop-usb-xceiv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/usb/nop-usb-xceiv.h b/include/linux/usb/nop-usb-xceiv.h index 28884c717411..148d35171aac 100644 --- a/include/linux/usb/nop-usb-xceiv.h +++ b/include/linux/usb/nop-usb-xceiv.h @@ -5,6 +5,11 @@ struct nop_usb_xceiv_platform_data { enum usb_phy_type type; + unsigned long clk_rate; + + /* if set fails with -EPROBE_DEFER if can't get regulator */ + unsigned int needs_vcc:1; + unsigned int needs_reset:1; }; #if defined(CONFIG_NOP_USB_XCEIV) || (defined(CONFIG_NOP_USB_XCEIV_MODULE) && defined(MODULE)) |