mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
1f0972f5b0
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>
30 lines
707 B
C
30 lines
707 B
C
#ifndef __LINUX_USB_NOP_XCEIV_H
|
|
#define __LINUX_USB_NOP_XCEIV_H
|
|
|
|
#include <linux/usb/otg.h>
|
|
|
|
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))
|
|
/* 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 */
|