Home
last modified time | relevance | path

Searched refs:fotg (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/drivers/usb/fotg210/
H A Dfotg210-core.c42 static int fotg210_gemini_init(struct fotg210 *fotg, struct resource *res, in fotg210_gemini_init() argument
45 struct device *dev = fotg->dev; in fotg210_gemini_init()
55 fotg->map = map; in fotg210_gemini_init()
64 fotg->port = GEMINI_PORT_1; in fotg210_gemini_init()
74 fotg->port = GEMINI_PORT_0; in fotg210_gemini_init()
101 void fotg210_vbus(struct fotg210 *fotg, bool enable) in fotg210_vbus() argument
107 switch (fotg->port) { in fotg210_vbus()
119 ret = regmap_update_bits(fotg->map, GEMINI_GLOBAL_MISC_CTRL, mask, val); in fotg210_vbus()
121 dev_err(fotg->dev, "failed to %s VBUS\n", in fotg210_vbus()
123 dev_info(fotg->dev, "%s: %s VBUS\n", __func__, enable ? "enable" : "disable"); in fotg210_vbus()
[all …]
H A Dfotg210.h20 void fotg210_vbus(struct fotg210 *fotg, bool enable);
23 int fotg210_hcd_probe(struct platform_device *pdev, struct fotg210 *fotg);
29 struct fotg210 *fotg) in fotg210_hcd_probe() argument
47 int fotg210_udc_probe(struct platform_device *pdev, struct fotg210 *fotg);
51 struct fotg210 *fotg) in fotg210_udc_probe() argument
H A Dfotg210-udc.h240 struct fotg210 *fotg; member
H A Dfotg210-udc.c1107 fotg210_vbus(fotg210->fotg, is_active); in fotg210_vbus_session()
1173 int fotg210_udc_probe(struct platform_device *pdev, struct fotg210 *fotg) in fotg210_udc_probe() argument
1191 fotg210->fotg = fotg; in fotg210_udc_probe()
1215 fotg210->reg = fotg->base; in fotg210_udc_probe()
H A Dfotg210-hcd.h185 struct fotg210 *fotg; /* Overarching FOTG210 device */ member
H A Dfotg210-hcd.c5555 int fotg210_hcd_probe(struct platform_device *pdev, struct fotg210 *fotg) in fotg210_hcd_probe() argument
5581 hcd->regs = fotg->base; in fotg210_hcd_probe()
5583 hcd->rsrc_start = fotg->res->start; in fotg210_hcd_probe()
5584 hcd->rsrc_len = resource_size(fotg->res); in fotg210_hcd_probe()
5588 fotg210->fotg = fotg; in fotg210_hcd_probe()