Home
last modified time | relevance | path

Searched full:cdns (Results 1 – 25 of 350) sorted by relevance

12345678910>>...14

/kernel/linux/linux-6.6/drivers/usb/cdns3/
Ddrd.c23 * @cdns: pointer to context structure
28 static int cdns_set_mode(struct cdns *cdns, enum usb_dr_mode mode) in cdns_set_mode() argument
39 dev_dbg(cdns->dev, "Set controller to OTG mode\n"); in cdns_set_mode()
41 if (cdns->version == CDNSP_CONTROLLER_V2) in cdns_set_mode()
42 override_reg = &cdns->otg_cdnsp_regs->override; in cdns_set_mode()
43 else if (cdns->version == CDNS3_CONTROLLER_V1) in cdns_set_mode()
44 override_reg = &cdns->otg_v1_regs->override; in cdns_set_mode()
46 override_reg = &cdns->otg_v0_regs->ctrl1; in cdns_set_mode()
50 if (cdns->version != CDNS3_CONTROLLER_V0) in cdns_set_mode()
57 if (cdns->version == CDNS3_CONTROLLER_V1) { in cdns_set_mode()
[all …]
Dcore.c27 static int cdns_idle_init(struct cdns *cdns);
29 static int cdns_role_start(struct cdns *cdns, enum usb_role role) in cdns_role_start() argument
36 mutex_lock(&cdns->mutex); in cdns_role_start()
37 cdns->role = role; in cdns_role_start()
38 mutex_unlock(&cdns->mutex); in cdns_role_start()
40 if (!cdns->roles[role]) in cdns_role_start()
43 if (cdns->roles[role]->state == CDNS_ROLE_STATE_ACTIVE) in cdns_role_start()
46 mutex_lock(&cdns->mutex); in cdns_role_start()
47 ret = cdns->roles[role]->start(cdns); in cdns_role_start()
49 cdns->roles[role]->state = CDNS_ROLE_STATE_ACTIVE; in cdns_role_start()
[all …]
Dcdns3-plat.c26 static int set_phy_power_on(struct cdns *cdns) in set_phy_power_on() argument
30 ret = phy_power_on(cdns->usb2_phy); in set_phy_power_on()
34 ret = phy_power_on(cdns->usb3_phy); in set_phy_power_on()
36 phy_power_off(cdns->usb2_phy); in set_phy_power_on()
41 static void set_phy_power_off(struct cdns *cdns) in set_phy_power_off() argument
43 phy_power_off(cdns->usb3_phy); in set_phy_power_off()
44 phy_power_off(cdns->usb2_phy); in set_phy_power_off()
57 struct cdns *cdns; in cdns3_plat_probe() local
61 cdns = devm_kzalloc(dev, sizeof(*cdns), GFP_KERNEL); in cdns3_plat_probe()
62 if (!cdns) in cdns3_plat_probe()
[all …]
Dcore.h17 struct cdns;
30 int (*start)(struct cdns *cdns);
31 void (*stop)(struct cdns *cdns);
32 int (*suspend)(struct cdns *cdns, bool do_wakeup);
33 int (*resume)(struct cdns *cdns, bool hibernated);
51 * struct cdns - Representation of Cadence USB3 DRD controller.
67 * @host_dev: the child host device pointer for cdns core
84 struct cdns { struct
121 int (*gadget_init)(struct cdns *cdns); argument
124 int cdns_hw_role_switch(struct cdns *cdns);
[all …]
Dhost.c69 static int __cdns_host_init(struct cdns *cdns) in __cdns_host_init() argument
75 cdns_drd_host_on(cdns); in __cdns_host_init()
79 dev_err(cdns->dev, "couldn't allocate xHCI device\n"); in __cdns_host_init()
83 xhci->dev.parent = cdns->dev; in __cdns_host_init()
84 cdns->host_dev = xhci; in __cdns_host_init()
86 ret = platform_device_add_resources(xhci, cdns->xhci_res, in __cdns_host_init()
89 dev_err(cdns->dev, "couldn't add resources to xHCI device\n"); in __cdns_host_init()
93 if (cdns->version < CDNSP_CONTROLLER_V2) in __cdns_host_init()
94 cdns->xhci_plat_data = kmemdup(&xhci_plat_cdns3_xhci, in __cdns_host_init()
97 cdns->xhci_plat_data = kmemdup(&xhci_plat_cdnsp_xhci, in __cdns_host_init()
[all …]
Ddrd.h212 bool cdns_is_host(struct cdns *cdns);
213 bool cdns_is_device(struct cdns *cdns);
214 int cdns_get_id(struct cdns *cdns);
215 int cdns_get_vbus(struct cdns *cdns);
216 void cdns_clear_vbus(struct cdns *cdns);
217 void cdns_set_vbus(struct cdns *cdns);
218 int cdns_drd_init(struct cdns *cdns);
219 int cdns_drd_exit(struct cdns *cdns);
220 int cdns_drd_update_mode(struct cdns *cdns);
221 int cdns_drd_gadget_on(struct cdns *cdns);
[all …]
/kernel/linux/linux-5.10/drivers/usb/cdns3/
Dcore.c28 static int cdns3_idle_init(struct cdns3 *cdns);
30 static int cdns3_role_start(struct cdns3 *cdns, enum usb_role role) in cdns3_role_start() argument
37 mutex_lock(&cdns->mutex); in cdns3_role_start()
38 cdns->role = role; in cdns3_role_start()
39 mutex_unlock(&cdns->mutex); in cdns3_role_start()
41 if (!cdns->roles[role]) in cdns3_role_start()
44 if (cdns->roles[role]->state == CDNS3_ROLE_STATE_ACTIVE) in cdns3_role_start()
47 mutex_lock(&cdns->mutex); in cdns3_role_start()
48 ret = cdns->roles[role]->start(cdns); in cdns3_role_start()
50 cdns->roles[role]->state = CDNS3_ROLE_STATE_ACTIVE; in cdns3_role_start()
[all …]
Ddrd.c25 * @cdns: pointer to context structure
30 static int cdns3_set_mode(struct cdns3 *cdns, enum usb_dr_mode mode) in cdns3_set_mode() argument
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()
52 if (cdns->version != CDNS3_CONTROLLER_V0) in cdns3_set_mode()
59 if (cdns->version == CDNS3_CONTROLLER_V1) { in cdns3_set_mode()
[all …]
Dhost.c31 static int __cdns3_host_init(struct cdns3 *cdns) in __cdns3_host_init() argument
37 cdns3_drd_host_on(cdns); in __cdns3_host_init()
41 dev_err(cdns->dev, "couldn't allocate xHCI device\n"); in __cdns3_host_init()
45 xhci->dev.parent = cdns->dev; in __cdns3_host_init()
46 cdns->host_dev = xhci; in __cdns3_host_init()
48 ret = platform_device_add_resources(xhci, cdns->xhci_res, in __cdns3_host_init()
51 dev_err(cdns->dev, "couldn't add resources to xHCI device\n"); in __cdns3_host_init()
55 cdns->xhci_plat_data = kmemdup(&xhci_plat_cdns3_xhci, in __cdns3_host_init()
57 if (!cdns->xhci_plat_data) { in __cdns3_host_init()
62 if (cdns->pdata && (cdns->pdata->quirks & CDNS3_DEFAULT_PM_RUNTIME_ALLOW)) in __cdns3_host_init()
[all …]
/kernel/linux/linux-6.6/drivers/soundwire/
Dcadence_master.c203 static inline u32 cdns_readl(struct sdw_cdns *cdns, int offset) in cdns_readl() argument
205 return readl(cdns->registers + offset); in cdns_readl()
208 static inline void cdns_writel(struct sdw_cdns *cdns, int offset, u32 value) in cdns_writel() argument
210 writel(value, cdns->registers + offset); in cdns_writel()
213 static inline u32 cdns_ip_readl(struct sdw_cdns *cdns, int offset) in cdns_ip_readl() argument
215 return cdns_readl(cdns, cdns->ip_offset + offset); in cdns_ip_readl()
218 static inline void cdns_ip_writel(struct sdw_cdns *cdns, int offset, u32 value) in cdns_ip_writel() argument
220 return cdns_writel(cdns, cdns->ip_offset + offset, value); in cdns_ip_writel()
223 static inline void cdns_updatel(struct sdw_cdns *cdns, in cdns_updatel() argument
228 tmp = cdns_readl(cdns, offset); in cdns_updatel()
[all …]
Dintel_bus_common.c14 struct device *dev = sdw->cdns.dev; in intel_start_bus()
15 struct sdw_cdns *cdns = &sdw->cdns; in intel_start_bus() local
16 struct sdw_bus *bus = &cdns->bus; in intel_start_bus()
26 ret = sdw_cdns_init(cdns); in intel_start_bus()
32 sdw_cdns_config_update(cdns); in intel_start_bus()
42 ret = sdw_cdns_config_update_set_wait(cdns); in intel_start_bus()
48 ret = sdw_cdns_enable_interrupt(cdns, true); in intel_start_bus()
54 ret = sdw_cdns_exit_reset(cdns); in intel_start_bus()
60 sdw_cdns_check_self_clearing_bits(cdns, __func__, in intel_start_bus()
63 schedule_delayed_work(&cdns->attach_dwork, in intel_start_bus()
[all …]
Dintel_ace2x.c73 struct sdw_bus *bus = &sdw->cdns.bus; in intel_link_power_up()
84 dev_dbg(sdw->cdns.dev, "first link up, programming SYNCPRD\n"); in intel_link_power_up()
93 dev_err(sdw->cdns.dev, "%s: hdac_bus_eml_sdw_set_syncprd failed: %d\n", in intel_link_power_up()
101 dev_err(sdw->cdns.dev, "%s: hdac_bus_eml_sdw_power_up failed: %d\n", in intel_link_power_up()
110 dev_err(sdw->cdns.dev, "%s: hdac_bus_eml_sdw_wait_syncpu failed: %d\n", in intel_link_power_up()
118 sdw->cdns.link_up = true; in intel_link_power_up()
136 sdw->cdns.link_up = false; in intel_link_power_down()
142 dev_err(sdw->cdns.dev, "%s: hdac_bus_eml_sdw_power_down failed: %d\n", in intel_link_power_down()
146 * we leave the sdw->cdns.link_up flag as false since we've disabled in intel_link_power_down()
173 dev_err(sdw->cdns.dev, "%s: SyncGO clear failed: %d\n", __func__, ret); in intel_sync_go_unlocked()
[all …]
Dintel_auxdevice.c79 struct sdw_cdns *cdns = bus_to_cdns(bus); in generic_pre_bank_switch() local
80 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_pre_bank_switch()
87 struct sdw_cdns *cdns = bus_to_cdns(bus); in generic_post_bank_switch() local
88 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_post_bank_switch()
97 struct sdw_cdns *cdns = bus_to_cdns(bus); in generic_new_peripheral_assigned() local
98 struct sdw_intel *sdw = cdns_to_intel(cdns); in generic_new_peripheral_assigned()
218 struct sdw_cdns *cdns; in intel_link_probe() local
226 cdns = &sdw->cdns; in intel_link_probe()
227 bus = &cdns->bus; in intel_link_probe()
231 cdns->dev = dev; in intel_link_probe()
[all …]
Dintel.c141 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_m_datamode()
159 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_s_datamode()
176 struct dentry *root = sdw->cdns.bus.debugfs; in intel_debugfs_init()
192 sdw_cdns_debugfs_init(&sdw->cdns, sdw->debugfs); in intel_debugfs_init()
343 struct sdw_bus *bus = &sdw->cdns.bus; in intel_link_power_up()
369 dev_dbg(sdw->cdns.dev, "powering up all links\n"); in intel_link_power_up()
372 dev_dbg(sdw->cdns.dev, in intel_link_power_up()
394 dev_err(sdw->cdns.dev, "Failed to power up link: %d\n", ret); in intel_link_power_up()
402 dev_err(sdw->cdns.dev, in intel_link_power_up()
410 sdw->cdns.link_up = true; in intel_link_power_up()
[all …]
/kernel/linux/linux-5.10/drivers/soundwire/
Dcadence_master.c198 static inline u32 cdns_readl(struct sdw_cdns *cdns, int offset) in cdns_readl() argument
200 return readl(cdns->registers + offset); in cdns_readl()
203 static inline void cdns_writel(struct sdw_cdns *cdns, int offset, u32 value) in cdns_writel() argument
205 writel(value, cdns->registers + offset); in cdns_writel()
208 static inline void cdns_updatel(struct sdw_cdns *cdns, in cdns_updatel() argument
213 tmp = cdns_readl(cdns, offset); in cdns_updatel()
215 cdns_writel(cdns, offset, tmp); in cdns_updatel()
218 static int cdns_set_wait(struct sdw_cdns *cdns, int offset, u32 mask, u32 value) in cdns_set_wait() argument
225 reg_read = readl(cdns->registers + offset); in cdns_set_wait()
236 static int cdns_clear_bit(struct sdw_cdns *cdns, int offset, u32 value) in cdns_clear_bit() argument
[all …]
Dintel.c123 #define cdns_to_intel(_cdns) container_of(_cdns, struct sdw_intel, cdns)
268 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_m_datamode()
286 struct sdw_bus *bus = &sdw->cdns.bus; in intel_set_s_datamode()
303 struct dentry *root = sdw->cdns.bus.debugfs; in intel_debugfs_init()
319 sdw_cdns_debugfs_init(&sdw->cdns, sdw->debugfs); in intel_debugfs_init()
340 struct sdw_bus *bus = &sdw->cdns.bus; in intel_link_power_up()
366 dev_dbg(sdw->cdns.dev, "%s: powering up all links\n", __func__); in intel_link_power_up()
369 dev_dbg(sdw->cdns.dev, in intel_link_power_up()
391 dev_err(sdw->cdns.dev, "Failed to power up link: %d\n", ret); in intel_link_power_up()
399 dev_err(sdw->cdns.dev, in intel_link_power_up()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mtd/
Dcadence-quadspi.txt5 Generic default - "cdns,qspi-nor".
6 For TI 66AK2G SoC - "ti,k2g-qspi", "cdns,qspi-nor".
7 For TI AM654 SoC - "ti,am654-ospi", "cdns,qspi-nor".
14 - cdns,fifo-depth : Size of the data FIFO in words.
15 - cdns,fifo-width : Bus width of the data FIFO in bytes.
16 - cdns,trigger-address : 32-bit indirect AHB trigger address.
19 - cdns,is-decoded-cs : Flag to indicate whether decoder is used or not.
20 - cdns,rclk-en : Flag to indicate that QSPI return clock is used to latch
27 - cdns,read-delay : Delay for read capture logic, in clock cycles
28 - cdns,tshsl-ns : Delay in nanoseconds for the length that the master
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/bridge/cadence/
DMakefile2 obj-$(CONFIG_DRM_CDNS_DSI) += cdns-dsi.o
3 cdns-dsi-y := cdns-dsi-core.o
4 cdns-dsi-$(CONFIG_DRM_CDNS_DSI_J721E) += cdns-dsi-j721e.o
5 obj-$(CONFIG_DRM_CDNS_MHDP8546) += cdns-mhdp8546.o
6 cdns-mhdp8546-y := cdns-mhdp8546-core.o cdns-mhdp8546-hdcp.o
7 cdns-mhdp8546-$(CONFIG_DRM_CDNS_MHDP8546_J721E) += cdns-mhdp8546-j721e.o
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/spi/
Dcdns,qspi-nor.yaml4 $id: http://devicetree.org/schemas/spi/cdns,qspi-nor.yaml#
56 cdns,fifo-depth:
61 cdns,fifo-depth:
77 - const: cdns,qspi-nor
78 - const: cdns,qspi-nor
101 cdns,fifo-depth:
106 cdns,fifo-width:
112 cdns,trigger-address:
117 cdns,is-decoded-cs:
123 cdns,rclk-en:
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/
Dmacb.txt4 - compatible: Should be "cdns,[<chip>-]{macb|gem}"
5 Use "cdns,at91rm9200-emac" Atmel at91rm9200 SoC.
6 Use "cdns,at91sam9260-macb" for Atmel at91sam9 SoCs.
7 Use "cdns,sam9x60-macb" for Microchip sam9x60 SoC.
8 Use "cdns,np4-macb" for NP4 SoC devices.
9 Use "cdns,at32ap7000-macb" for other 10/100 usage or use the generic form: "cdns,macb".
10 Use "cdns,pc302-gem" for Picochip picoXcell pc302 and later devices based on
11 the Cadence GEM, or the generic form: "cdns,gem".
16 Use "cdns,zynq-gem" Xilinx Zynq-7xxx SoC.
17 Use "cdns,zynqmp-gem" for Zynq Ultrascale+ MPSoC.
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/
Dcdns,macb.yaml4 $id: http://devicetree.org/schemas/net/cdns,macb.yaml#
18 - cdns,at91rm9200-emac # Atmel at91rm9200 SoC
19 - const: cdns,emac # Generic
23 - cdns,zynq-gem # Xilinx Zynq-7xxx SoC
24 - cdns,zynqmp-gem # Xilinx Zynq Ultrascale+ MPSoC
25 - const: cdns,gem # Generic
33 - const: cdns,gem # Generic
37 - cdns,at91sam9260-macb # Atmel at91sam9 SoCs
38 - cdns,sam9x60-macb # Microchip sam9x60 SoC
40 - const: cdns,macb # Generic
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/phy/
Dphy-cadence-torrent.yaml22 - cdns,torrent-phy
88 cdns,phy-type:
96 cdns,num-lanes:
103 cdns,ssc-mode:
112 cdns,max-bit-rate:
123 - cdns,phy-type
124 - cdns,num-lanes
150 compatible = "cdns,torrent-phy";
165 cdns,phy-type = <PHY_TYPE_DP>;
166 cdns,num-lanes = <4>;
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/phy/
Dphy-cadence-torrent.yaml22 - cdns,torrent-phy
92 cdns,phy-type:
100 cdns,num-lanes:
107 cdns,ssc-mode:
116 cdns,max-bit-rate:
127 - cdns,phy-type
128 - cdns,num-lanes
154 compatible = "cdns,torrent-phy";
169 cdns,phy-type = <PHY_TYPE_DP>;
170 cdns,num-lanes = <4>;
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mmc/
Dcdns,sdhci.yaml4 $id: http://devicetree.org/schemas/mmc/cdns,sdhci.yaml#
21 - const: cdns,sd4hc
37 cdns,phy-input-delay-sd-highspeed:
43 cdns,phy-input-delay-legacy:
49 cdns,phy-input-delay-sd-uhs-sdr12:
55 cdns,phy-input-delay-sd-uhs-sdr25:
61 cdns,phy-input-delay-sd-uhs-sdr50:
67 cdns,phy-input-delay-sd-uhs-ddr50:
73 cdns,phy-input-delay-mmc-highspeed:
79 cdns,phy-input-delay-mmc-ddr:
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/mmc/
Dcdns,sdhci.yaml4 $id: http://devicetree.org/schemas/mmc/cdns,sdhci.yaml#
19 - const: cdns,sd4hc
39 cdns,phy-input-delay-sd-highspeed:
45 cdns,phy-input-delay-legacy:
51 cdns,phy-input-delay-sd-uhs-sdr12:
57 cdns,phy-input-delay-sd-uhs-sdr25:
63 cdns,phy-input-delay-sd-uhs-sdr50:
69 cdns,phy-input-delay-sd-uhs-ddr50:
75 cdns,phy-input-delay-mmc-highspeed:
81 cdns,phy-input-delay-mmc-ddr:
[all …]

12345678910>>...14