Home
last modified time | relevance | path

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

12345678910>>...18

/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/usb/phy/
H A Dphy-ulpi.c199 static int ulpi_set_host(struct usb_otg *otg, struct usb_bus *host) in ulpi_set_host() argument
201 struct usb_phy *phy = otg->usb_phy; in ulpi_set_host()
205 otg->host = NULL; in ulpi_set_host()
209 otg->host = host; in ulpi_set_host()
225 static int ulpi_set_vbus(struct usb_otg *otg, bool on) in ulpi_set_vbus() argument
227 struct usb_phy *phy = otg->usb_phy; in ulpi_set_vbus()
243 static void otg_ulpi_init(struct usb_phy *phy, struct usb_otg *otg, in otg_ulpi_init() argument
250 phy->otg = otg; in otg_ulpi_init()
253 otg->usb_phy = phy; in otg_ulpi_init()
254 otg->set_host = ulpi_set_host; in otg_ulpi_init()
[all …]
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/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/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 …]
H A DMakefile12 obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o
/linux/drivers/power/supply/
H A Daxp288_charger.c132 } otg; member
426 if (info->otg.id_short) { in axp288_charger_usb_get_property()
434 if (info->otg.id_short) { in axp288_charger_usb_get_property()
687 container_of(work, struct axp288_chrg_info, otg.work); in axp288_charger_otg_evt_worker()
688 struct extcon_dev *edev = info->otg.cable; in axp288_charger_otg_evt_worker()
698 info->otg.id_short = usb_host; in axp288_charger_otg_evt_worker()
701 ret = axp288_charger_vbus_path_select(info, !info->otg.id_short); in axp288_charger_otg_evt_worker()
710 container_of(nb, struct axp288_chrg_info, otg.id_nb); in axp288_charger_handle_otg_evt()
712 schedule_work(&info->otg.work); in axp288_charger_handle_otg_evt()
828 cancel_work_sync(&info->otg.work); in axp288_charger_cancel_work()
[all …]
H A Disp1704_charger.c249 if (isp->phy->otg->gadget) in isp1704_charger_work()
250 usb_gadget_connect(isp->phy->otg->gadget); in isp1704_charger_work()
279 if (isp->phy->otg->gadget) in isp1704_charger_work()
280 usb_gadget_disconnect(isp->phy->otg->gadget); in isp1704_charger_work()
458 if (isp->phy->otg->gadget) in isp1704_charger_probe()
459 usb_gadget_disconnect(isp->phy->otg->gadget); in isp1704_charger_probe()
466 !isp->phy->otg->default_a) in isp1704_charger_probe()
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/drivers/usb/chipidea/
H A Dotg_fsm.c66 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()
355 if (ci->fsm.otg->state == OTG_STATE_B_IDLE) in b_ssend_srp_tmout()
523 if (!fsm->otg->host) in ci_otg_loc_sof()
526 udev = usb_hub_find_child(fsm->otg->host->root_hub, 1); in ci_otg_loc_sof()
597 ci->fsm.otg->state < OTG_STATE_A_IDLE) in ci_otg_fsm_work()
602 if (ci->fsm.otg->state == OTG_STATE_A_IDLE) { in ci_otg_fsm_work()
623 } else if (ci->fsm.otg->state == OTG_STATE_B_IDLE) { in ci_otg_fsm_work()
632 } else if (ci->fsm.otg->state == OTG_STATE_A_HOST) { in ci_otg_fsm_work()
655 switch (ci->fsm.otg->state) { in ci_otg_fsm_event()
[all …]
H A Dhost.c183 struct usb_otg *otg = &ci->otg; in host_start() local
186 otg->host = &hcd->self; in host_start()
225 ci->otg.host = NULL; in host_stop()
/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/Documentation/devicetree/bindings/phy/
H A Dphy-lpc18xx-usb-otg.txt8 - compatible : must be "nxp,lpc1850-usb-otg-phy"
22 compatible = "nxp,lpc1850-usb-otg-phy";
/linux/arch/arm64/boot/dts/renesas/
H A Drz-smarc-common.dtsi96 dr_mode = "otg";
105 dr_mode = "otg";
124 dr_mode = "otg";
/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";
H A Dtwlxxxx-usb.txt6 interrupt number is the otg interrupt number that raises ID interrupts when
26 interrupt number is the otg interrupt number that raises ID interrupts
/linux/drivers/usb/musb/
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/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.dts351 pinctrl_otg_default: otg-default-state {
357 pinctrl_otg_device: otg-device-state {
363 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/include/linux/platform_data/
H A Dusb-omap1.h24 u8 otg; /* port number, 1-based: usb1 == 2 */ member
/linux/arch/arm/boot/dts/broadcom/
H A Dbcm283x-rpi-usb-otg.dtsi3 dr_mode = "otg";

12345678910>>...18