Home
last modified time | relevance | path

Searched +full:otg +full:- +full:id (Results 1 – 25 of 403) sorted by relevance

12345678910>>...17

/OK3568_Linux_fs/kernel/drivers/usb/phy/
H A Dphy-mv-usb.c1 // SPDX-License-Identifier: GPL-2.0+
21 #include <linux/usb/otg.h>
26 #include "phy-mv-usb.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()
55 if (mvotg->pdata->set_vbus == NULL) in mv_otg_set_vbus()
56 return -ENODEV; in mv_otg_set_vbus()
58 return mvotg->pdata->set_vbus(on); in mv_otg_set_vbus()
[all …]
H A Dphy-fsl-usb.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Jerry Huang <Chang-Ming.Huang@freescale.com>
32 #include "phy-fsl-usb.h"
43 #define DRIVER_DESC "Freescale USB OTG Transceiver Driver"
46 static const char driver_name[] = "fsl-usb2-otg";
109 fsl_writel(temp, &usb_dr_regs->ulpiview); in write_ulpi()
113 /* -------------------------------------------------------------*/
114 /* Operations that will be called from OTG Finite State Machine */
121 tmp = fsl_readl(&usb_dr_regs->otgsc) & ~OTGSC_INTSTS_MASK; in fsl_otg_chrg_vbus()
131 fsl_writel(tmp, &usb_dr_regs->otgsc); in fsl_otg_chrg_vbus()
[all …]
H A Dphy-ulpi.c1 // SPDX-License-Identifier: GPL-2.0+
17 #include <linux/usb/otg.h>
22 unsigned int id; member
29 .id = (_id), \
47 if (phy->flags & ULPI_OTG_ID_PULLUP) in ulpi_set_otg_flags()
54 if (phy->flags & ULPI_OTG_DP_PULLDOWN_DIS) in ulpi_set_otg_flags()
57 if (phy->flags & ULPI_OTG_DM_PULLDOWN_DIS) in ulpi_set_otg_flags()
60 if (phy->flags & ULPI_OTG_EXTVBUSIND) in ulpi_set_otg_flags()
74 if (phy->flags & ULPI_FC_HS) in ulpi_set_fc_flags()
76 else if (phy->flags & ULPI_FC_LS) in ulpi_set_fc_flags()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/common/
H A Dusb-otg-fsm.c1 // SPDX-License-Identifier: GPL-2.0+
3 * OTG Finite State Machine from OTG spec
8 * Jerry Huang <Chang-Ming.Huang@freescale.com>
18 #include <linux/usb/otg.h>
19 #include <linux/usb/otg-fsm.h>
33 if (fsm->protocol != protocol) { in otg_set_protocol()
34 VDBG("Changing role fsm->protocol= %d; new protocol= %d\n", in otg_set_protocol()
35 fsm->protocol, protocol); in otg_set_protocol()
37 if (fsm->protocol == PROTO_HOST) in otg_set_protocol()
39 else if (fsm->protocol == PROTO_GADGET) in otg_set_protocol()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_clock_source.h1 /* Copyright 2012-15 Advanced Micro Devices, Inc.
33 #define CS_COMMON_REG_LIST_DCE_100_110(id) \ argument
34 SRI(RESYNC_CNTL, PIXCLK, id), \
35 SRI(PLL_CNTL, BPHYC_PLL, id)
37 #define CS_COMMON_REG_LIST_DCE_80(id) \ argument
38 SRI(RESYNC_CNTL, PIXCLK, id), \
39 SRI(PLL_CNTL, DCCG_PLL, id)
41 #define CS_COMMON_REG_LIST_DCE_112(id) \ argument
42 SRI(PIXCLK_RESYNC_CNTL, PHYPLL, id)
72 SRII(PIXEL_RATE_CNTL, OTG, 0),\
[all …]
/OK3568_Linux_fs/kernel/drivers/phy/samsung/
H A Dphy-exynos5250-usb2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Samsung SoC USB 1.1/2.0 PHY driver - Exynos 5250 support
13 #include "phy-samsung-usb2.h"
169 return -EINVAL; in exynos5250_rate_to_clk()
177 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos5250_isol()
181 switch (inst->cfg->id) { in exynos5250_isol()
194 regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); in exynos5250_isol()
199 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos5250_power_on()
201 u32 otg; in exynos5250_power_on() local
206 switch (inst->cfg->id) { in exynos5250_power_on()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/core/
H A Dotg_productlist.h1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * This OTG and Embedded Host list is "Targeted Peripheral List".
13 /* hubs are optional in OTG, but very handy ... */
27 /* Linux-USB CDC Ethernet gadget */
29 /* Linux-USB CDC Ethernet + RNDIS gadget */
43 struct usb_device_id *id = productlist_table; in is_targeted() local
45 /* HNP test device is _never_ targeted (see OTG spec 6.6.6) */ in is_targeted()
46 if ((le16_to_cpu(dev->descriptor.idVendor) == 0x1a0a && in is_targeted()
47 le16_to_cpu(dev->descriptor.idProduct) == 0xbadd)) in is_targeted()
50 /* OTG PET device is always targeted (see OTG 2.0 ECN 6.4.2) */ in is_targeted()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/dwc3/
H A Ddrd.c1 // SPDX-License-Identifier: GPL-2.0
3 * drd.c - DesignWare USB3 DRD Controller Dual-role support
5 * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com
21 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVTEN); in dwc3_otg_disable_events()
24 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_disable_events()
29 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVTEN); in dwc3_otg_enable_events()
32 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_enable_events()
37 u32 reg = dwc3_readl(dwc->regs, DWC3_OEVT); in dwc3_otg_clear_events()
39 dwc3_writel(dwc->regs, DWC3_OEVTEN, reg); in dwc3_otg_clear_events()
56 spin_lock(&dwc->lock); in dwc3_otg_thread_irq()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/chipidea/
H A Dotg_fsm.c1 // SPDX-License-Identifier: GPL-2.0
3 * otg_fsm.c - ChipIdea USB IP core OTG FSM driver
11 * This file mainly handles OTG fsm, it includes OTG fsm operations
15 * - ADP
16 * - OTG test device
19 #include <linux/usb/otg.h>
27 #include "otg.h"
30 /* Add for otg: interact with user space app */
40 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); in a_bus_req_show()
41 size -= t; in a_bus_req_show()
[all …]
H A Dotg.c1 // SPDX-License-Identifier: GPL-2.0
3 * otg.c - ChipIdea USB IP core OTG driver
11 * This file mainly handles otgsc register, OTG fsm operations for HNP and SRP
15 #include <linux/usb/otg.h>
21 #include "otg.h"
35 * If using extcon framework for VBUS and/or ID signal in hw_read_otgsc()
38 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc()
39 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()
40 if (cable->changed) in hw_read_otgsc()
45 if (cable->connected) in hw_read_otgsc()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/musb/
H A Dtusb6010.c1 // SPDX-License-Identifier: GPL-2.0
3 * TUSB6010 USB 2.0 OTG Dual Role controller
9 * - Driver assumes that interface to external host (main CPU) is
24 #include <linux/dma-mapping.h>
46 void __iomem *tbase = musb->ctrl_base; in tusb_get_revision()
63 void __iomem *tbase = musb->ctrl_base; in tusb_print_revision()
66 rev = musb->tusb_revision; in tusb_print_revision()
91 * Workaround for spontaneous WBUS wake-up issue #2 for tusb3.0.
96 void __iomem *tbase = musb->ctrl_base; in tusb_wbus_quirk()
109 dev_dbg(musb->controller, "Enabled tusb wbus quirk ctrl %08x ena %08x\n", in tusb_wbus_quirk()
[all …]
H A Dda8xx.c1 // SPDX-License-Identifier: GPL-2.0
3 * Texas Instruments DA8xx/OMAP-L1x "glue layer"
5 * Copyright (c) 2008-2009 MontaVista Software, Inc. <source@mvista.com>
8 * Copyright (C) 2005-2006 by Texas Instruments
23 #include <linux/dma-mapping.h>
32 /* USB 2.0 OTG module registers */
46 #define DA8XX_USB_GENERIC_RNDIS_EP_SIZE_REG(n) (0x50 + (((n) - 1) << 2))
76 * - not read/write INTRUSB/INTRUSBE (except during
78 * - use INTSET/INTCLR instead.
82 * da8xx_musb_enable - enable interrupts
[all …]
H A Ddavinci.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2005-2006 by Texas Instruments
18 #include <linux/dma-mapping.h>
24 #include <asm/mach-types.h>
54 /* power everything up; start the on-chip PHY and its PLL */ in phy_on()
68 /* powerdown the on-chip PHY, its PLL, and the OTG block */ in phy_off()
81 tmp = (musb->epmask & DAVINCI_USB_TX_ENDPTS_MASK) in davinci_musb_enable()
83 musb_writel(musb->ctrl_base, DAVINCI_USB_INT_MASK_SET_REG, tmp); in davinci_musb_enable()
85 tmp = (musb->epmask & (0xfffe & DAVINCI_USB_RX_ENDPTS_MASK)) in davinci_musb_enable()
87 musb_writel(musb->ctrl_base, DAVINCI_USB_INT_MASK_SET_REG, tmp); in davinci_musb_enable()
[all …]
H A Dam35x.c1 // SPDX-License-Identifier: GPL-2.0
9 * Copyright (c) 2008-2009, MontaVista Software, Inc. <source@mvista.com>
19 #include <linux/dma-mapping.h>
21 #include <linux/platform_data/usb-omap.h>
28 /* USB 2.0 OTG module registers */
79 * am35x_musb_enable - enable interrupts
83 void __iomem *reg_base = musb->ctrl_base; in am35x_musb_enable()
87 epmask = ((musb->epmask & AM35X_TX_EP_MASK) << AM35X_INTR_TX_SHIFT) | in am35x_musb_enable()
88 ((musb->epmask & AM35X_RX_EP_MASK) << AM35X_INTR_RX_SHIFT); in am35x_musb_enable()
93 /* Force the DRVVBUS IRQ so we can start polling for ID change. */ in am35x_musb_enable()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/cdns3/
H A Ddrd.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2018-2020 Cadence.
16 #include <linux/usb/otg.h>
24 * cdns3_set_mode - change mode of OTG Core
41 dev_dbg(cdns->dev, "Set controller to OTG mode\n"); in cdns3_set_mode()
43 if (cdns->version == CDNSP_CONTROLLER_V2) in cdns3_set_mode()
44 override_reg = &cdns->otg_cdnsp_regs->override; in cdns3_set_mode()
45 else if (cdns->version == CDNS3_CONTROLLER_V1) in cdns3_set_mode()
46 override_reg = &cdns->otg_v1_regs->override; in cdns3_set_mode()
48 override_reg = &cdns->otg_v0_regs->ctrl1; in cdns3_set_mode()
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/cdns3/
H A Ddrd.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2018-2019 Cadence.
17 #include <linux/usb/otg.h>
26 * cdns3_set_mode - change mode of OTG Core
43 dev_dbg(cdns->dev, "Set controller to OTG mode\n"); in cdns3_set_mode()
44 if (cdns->version == CDNS3_CONTROLLER_V1) { in cdns3_set_mode()
45 reg = readl(&cdns->otg_v1_regs->override); in cdns3_set_mode()
47 writel(reg, &cdns->otg_v1_regs->override); in cdns3_set_mode()
49 reg = readl(&cdns->otg_v0_regs->ctrl1); in cdns3_set_mode()
51 writel(reg, &cdns->otg_v0_regs->ctrl1); in cdns3_set_mode()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/phy/
H A Dphy-rockchip-naneng-usb2.txt4 - compatible : should be one of the listed compatibles:
5 * "rockchip,rv1126-usb2phy"
6 - reg : the address offset of grf for usb-phy configuration.
7 - rockchip,grf : phandle to the syscon managing the "general register files"
8 - clocks : phandle + phy specifier pair, for the input clocks of phy.
9 - clock-names : input clocks name of phy.
10 - resets : phandle + reset specifier pairs.
11 - reset-names : reset names of phy.
12 - #clock-cells : should be 0.
13 - clock-output-names : specify the 480m output clock name.
[all …]
H A Dphy-rockchip-inno-usb2.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/phy/phy-rockchip-inno-usb2.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Heiko Stuebner <heiko@sntech.de>
15 - rockchip,px30-usb2phy
16 - rockchip,rk1808-usb2phy
17 - rockchip,rk3128-usb2phy
18 - rockchip,rk3228-usb2phy
19 - rockchip,rk3308-usb2phy
[all …]
H A Dallwinner,sun8i-v3s-usb-phy.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/phy/allwinner,sun8i-v3s-usb-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <mripard@kernel.org>
14 "#phy-cells":
18 const: allwinner,sun8i-v3s-usb-phy
22 - description: PHY Control registers
23 - description: PHY PMU0 registers
[all …]
H A Dallwinner,sun5i-a13-usb-phy.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/phy/allwinner,sun5i-a13-usb-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <mripard@kernel.org>
14 "#phy-cells":
18 const: allwinner,sun5i-a13-usb-phy
22 - description: PHY Control registers
23 - description: PHY PMU1 registers
[all …]
H A Dallwinner,sun8i-a23-usb-phy.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/phy/allwinner,sun8i-a23-usb-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <mripard@kernel.org>
14 "#phy-cells":
19 - allwinner,sun8i-a23-usb-phy
20 - allwinner,sun8i-a33-usb-phy
24 - description: PHY Control registers
[all …]
H A Dallwinner,sun50i-a64-usb-phy.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/phy/allwinner,sun50i-a64-usb-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <mripard@kernel.org>
14 "#phy-cells":
18 const: allwinner,sun50i-a64-usb-phy
22 - description: PHY Control registers
23 - description: PHY PMU0 registers
[all …]
H A Dallwinner,sun50i-h6-usb-phy.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/phy/allwinner,sun50i-h6-usb-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chen-Yu Tsai <wens@csie.org>
11 - Maxime Ripard <mripard@kernel.org>
14 "#phy-cells":
18 const: allwinner,sun50i-h6-usb-phy
22 - description: PHY Control registers
23 - description: PHY PMU0 registers
[all …]
/OK3568_Linux_fs/kernel/include/linux/platform_data/
H A Dmv_usb.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
25 struct mv_usb_addon_irq *id; /* Only valid for OTG. ID pin change*/ member
26 struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/
28 /* only valid for HCD. OTG or Host only*/
31 /* This flag is used for that needs id pin checked by otg */
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/
H A Dusb-drd.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/usb/usb-drd.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic USB OTG Controller Device Tree Bindings
10 - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 otg-rev:
15 Tells usb driver the release number of the OTG and EH supplement with
16 which the device and its descriptors are compliant, in binary-coded
17 decimal (i.e. 2.0 is 0200H). This property is used if any real OTG
[all …]

12345678910>>...17