Skip to content

Commit

Permalink
usb: phy: nop: Add some parameters to platform data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roger Quadros authored and Felipe Balbi committed Mar 18, 2013
1 parent a937536 commit 1f0972f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/usb/nop-usb-xceiv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 1f0972f

Please sign in to comment.