af9f51c551
instead of having each user of generic phy find out about its own resources and pass it to the core layer, have th core layer itself figure that out. It's as simple as moving a piece of code around. This fixes a big regression caused during the merge window where am335x-based platforms wouldn't be able to probe their PHY driver. Signed-off-by: Felipe Balbi <balbi@ti.com>
21 lines
475 B
C
21 lines
475 B
C
#ifndef _PHY_GENERIC_H_
|
|
#define _PHY_GENERIC_H_
|
|
|
|
#include <linux/usb/usb_phy_gen_xceiv.h>
|
|
|
|
struct usb_phy_gen_xceiv {
|
|
struct usb_phy phy;
|
|
struct device *dev;
|
|
struct clk *clk;
|
|
struct regulator *vcc;
|
|
int gpio_reset;
|
|
bool reset_active_low;
|
|
};
|
|
|
|
int usb_gen_phy_init(struct usb_phy *phy);
|
|
void usb_gen_phy_shutdown(struct usb_phy *phy);
|
|
|
|
int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_gen_xceiv *nop,
|
|
struct usb_phy_gen_xceiv_platform_data *pdata);
|
|
|
|
#endif
|