Home
last modified time | relevance | path

Searched refs:otg_dev (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/usb/phy/
H A Dphy-omap-otg.c40 static void omap_otg_ctrl(struct otg_device *otg_dev, u32 outputs) in omap_otg_ctrl() argument
44 l = readl(otg_dev->base + OMAP_OTG_CTRL); in omap_otg_ctrl()
47 writel(l, otg_dev->base + OMAP_OTG_CTRL); in omap_otg_ctrl()
50 static void omap_otg_set_mode(struct otg_device *otg_dev) in omap_otg_set_mode() argument
52 if (!otg_dev->id && otg_dev->vbus) in omap_otg_set_mode()
54 omap_otg_ctrl(otg_dev, OMAP_OTG_ID | OMAP_OTG_BSESSVLD); in omap_otg_set_mode()
55 else if (otg_dev->vbus) in omap_otg_set_mode()
57 omap_otg_ctrl(otg_dev, OMAP_OTG_ASESSVLD); in omap_otg_set_mode()
58 else if (!otg_dev->id) in omap_otg_set_mode()
60 omap_otg_ctrl(otg_dev, OMAP_OTG_ID | OMAP_OTG_BSESSEND); in omap_otg_set_mode()
[all …]
H A Dphy-fsl-usb.c461 struct fsl_otg *otg_dev = in fsl_otg_start_host() local
477 if (otg_dev->host_working) in fsl_otg_start_host()
498 otg_dev->host_working = 1; in fsl_otg_start_host()
502 if (!otg_dev->host_working) in fsl_otg_start_host()
513 otg_dev->host_working = 0; in fsl_otg_start_host()
552 struct fsl_otg *otg_dev; in fsl_otg_set_host() local
557 otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy); in fsl_otg_set_host()
558 if (otg_dev != fsl_otg_dev) in fsl_otg_set_host()
563 otg_dev->fsm.a_bus_drop = 0; in fsl_otg_set_host()
564 otg_dev->fsm.a_bus_req = 1; in fsl_otg_set_host()
[all …]