diff options
author | Sebastian Andrzej Siewior | 2013-07-26 12:16:42 +0200 |
---|---|---|
committer | Felipe Balbi | 2013-08-09 16:26:00 +0200 |
commit | 3fa4d7344be0afebd80382ffeea6b1787cccf971 (patch) | |
tree | 82f2a35cfb964fe6c6f3fabac51693f5c09d6e1e /include/linux/usb/usb_phy_gen_xceiv.h | |
parent | Linux 3.11-rc3 (diff) | |
download | kernel-qcow2-linux-3fa4d7344be0afebd80382ffeea6b1787cccf971.tar.gz kernel-qcow2-linux-3fa4d7344be0afebd80382ffeea6b1787cccf971.tar.xz kernel-qcow2-linux-3fa4d7344be0afebd80382ffeea6b1787cccf971.zip |
usb: phy: rename nop_usb_xceiv => usb_phy_gen_xceiv
The "nop" driver isn't a do-nothing-stub but supports a couple functions
like clock on/off or is able to use a voltage regulator. This patch
simply renames the driver to "generic" since it is easy possible to
extend it by a simple function istead of writing a complete driver.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb/usb_phy_gen_xceiv.h')
-rw-r--r-- | include/linux/usb/usb_phy_gen_xceiv.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/usb/usb_phy_gen_xceiv.h b/include/linux/usb/usb_phy_gen_xceiv.h new file mode 100644 index 000000000000..f9a7e7bc925b --- /dev/null +++ b/include/linux/usb/usb_phy_gen_xceiv.h @@ -0,0 +1,29 @@ +#ifndef __LINUX_USB_NOP_XCEIV_H +#define __LINUX_USB_NOP_XCEIV_H + +#include <linux/usb/otg.h> + +struct usb_phy_gen_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 IS_ENABLED(CONFIG_NOP_USB_XCEIV) +/* sometimes transceivers are accessed only through e.g. ULPI */ +extern void usb_nop_xceiv_register(void); +extern void usb_nop_xceiv_unregister(void); +#else +static inline void usb_nop_xceiv_register(void) +{ +} + +static inline void usb_nop_xceiv_unregister(void) +{ +} +#endif + +#endif /* __LINUX_USB_NOP_XCEIV_H */ |