Change internal gpio handling from integer gpios into gpio descriptors. This change only addresses the internal API and device-tree/ACPI, while the legacy platform data remains integer space based. This change is only build compile tested, and very prone to error. I leave this comment for now in the commit message so that this patch gets some testing as I'm pretty sure it's buggy. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
22 lines
491 B
C
22 lines
491 B
C
#ifndef _PHY_GENERIC_H_
|
|
#define _PHY_GENERIC_H_
|
|
|
|
#include <linux/usb/usb_phy_generic.h>
|
|
#include <linux/gpio/consumer.h>
|
|
|
|
struct usb_phy_generic {
|
|
struct usb_phy phy;
|
|
struct device *dev;
|
|
struct clk *clk;
|
|
struct regulator *vcc;
|
|
struct gpio_desc *gpiod_reset;
|
|
};
|
|
|
|
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_generic *nop,
|
|
struct usb_phy_generic_platform_data *pdata);
|
|
|
|
#endif
|