| /kernel/linux/linux-4.19/include/linux/usb/ |
| D | otg.h | 2 /* 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 …]
|
| /kernel/linux/linux-5.10/include/linux/usb/ |
| D | otg.h | 2 /* 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/ |
| D | dcn30_optc.h | 33 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 …]
|
| /kernel/linux/linux-5.10/drivers/usb/phy/ |
| D | phy-isp1301-omap.c | 3 * isp1301_omap - ISP 1301 USB transceiver, talking to OMAP OTG controller 19 #include <linux/usb/otg.h> 36 MODULE_DESCRIPTION("ISP1301 USB OTG Transceiver Driver"); 55 # define WORK_UPDATE_ISP 0 /* update ISP from OTG */ 56 # define WORK_UPDATE_OTG 1 /* update OTG from ISP */ 111 * unless the OTG port is used only in B-peripheral mode. in enable_vbus_draw() 125 /* products will deliver OTG messages with LEDs, GUI, etc */ 128 printk(KERN_NOTICE "OTG device not responding.\n"); in notresponding() 224 return usb_otg_state_string(isp->phy.otg->state); in state_name() 234 * while OTG is running. [all …]
|
| D | phy-mv-usb.c | 21 #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 …]
|
| D | phy-fsl-usb.c | 43 #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 …]
|
| D | phy-tahvo.c | 21 #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 …]
|
| D | phy-ulpi.c | 17 #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 …]
|
| D | phy-generic.c | 18 #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 …]
|
| D | phy-gpio-vbus-usb.c | 20 #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 …]
|
| /kernel/linux/linux-4.19/drivers/usb/phy/ |
| D | phy-isp1301-omap.c | 3 * isp1301_omap - ISP 1301 USB transceiver, talking to OMAP OTG controller 19 #include <linux/usb/otg.h> 36 MODULE_DESCRIPTION("ISP1301 USB OTG Transceiver Driver"); 55 # define WORK_UPDATE_ISP 0 /* update ISP from OTG */ 56 # define WORK_UPDATE_OTG 1 /* update OTG from ISP */ 111 * unless the OTG port is used only in B-peripheral mode. in enable_vbus_draw() 125 /* products will deliver OTG messages with LEDs, GUI, etc */ 128 printk(KERN_NOTICE "OTG device not responding.\n"); in notresponding() 224 return usb_otg_state_string(isp->phy.otg->state); in state_name() 234 * while OTG is running. [all …]
|
| D | phy-fsl-usb.c | 43 #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 …]
|
| D | phy-mv-usb.c | 20 #include <linux/usb/otg.h> 27 #define DRIVER_DESC "Marvell USB OTG transceiver driver" 32 static const char driver_name[] = "mv-otg"; 51 static int mv_otg_set_vbus(struct usb_otg *otg, bool on) in mv_otg_set_vbus() argument 53 struct mv_otg *mvotg = container_of(otg->usb_phy, struct mv_otg, phy); in mv_otg_set_vbus() 60 static int mv_otg_set_host(struct usb_otg *otg, in mv_otg_set_host() argument 63 otg->host = host; in mv_otg_set_host() 68 static int mv_otg_set_peripheral(struct usb_otg *otg, in mv_otg_set_peripheral() argument 71 otg->gadget = gadget; in mv_otg_set_peripheral() 196 struct usb_otg *otg = mvotg->phy.otg; in mv_otg_start_host() local [all …]
|
| D | phy-tahvo.c | 21 #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 …]
|
| D | phy-generic.c | 18 #include <linux/usb/otg.h> 105 struct usb_otg *otg = nop->phy.otg; in nop_gpio_vbus_thread() local 115 otg->state = OTG_STATE_B_PERIPHERAL; in nop_gpio_vbus_thread() 118 /* drawing a "unit load" is *always* OK, except for OTG */ in nop_gpio_vbus_thread() 122 otg->gadget); in nop_gpio_vbus_thread() 127 otg->state = OTG_STATE_B_IDLE; in nop_gpio_vbus_thread() 131 otg->gadget); in nop_gpio_vbus_thread() 174 static int nop_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) in nop_set_peripheral() argument 176 if (!otg) in nop_set_peripheral() 180 otg->gadget = NULL; in nop_set_peripheral() [all …]
|
| D | phy-gpio-vbus-usb.c | 21 #include <linux/usb/otg.h> 104 if (!gpio_vbus->phy.otg->gadget) in gpio_vbus_work() 121 gpio_vbus->phy.otg->state = OTG_STATE_B_PERIPHERAL; in gpio_vbus_work() 123 usb_gadget_vbus_connect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work() 125 /* drawing a "unit load" is *always* OK, except for OTG */ in gpio_vbus_work() 133 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work() 142 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work() 144 gpio_vbus->phy.otg->state = OTG_STATE_B_IDLE; in gpio_vbus_work() 148 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work() 159 struct usb_otg *otg = gpio_vbus->phy.otg; in gpio_vbus_irq() local [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/display/dc/dcn10/ |
| D | dcn10_optc.h | 35 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 …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/usb/ |
| D | generic.txt | 11 "peripheral" and "otg". In case this attribute isn't 13 OTG. 19 - otg-rev: tells usb driver the release number of the OTG and EH supplement 22 property is used if any real OTG features(HNP/SRP/ADP) 23 is enabled, if ADP is required, otg-rev should be 26 - hnp-disable: tells OTG controllers we want to disable OTG HNP, normally HNP 27 is the basic function of real OTG except you want it 29 - srp-disable: tells OTG controllers we want to disable OTG SRP, SRP is 30 optional for OTG device. 31 - adp-disable: tells OTG controllers we want to disable OTG ADP, ADP is [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/ |
| D | dcn10_optc.h | 35 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 …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/ |
| D | generic.txt | 12 "peripheral" and "otg". In case this attribute isn't 14 OTG. 20 - otg-rev: tells usb driver the release number of the OTG and EH supplement 23 property is used if any real OTG features(HNP/SRP/ADP) 24 is enabled, if ADP is required, otg-rev should be 27 - hnp-disable: tells OTG controllers we want to disable OTG HNP, normally HNP 28 is the basic function of real OTG except you want it 30 - srp-disable: tells OTG controllers we want to disable OTG SRP, SRP is 31 optional for OTG device. 32 - adp-disable: tells OTG controllers we want to disable OTG ADP, ADP is [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/phy/ |
| D | phy-rockchip-inno-usb2.txt | 28 The sub-node name is used to identify host or otg port, 30 * "otg-port" : the name of otg port. 38 * "otg-id" : for the otg id interrupt. 39 * "otg-bvalid" : for the otg vbus interrupt. 40 * "linestate" : for the host/otg linestate interrupt. 42 * "otg-mux" : otg-port interrupt, which mux otg-id/otg-bvalid/linestate 64 u2phy_otg: otg-port { 69 interrupt-names = "otg-id", "otg-bvalid", "linestate";
|
| /kernel/linux/linux-5.10/drivers/phy/samsung/ |
| D | phy-exynos5250-usb2.c | 201 u32 otg; in exynos5250_power_on() local 213 /* OTG configuration */ in exynos5250_power_on() 214 otg = readl(drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on() 216 otg &= ~EXYNOS_5250_USBOTGSYS_FSEL_MASK; in exynos5250_power_on() 217 otg |= drv->ref_reg_val << EXYNOS_5250_USBOTGSYS_FSEL_SHIFT; in exynos5250_power_on() 219 otg &= ~(EXYNOS_5250_USBOTGSYS_FORCE_SUSPEND | in exynos5250_power_on() 222 otg |= EXYNOS_5250_USBOTGSYS_PHY_SW_RST | in exynos5250_power_on() 227 otg &= ~EXYNOS_5250_USBOTGSYS_REFCLKSEL_MASK; in exynos5250_power_on() 228 otg |= EXYNOS_5250_REFCLKSEL_CLKCORE << in exynos5250_power_on() 230 writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on() [all …]
|
| /kernel/linux/linux-4.19/drivers/phy/samsung/ |
| D | phy-exynos5250-usb2.c | 204 u32 otg; in exynos5250_power_on() local 216 /* OTG configuration */ in exynos5250_power_on() 217 otg = readl(drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on() 219 otg &= ~EXYNOS_5250_USBOTGSYS_FSEL_MASK; in exynos5250_power_on() 220 otg |= drv->ref_reg_val << EXYNOS_5250_USBOTGSYS_FSEL_SHIFT; in exynos5250_power_on() 222 otg &= ~(EXYNOS_5250_USBOTGSYS_FORCE_SUSPEND | in exynos5250_power_on() 225 otg |= EXYNOS_5250_USBOTGSYS_PHY_SW_RST | in exynos5250_power_on() 230 otg &= ~EXYNOS_5250_USBOTGSYS_REFCLKSEL_MASK; in exynos5250_power_on() 231 otg |= EXYNOS_5250_REFCLKSEL_CLKCORE << in exynos5250_power_on() 233 writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/include/ivsrcid/dcn/ |
| D | irqsrcs_dcn_1_0.h | 528 #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 …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/include/ivsrcid/ |
| D | irqsrcs_dcn_1_0.h | 528 #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 …]
|