Home
last modified time | relevance | path

Searched refs:otg (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/linux/include/linux/usb/
H A Dotg.h28 int (*set_host)(struct usb_otg *otg, struct usb_bus *host);
31 int (*set_peripheral)(struct usb_otg *otg,
35 int (*set_vbus)(struct usb_otg *otg, bool enabled);
38 int (*start_srp)(struct usb_otg *otg);
41 int (*start_hnp)(struct usb_otg *otg);
64 otg_start_hnp(struct usb_otg *otg) in otg_start_hnp() argument
66 if (otg && otg->start_hnp) in otg_start_hnp()
67 return otg->start_hnp(otg); in otg_start_hnp()
74 otg_set_vbus(struct usb_otg *otg, bool enabled) in otg_set_vbus() argument
76 if (otg && otg->set_vbus) in otg_set_vbus()
[all …]
/linux/drivers/phy/samsung/
H A Dphy-exynos5250-usb2.c199 u32 otg; in exynos5250_power_on() local
212 otg = readl(drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on()
214 otg &= ~EXYNOS_5250_USBOTGSYS_FSEL_MASK; in exynos5250_power_on()
215 otg |= drv->ref_reg_val << EXYNOS_5250_USBOTGSYS_FSEL_SHIFT; in exynos5250_power_on()
217 otg &= ~(EXYNOS_5250_USBOTGSYS_FORCE_SUSPEND | in exynos5250_power_on()
220 otg |= EXYNOS_5250_USBOTGSYS_PHY_SW_RST | in exynos5250_power_on()
225 otg &= ~EXYNOS_5250_USBOTGSYS_REFCLKSEL_MASK; in exynos5250_power_on()
226 otg |= EXYNOS_5250_REFCLKSEL_CLKCORE << in exynos5250_power_on()
228 writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on()
230 otg &= ~(EXYNOS_5250_USBOTGSYS_PHY_SW_RST | in exynos5250_power_on()
[all …]
/linux/drivers/phy/ti/
H A Dphy-dm816x-usb.c52 static int dm816x_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host) in dm816x_usb_phy_set_host() argument
54 otg->host = host; in dm816x_usb_phy_set_host()
56 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_host()
61 static int dm816x_usb_phy_set_peripheral(struct usb_otg *otg, in dm816x_usb_phy_set_peripheral() argument
64 otg->gadget = gadget; in dm816x_usb_phy_set_peripheral()
66 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_peripheral()
177 struct usb_otg *otg; in dm816x_usb_phy_probe() local
203 otg = devm_kzalloc_obj(&pdev->dev, *otg); in dm816x_usb_phy_probe()
204 if (!otg) in dm816x_usb_phy_probe()
[all...]
H A Dphy-omap-usb2.c116 static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled) in omap_usb_set_vbus() argument
118 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_set_vbus()
126 static int omap_usb_start_srp(struct usb_otg *otg) in omap_usb_start_srp() argument
128 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_start_srp()
136 static int omap_usb_set_host(struct usb_otg *otg, struct usb_bus *host) in omap_usb_set_host() argument
138 otg->host = host; in omap_usb_set_host()
140 otg->state = OTG_STATE_UNDEFINED; in omap_usb_set_host()
145 static int omap_usb_set_peripheral(struct usb_otg *otg, in omap_usb_set_peripheral() argument
148 otg->gadget = gadget; in omap_usb_set_peripheral()
150 otg in omap_usb_set_peripheral()
378 struct usb_otg *otg; omap_usb2_probe() local
[all...]
H A Dphy-twl4030-usb.c22 #include <linux/usb/otg.h>
645 static int twl4030_set_peripheral(struct usb_otg *otg, in twl4030_set_peripheral() argument
648 if (!otg) in twl4030_set_peripheral()
651 otg->gadget = gadget; in twl4030_set_peripheral()
653 otg->state = OTG_STATE_UNDEFINED; in twl4030_set_peripheral()
658 static int twl4030_set_host(struct usb_otg *otg, struct usb_bus *host) in twl4030_set_host() argument
660 if (!otg) in twl4030_set_host()
663 otg->host = host; in twl4030_set_host()
665 otg->state = OTG_STATE_UNDEFINED; in twl4030_set_host()
689 struct usb_otg *otg; in twl4030_usb_probe() local
[all...]
/linux/drivers/usb/common/
H A Dusb-otg-fsm.c74 if (fsm->otg->gadget) in otg_leave_state()
75 fsm->otg->gadget->host_request_flag = 0; in otg_leave_state()
105 if (fsm->otg->gadget) in otg_leave_state()
106 fsm->otg->gadget->host_request_flag = 0; in otg_leave_state()
125 enum usb_otg_state state = fsm->otg->state; in otg_hnp_polling_work()
132 udev = usb_hub_find_child(fsm->otg->host->root_hub, 1); in otg_hnp_polling_work()
134 dev_err(fsm->otg->host->controller, in otg_hnp_polling_work()
169 if (!fsm->otg->host->b_hnp_enable) { in otg_hnp_polling_work()
177 fsm->otg->host->b_hnp_enable = 1; in otg_hnp_polling_work()
208 if (fsm->otg->state == new_state) in otg_set_state()
[all …]
/linux/drivers/usb/musb/
H A Dmpfs.c65 musb->xceiv->otg->default_a = 1; in mpfs_musb_set_vbus()
66 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in mpfs_musb_set_vbus()
76 musb->xceiv->otg->default_a = 0; in mpfs_musb_set_vbus()
77 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in mpfs_musb_set_vbus()
86 usb_otg_state_string(musb->xceiv->otg->state), in mpfs_musb_set_vbus()
106 usb_otg_state_string(musb->xceiv->otg->state)); in otg_timer()
109 switch (musb->xceiv->otg->state) { in otg_timer()
116 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in otg_timer()
120 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in otg_timer()
129 musb->xceiv->otg in otg_timer()
[all...]
H A Dtusb6010.c346 if (x->otg->default_a || mA < (musb->min_power << 1)) in tusb_draw_power()
465 switch (musb->xceiv->otg->state) { in musb_do_idle()
471 usb_otg_state_string(musb->xceiv->otg->state)); in musb_do_idle()
525 && (musb->xceiv->otg->state == OTG_STATE_A_WAIT_BCON))) { in tusb_musb_try_idle()
527 usb_otg_state_string(musb->xceiv->otg->state)); in tusb_musb_try_idle()
544 usb_otg_state_string(musb->xceiv->otg->state), in tusb_musb_try_idle()
561 struct usb_otg *otg = musb->xceiv->otg; in tusb_musb_set_vbus() local
574 otg->default_a = 1; in tusb_musb_set_vbus()
575 musb->xceiv->otg in tusb_musb_set_vbus()
687 struct usb_otg *otg = musb->xceiv->otg; tusb_otg_ints() local
[all...]
H A Dda8xx.c138 usb_otg_state_string(musb->xceiv->otg->state)); in otg_timer()
141 switch (musb->xceiv->otg->state) { in otg_timer()
148 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in otg_timer()
151 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in otg_timer()
166 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in otg_timer()
188 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in otg_timer()
205 musb->xceiv->otg->state == OTG_STATE_A_WAIT_BCON)) { in da8xx_musb_try_idle()
207 usb_otg_state_string(musb->xceiv->otg->state)); in da8xx_musb_try_idle()
220 usb_otg_state_string(musb->xceiv->otg->state), in da8xx_musb_try_idle()
287 musb->xceiv->otg in da8xx_musb_interrupt()
[all...]
H A Dmusb_dsps.c187 if (musb->xceiv->otg->state == OTG_STATE_B_IDLE) in dsps_musb_enable()
226 usb_otg_state_string(musb->xceiv->otg->state)); in dsps_check_status()
228 switch (musb->xceiv->otg->state) { in dsps_check_status()
231 musb->xceiv->otg->state = OTG_STATE_A_WAIT_BCON; in dsps_check_status()
251 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in dsps_check_status()
254 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in dsps_check_status()
268 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in dsps_check_status()
366 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in dsps_interrupt()
371 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in dsps_interrupt()
376 musb->xceiv->otg in dsps_interrupt()
[all...]
H A Domap2430.c99 usb_otg_state_string(musb->xceiv->otg->state), in omap_musb_set_mailbox()
105 switch (musb->xceiv->otg->state) { in omap_musb_set_mailbox()
110 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in omap_musb_set_mailbox()
119 otg_set_vbus(musb->xceiv->otg, 1); in omap_musb_set_mailbox()
122 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in omap_musb_set_mailbox()
127 otg_set_vbus(musb->xceiv->otg, 1); in omap_musb_set_mailbox()
136 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in omap_musb_set_mailbox()
147 otg_set_vbus(musb->xceiv->otg, 0); in omap_musb_set_mailbox()
203 * musb core uses xceiv.state and xceiv.otg. Once we have in omap2430_musb_init()
204 * a separate state machine to handle otg, thes in omap2430_musb_init()
[all...]
H A Dmusb_virthub.c91 musb->xceiv->otg->host->b_hnp_enable; in musb_port_suspend()
101 musb->xceiv->otg->host->b_hnp_enable; in musb_port_suspend()
208 if (musb->xceiv && musb->xceiv->otg->host->b_hnp_enable) { in musb_root_disconnect()
/linux/drivers/usb/phy/
H A Dphy-ulpi-viewport.c29 static int ulpi_viewport_read(struct usb_phy *otg, u32 reg) in ulpi_viewport_read() argument
32 void __iomem *view = otg->io_priv; in ulpi_viewport_read()
47 static int ulpi_viewport_write(struct usb_phy *otg, u32 val, u32 reg) in ulpi_viewport_write() argument
50 void __iomem *view = otg->io_priv; in ulpi_viewport_write()
/linux/drivers/usb/chipidea/
H A Dotg_fsm.c19 #include <linux/usb/otg.h>
27 #include "otg.h"
30 /* Add for otg: interact with user space app */
66 if (ci->fsm.otg->state == OTG_STATE_A_PERIPHERAL) { in a_bus_req_store()
150 if (ci->fsm.otg->state == OTG_STATE_B_PERIPHERAL) { in b_bus_req_store()
199 * by enum otg_fsm_timer in include/linux/usb/otg-fsm.h
355 if (ci->fsm.otg->state == OTG_STATE_B_IDLE) in b_ssend_srp_tmout()
363 * by enum otg_fsm_timer in include/linux/usb/otg-fsm.h
522 if (!fsm->otg->host) in ci_otg_loc_sof()
525 udev = usb_hub_find_child(fsm->otg in ci_otg_loc_sof()
[all...]
/linux/Documentation/firmware-guide/acpi/
H A Dextcon-intel-int3496.rst10 USB-otg port, as well as how it optionally can enable Vbus output on the
11 otg port and how it can optionally control the muxing of the data pins
19 Index 1 The output gpio for enabling Vbus output from the device to the otg
/linux/arch/arm/mach-omap1/
H A Dusb.c77 if (config->otg) in omap_otg_init()
95 if (config->otg) in omap_otg_init()
96 pr_cont(", Mini-AB on usb%d", config->otg - 1); in omap_otg_init()
113 if (config->otg || config->register_dev) { in omap_otg_init()
126 if (config->otg || config->register_host) { in omap_otg_init()
139 if (config->otg) { in omap_otg_init()
/linux/arch/arm64/boot/dts/renesas/
H A Drz-smarc-common.dtsi96 dr_mode = "otg";
105 dr_mode = "otg";
124 dr_mode = "otg";
/linux/drivers/power/supply/
H A Drt5033_charger.c38 bool otg; member
72 if (charger->otg) in rt5033_get_charger_state()
381 charger->otg = true; in rt5033_charger_set_otg()
412 charger->otg = false; in rt5033_charger_unset_otg()
424 if (charger->otg) { in rt5033_charger_set_charging()
491 if (charger->otg) { in rt5033_charger_set_disconnect()
/linux/Documentation/usb/
H A Dchipidea.rst18 variables for otg fsm, mount debugfs, there are 2 files
19 which can show otg fsm variables and some controller registers value::
21 cat /sys/kernel/debug/ci_hdrc.0/otg
29 otg-rev = <0x0200>;
/linux/Documentation/devicetree/bindings/usb/
H A Dux500-usb.txt8 or both "otg"
23 dr_mode = "otg";
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6qdl-prti6q.dtsi28 reg_usb_otg_vbus: regulator-otg-vbus {
30 regulator-name = "otg-vbus";
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dnvidia,tegra124-xusb-padctl.txt65 - otg-0, otg-1, otg-2:
/linux/arch/arm64/boot/dts/qcom/
H A Dapq8039-t2.dts363 pinctrl_otg_default: otg-default-state {
369 pinctrl_otg_device: otg-device-state {
375 pinctrl_otg_host: otg-host-state {
/linux/drivers/phy/marvell/
H A DKconfig102 The PHY driver will be used by Marvell udc/ehci/otg driver.
113 The PHY driver will be used by Marvell udc/ehci/otg driver.
124 The PHY driver will be used by Marvell udc/ehci/otg driver.
/linux/drivers/phy/tegra/
H A Dxusb.c595 [USB_DR_MODE_OTG] = "otg", in to_usb_phy_event()
645 static int tegra_xusb_set_peripheral(struct usb_otg *otg, in tegra_xusb_set_peripheral()
648 struct tegra_xusb_port *port = container_of(otg->usb_phy, in tegra_xusb_set_host()
658 static int tegra_xusb_set_host(struct usb_otg *otg, struct usb_bus *host)
660 struct tegra_xusb_port *port = container_of(otg->usb_phy, in tegra_xusb_setup_usb_role_switch()
705 port->usb_phy.otg = devm_kzalloc_obj(&port->dev, struct usb_otg); in tegra_xusb_setup_usb_role_switch()
706 if (!port->usb_phy.otg) in tegra_xusb_setup_usb_role_switch()
719 port->usb_phy.otg->usb_phy = &port->usb_phy; in tegra_xusb_setup_usb_role_switch()
720 port->usb_phy.otg->set_peripheral = tegra_xusb_set_peripheral; in tegra_xusb_setup_usb_role_switch()
721 port->usb_phy.otg in tegra_xusb_setup_usb_role_switch()
634 tegra_xusb_set_peripheral(struct usb_otg * otg,struct usb_gadget * gadget) tegra_xusb_set_peripheral() argument
647 tegra_xusb_set_host(struct usb_otg * otg,struct usb_bus * host) tegra_xusb_set_host() argument
[all...]

12345678910>>...13