Home
last modified time | relevance | path

Searched full:otg (Results 1 – 25 of 1242) sorted by relevance

12345678910>>...50

/openbmc/linux/include/linux/usb/
H A Dotg.h2 /* USB OTG (On The Go) defines */
28 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);
46 * struct usb_otg_caps - describes the otg capabilities of the device
47 * @otg_rev: The OTG revision number the device is compliant with, it's
64 otg_start_hnp(struct usb_otg *otg) in otg_start_hnp() argument
66 if (otg && otg->start_hnp) in otg_start_hnp()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn31/
H A Ddcn31_optc.h32 SRI(OTG_VSTARTUP_PARAM, OTG, inst),\
33 SRI(OTG_VUPDATE_PARAM, OTG, inst),\
34 SRI(OTG_VREADY_PARAM, OTG, inst),\
35 SRI(OTG_MASTER_UPDATE_LOCK, OTG, inst),\
36 SRI(OTG_GLOBAL_CONTROL0, OTG, inst),\
37 SRI(OTG_GLOBAL_CONTROL1, OTG, inst),\
38 SRI(OTG_GLOBAL_CONTROL2, OTG, inst),\
39 SRI(OTG_GLOBAL_CONTROL4, OTG, inst),\
40 SRI(OTG_DOUBLE_BUFFER_CONTROL, OTG, inst),\
41 SRI(OTG_H_TOTAL, OTG, inst),\
[all …]
H A Ddcn31_dccg.h45 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 0),\
46 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 1),\
47 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 2),\
48 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 3),\
107 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 0, mask_sh),\
108 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 1, mask_sh),\
109 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 2, mask_sh),\
110 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 3, mask_sh),\
111 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLKDTO, ENABLE_STATUS, 0, mask_sh),\
112 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLKDTO, ENABLE_STATUS, 1, mask_sh),\
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn314/
H A Ddcn314_optc.h33 SRI(OTG_VSTARTUP_PARAM, OTG, inst),\
34 SRI(OTG_VUPDATE_PARAM, OTG, inst),\
35 SRI(OTG_VREADY_PARAM, OTG, inst),\
36 SRI(OTG_MASTER_UPDATE_LOCK, OTG, inst),\
37 SRI(OTG_GLOBAL_CONTROL0, OTG, inst),\
38 SRI(OTG_GLOBAL_CONTROL1, OTG, inst),\
39 SRI(OTG_GLOBAL_CONTROL2, OTG, inst),\
40 SRI(OTG_GLOBAL_CONTROL4, OTG, inst),\
41 SRI(OTG_DOUBLE_BUFFER_CONTROL, OTG, inst),\
42 SRI(OTG_H_TOTAL, OTG, inst),\
[all …]
H A Ddcn314_dccg.h52 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 0),\
53 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 1),\
54 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 2),\
55 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 3),\
111 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 0, mask_sh),\
112 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 1, mask_sh),\
113 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 2, mask_sh),\
114 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 3, mask_sh),\
115 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLKDTO, ENABLE_STATUS, 0, mask_sh),\
116 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLKDTO, ENABLE_STATUS, 1, mask_sh),\
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_optc.h34 SRI(OTG_VSTARTUP_PARAM, OTG, inst),\
35 SRI(OTG_VUPDATE_PARAM, OTG, inst),\
36 SRI(OTG_VREADY_PARAM, OTG, inst),\
37 SRI(OTG_MASTER_UPDATE_LOCK, OTG, inst),\
38 SRI(OTG_GLOBAL_CONTROL0, OTG, inst),\
39 SRI(OTG_GLOBAL_CONTROL1, OTG, inst),\
40 SRI(OTG_GLOBAL_CONTROL2, OTG, inst),\
41 SRI(OTG_GLOBAL_CONTROL4, OTG, inst),\
42 SRI(OTG_DOUBLE_BUFFER_CONTROL, OTG, inst),\
43 SRI(OTG_H_TOTAL, OTG, inst),\
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dccg.h38 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 0),\
39 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 1),\
46 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 2),\
47 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 3),\
48 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 4),\
49 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 5)
81 DCCG_SFII(OTG, PIXEL_RATE_CNTL, OTG, ADD_PIXEL, 0, mask_sh),\
82 DCCG_SFII(OTG, PIXEL_RATE_CNTL, OTG, ADD_PIXEL, 1, mask_sh),\
83 DCCG_SFII(OTG, PIXEL_RATE_CNTL, OTG, DROP_PIXEL, 0, mask_sh),\
84 DCCG_SFII(OTG, PIXEL_RATE_CNTL, OTG, DROP_PIXEL, 1, mask_sh)
[all …]
/openbmc/linux/Documentation/devicetree/bindings/usb/
H A Dusb-drd.yaml7 title: Generic USB OTG Controller
13 otg-rev:
15 Tells usb driver the release number of the OTG and EH supplement with
17 decimal (i.e. 2.0 is 0200H). This property is used if any real OTG
18 features (HNP/SRP/ADP) is enabled. If ADP is required, otg-rev should be
27 should default to OTG.
29 enum: [host, peripheral, otg]
30 default: otg
34 Tells OTG controllers we want to disable OTG HNP. Normally HNP is the
35 basic function of real OTG except you want it to be a srp-capable only B
[all …]
H A Ddwc2.yaml7 title: DesignWare HS OTG USB 2.0 controller
21 - const: ingenic,jz4775-otg
22 - const: ingenic,jz4780-otg
23 - const: ingenic,x1000-otg
24 - const: ingenic,x1600-otg
25 - const: ingenic,x1700-otg
26 - const: ingenic,x1830-otg
27 - const: ingenic,x2000-otg
59 - const: amcc,dwc-otg
60 - const: apm,apm82181-dwc-otg
[all …]
/openbmc/linux/drivers/usb/phy/
H A Dphy-mv-usb.c21 #include <linux/usb/otg.h>
28 #define DRIVER_DESC "Marvell USB OTG transceiver driver"
33 static const char driver_name[] = "mv-otg";
52 static int mv_otg_set_vbus(struct usb_otg *otg, bool on) in mv_otg_set_vbus() argument
54 struct mv_otg *mvotg = container_of(otg->usb_phy, struct mv_otg, phy); in mv_otg_set_vbus()
61 static int mv_otg_set_host(struct usb_otg *otg, in mv_otg_set_host() argument
64 otg->host = host; in mv_otg_set_host()
69 static int mv_otg_set_peripheral(struct usb_otg *otg, in mv_otg_set_peripheral() argument
72 otg->gadget = gadget; in mv_otg_set_peripheral()
194 struct usb_otg *otg = mvotg->phy.otg; in mv_otg_start_host() local
[all …]
H A Dphy-fsl-usb.c43 #define DRIVER_DESC "Freescale USB OTG Transceiver Driver"
46 static const char driver_name[] = "fsl-usb2-otg";
114 /* Operations that will be called from OTG Finite State Machine */
258 if ((fsl_otg_dev->phy.otg->state == OTG_STATE_B_SRP_INIT) && in b_srp_end()
271 if (!fsl_otg_dev->phy.otg->host->b_hnp_enable) in a_wait_enum()
459 struct usb_otg *otg = fsm->otg; in fsl_otg_start_host() local
462 container_of(otg->usb_phy, struct fsl_otg, phy); in fsl_otg_start_host()
465 if (!otg->host) in fsl_otg_start_host()
467 dev = otg->host->controller; in fsl_otg_start_host()
526 struct usb_otg *otg = fsm->otg; in fsl_otg_start_gadget() local
[all …]
H A Dphy-tahvo.c21 #include <linux/usb/otg.h>
77 switch (tu->phy.otg->state) { in check_vbus_state()
80 if (tu->phy.otg->gadget) in check_vbus_state()
81 usb_gadget_vbus_connect(tu->phy.otg->gadget); in check_vbus_state()
82 tu->phy.otg->state = OTG_STATE_B_PERIPHERAL; in check_vbus_state()
90 tu->phy.otg->state = OTG_STATE_A_HOST; in check_vbus_state()
97 switch (tu->phy.otg->state) { in check_vbus_state()
99 if (tu->phy.otg->gadget) in check_vbus_state()
100 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in check_vbus_state()
101 tu->phy.otg->state = OTG_STATE_B_IDLE; in check_vbus_state()
[all …]
H A Dphy-ulpi.c17 #include <linux/usb/otg.h>
199 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()
[all …]
H A Dphy-generic.c18 #include <linux/usb/otg.h>
104 struct usb_otg *otg = nop->phy.otg; in nop_gpio_vbus_thread() local
114 otg->state = OTG_STATE_B_PERIPHERAL; in nop_gpio_vbus_thread()
117 /* drawing a "unit load" is *always* OK, except for OTG */ in nop_gpio_vbus_thread()
121 otg->gadget); in nop_gpio_vbus_thread()
126 otg->state = OTG_STATE_B_IDLE; in nop_gpio_vbus_thread()
130 otg->gadget); in nop_gpio_vbus_thread()
173 static int nop_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) in nop_set_peripheral() argument
175 if (!otg) in nop_set_peripheral()
179 otg->gadget = NULL; in nop_set_peripheral()
[all …]
H A Dphy-gpio-vbus-usb.c20 #include <linux/usb/otg.h>
98 if (!gpio_vbus->phy.otg->gadget) in gpio_vbus_work()
114 gpio_vbus->phy.otg->state = OTG_STATE_B_PERIPHERAL; in gpio_vbus_work()
116 usb_gadget_vbus_connect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
118 /* drawing a "unit load" is *always* OK, except for OTG */ in gpio_vbus_work()
126 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
135 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
137 gpio_vbus->phy.otg->state = OTG_STATE_B_IDLE; in gpio_vbus_work()
141 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
151 struct usb_otg *otg = gpio_vbus->phy.otg; in gpio_vbus_irq() local
[all …]
H A DKconfig19 Enable this to support the USB OTG transceiver in AB8500 chip.
24 tristate "Freescale USB OTG Transceiver Driver"
29 Enable this to support Freescale USB OTG transceiver.
68 Enable this to support the USB OTG transceiver on TWL6030
70 and OTG SRP events capabilities. For all other transceiver functionality
86 NOT support role switch. OTG devices that can do role switch
91 tristate "OMAP USB OTG controller driver"
94 Enable this to support some transceivers on OMAP1 platforms. OTG
98 will be called phy-omap-otg.
124 and OTG drivers (to be selected separately).
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_optc.h35 SRI(OTG_VSTARTUP_PARAM, OTG, inst),\
36 SRI(OTG_VUPDATE_PARAM, OTG, inst),\
37 SRI(OTG_VREADY_PARAM, OTG, inst),\
38 SRI(OTG_BLANK_CONTROL, OTG, inst),\
39 SRI(OTG_MASTER_UPDATE_LOCK, OTG, inst),\
40 SRI(OTG_GLOBAL_CONTROL0, OTG, inst),\
41 SRI(OTG_DOUBLE_BUFFER_CONTROL, OTG, inst),\
42 SRI(OTG_H_TOTAL, OTG, inst),\
43 SRI(OTG_H_BLANK_START_END, OTG, inst),\
44 SRI(OTG_H_SYNC_A, OTG, inst),\
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_clock_source.h72 SRII(PIXEL_RATE_CNTL, OTG, 0),\
73 SRII(PIXEL_RATE_CNTL, OTG, 1),\
74 SRII(PIXEL_RATE_CNTL, OTG, 2),\
75 SRII(PIXEL_RATE_CNTL, OTG, 3),\
76 SRII(PIXEL_RATE_CNTL, OTG, 4),\
77 SRII(PIXEL_RATE_CNTL, OTG, 5)
85 SRII(PIXEL_RATE_CNTL, OTG, 0),\
86 SRII(PIXEL_RATE_CNTL, OTG, 1)
98 SRII(PIXEL_RATE_CNTL, OTG, 0),\
99 SRII(PIXEL_RATE_CNTL, OTG, 1),\
[all …]
/openbmc/u-boot/drivers/usb/host/
H A Dohci-lpc32xx.c21 /* OTG I2C controller module register structures */
23 u32 otg_i2c_txrx; /* OTG I2C Tx/Rx Data FIFO */
24 u32 otg_i2c_stat; /* OTG I2C Status Register */
25 u32 otg_i2c_ctrl; /* OTG I2C Control Register */
26 u32 otg_i2c_clk_hi; /* OTG I2C Clock Divider high */
27 u32 otg_i2c_clk_lo; /* OTG I2C Clock Divider low */
30 /* OTG controller module register structures */
33 u32 otg_int_sts; /* OTG int status register */
34 u32 otg_int_enab; /* OTG int enable register */
35 u32 otg_int_set; /* OTG int set register */
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_dccg.h80 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 0, mask_sh),\
81 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 1, mask_sh),\
82 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 2, mask_sh),\
83 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLK_DTO, ENABLE, 3, mask_sh),\
84 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLKDTO, ENABLE_STATUS, 0, mask_sh),\
85 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLKDTO, ENABLE_STATUS, 1, mask_sh),\
86 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLKDTO, ENABLE_STATUS, 2, mask_sh),\
87 DCCG_SFII(OTG, PIXEL_RATE_CNTL, DTBCLKDTO, ENABLE_STATUS, 3, mask_sh),\
88 DCCG_SFII(OTG, PIXEL_RATE_CNTL, PIPE, DTO_SRC_SEL, 0, mask_sh),\
89 DCCG_SFII(OTG, PIXEL_RATE_CNTL, PIPE, DTO_SRC_SEL, 1, mask_sh),\
[all …]
/openbmc/linux/drivers/phy/samsung/
H A Dphy-exynos5250-usb2.c199 u32 otg; in exynos5250_power_on() local
211 /* OTG configuration */ in exynos5250_power_on()
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()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn303/
H A Ddcn303_dccg.h20 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 0),\
21 DCCG_SRII(PIXEL_RATE_CNTL, OTG, 1)
41 DCCG_SFII(OTG, PIXEL_RATE_CNTL, OTG, ADD_PIXEL, 0, mask_sh),\
42 DCCG_SFII(OTG, PIXEL_RATE_CNTL, OTG, ADD_PIXEL, 1, mask_sh),\
43 DCCG_SFII(OTG, PIXEL_RATE_CNTL, OTG, DROP_PIXEL, 0, mask_sh),\
44 DCCG_SFII(OTG, PIXEL_RATE_CNTL, OTG, DROP_PIXEL, 1, mask_sh)
/openbmc/linux/drivers/gpu/drm/amd/include/ivsrcid/dcn/
H A Dirqsrcs_dcn_1_0.h528 #define DCN_1_0__SRCID__OTG1_CPU_SS_INT 0x17 // D1: OTG Static Screen interrupt OTG…
531 #define DCN_1_0__SRCID__OTG1_RANGE_TIMING_UPDATE 0x17 // D1 : OTG range timing OTG1_IHC_RANGE_T…
534 #define DCN_1_0__SRCID__OTG2_CPU_SS_INT 0x17 // D2 : OTG Static Screen interrupt OTG2_IHC_CPU_SS_IN…
537 #define DCN_1_0__SRCID__OTG2_RANGE_TIMING_UPDATE 0x17 // D2 : OTG range timing OTG2_IHC_RANGE_TIMIN…
540 #define DCN_1_0__SRCID__OTG3_CPU_SS_INT 0x17 // D3 : OTG Static Screen interrupt OTG3_IHC_CPU_SS_IN…
543 #define DCN_1_0__SRCID__OTG3_RANGE_TIMING_UPDATE 0x17 // D3 : OTG range timing OTG3_IHC_RANGE_TIMIN…
546 #define DCN_1_0__SRCID__OTG4_CPU_SS_INT 0x17 // D4 : OTG Static Screen interrupt OTG4_IHC_CPU_SS_IN…
549 #define DCN_1_0__SRCID__OTG4_RANGE_TIMING_UPDATE 0x17 // D4 : OTG range timing OTG4_IHC_RANGE_TIMIN…
552 #define DCN_1_0__SRCID__OTG5_CPU_SS_INT 0x17 // D5 : OTG Static Screen interrupt OTG5_IHC_CPU_SS_IN…
555 #define DCN_1_0__SRCID__OTG5_RANGE_TIMING_UPDATE 0x17 // D5 : OTG range timing OTG5_IHC_RANGE_TIMIN…
[all …]
/openbmc/u-boot/drivers/usb/musb/
H A Domap3.c33 * OMAP3 USB OTG registers.
44 static struct omap3_otg_regs *otg; variable
70 l = readl(&otg->revision); in musb_db_otg_regs()
72 l = readl(&otg->sysconfig); in musb_db_otg_regs()
74 l = readl(&otg->sysstatus); in musb_db_otg_regs()
76 l = readl(&otg->interfsel); in musb_db_otg_regs()
78 l = readl(&otg->forcestdby); in musb_db_otg_regs()
106 otg = (struct omap3_otg_regs *)OMAP3_OTG_BASE; in musb_platform_init()
108 /* Set OTG to always be on */ in musb_platform_init()
110 OMAP3_OTG_SYSCONFIG_NO_IDLE_MODE, &otg->sysconfig); in musb_platform_init()
[all …]
/openbmc/linux/drivers/usb/common/
H A Dusb-otg-fsm.c3 * OTG Finite State Machine from OTG spec
18 #include <linux/usb/otg.h>
19 #include <linux/usb/otg-fsm.h>
74 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()
[all …]

12345678910>>...50