Home
last modified time | relevance | path

Searched refs:cpsw (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/ti/
Dcpsw_ethtool.c157 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_get_coalesce() local
159 coal->rx_coalesce_usecs = cpsw->coal_intvl; in cpsw_get_coalesce()
171 struct cpsw_common *cpsw = priv->cpsw; in cpsw_set_coalesce() local
175 int_ctrl = readl(&cpsw->wr_regs->int_control); in cpsw_set_coalesce()
176 prescale = cpsw->bus_freq_mhz * 4; in cpsw_set_coalesce()
204 writel(num_interrupts, &cpsw->wr_regs->rx_imax); in cpsw_set_coalesce()
205 writel(num_interrupts, &cpsw->wr_regs->tx_imax); in cpsw_set_coalesce()
212 writel(int_ctrl, &cpsw->wr_regs->int_control); in cpsw_set_coalesce()
215 cpsw->coal_intvl = coal_intvl; in cpsw_set_coalesce()
222 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_get_sset_count() local
[all …]
Dcpsw.c74 struct cpsw_common *cpsw = (priv)->cpsw; \
76 if (cpsw->data.dual_emac) \
77 (func)((cpsw)->slaves + priv->emac_port, ##arg);\
79 for (n = cpsw->data.slaves, \
80 slave = cpsw->slaves; \
95 struct cpsw_common *cpsw = ndev_to_cpsw(ndev); in cpsw_set_promiscious() local
96 struct cpsw_ale *ale = cpsw->ale; in cpsw_set_promiscious()
99 if (cpsw->data.dual_emac) { in cpsw_set_promiscious()
106 for (i = 0; i < cpsw->data.slaves; i++) in cpsw_set_promiscious()
107 if (cpsw->slaves[i].ndev->flags & IFF_PROMISC) in cpsw_set_promiscious()
[all …]
Dcpsw_priv.c22 int cpsw_init_common(struct cpsw_common *cpsw, void __iomem *ss_regs, in cpsw_init_common() argument
30 struct device *dev = cpsw->dev; in cpsw_init_common()
34 data = &cpsw->data; in cpsw_init_common()
35 cpsw->rx_ch_num = 1; in cpsw_init_common()
36 cpsw->tx_ch_num = 1; in cpsw_init_common()
38 cpsw->version = readl(&cpsw->regs->id_ver); in cpsw_init_common()
43 switch (cpsw->version) { in cpsw_init_common()
45 cpsw->host_port_regs = ss_regs + CPSW1_HOST_PORT_OFFSET; in cpsw_init_common()
47 cpsw->hw_stats = ss_regs + CPSW1_HW_STATS; in cpsw_init_common()
59 cpsw->host_port_regs = ss_regs + CPSW2_HOST_PORT_OFFSET; in cpsw_init_common()
[all …]
DMakefile6 obj-$(CONFIG_TI_CPSW) += cpsw-common.o
7 obj-$(CONFIG_TI_DAVINCI_EMAC) += cpsw-common.o
14 obj-$(CONFIG_TI_CPSW_PHY_SEL) += cpsw-phy-sel.o
17 ti_cpsw-y := cpsw.o davinci_cpdma.o cpsw_ale.o cpsw_priv.o cpsw_sl.o cpsw_ethtool.o
Dcpsw_priv.h370 struct cpsw_common *cpsw; member
373 #define ndev_to_cpsw(ndev) (((struct cpsw_priv *)netdev_priv(ndev))->cpsw)
376 #define cpsw_slave_index(cpsw, priv) \ argument
377 ((cpsw->data.dual_emac) ? priv->emac_port : \
378 cpsw->data.active_slave)
392 int cpsw_init_common(struct cpsw_common *cpsw, void __iomem *ss_regs,
395 void cpsw_split_res(struct cpsw_common *cpsw);
397 void cpsw_intr_enable(struct cpsw_common *cpsw);
398 void cpsw_intr_disable(struct cpsw_common *cpsw);
400 int cpsw_create_xdp_rxqs(struct cpsw_common *cpsw);
[all …]
DKconfig59 will be called cpsw.
/Linux-v5.4/Documentation/devicetree/bindings/net/
Dcpsw-phy-sel.txt5 - compatible : Should be "ti,am3352-cpsw-phy-sel" for am335x platform and
6 "ti,dra7xx-cpsw-phy-sel" for dra7xx platform
7 "ti,am43xx-cpsw-phy-sel" for am43xx platform
8 - reg : physical base address and size of the cpsw
18 phy_sel: cpsw-phy-sel@44e10650 {
19 compatible = "ti,am3352-cpsw-phy-sel";
25 phy_sel: cpsw-phy-sel@44e10650 {
26 compatible = "ti,am3352-cpsw-phy-sel";
Dcpsw.txt6 "ti,cpsw" for backward compatible
7 "ti,am335x-cpsw" for AM335x controllers
8 "ti,am4372-cpsw" for AM437x controllers
9 "ti,dra7-cpsw" for DRA7x controllers
10 - reg : physical base address and size of the cpsw
22 - cpsw-phy-sel : Specifies the phandle to the CPSW phy mode selection
23 device. See also cpsw-phy-sel.txt for it's binding.
24 Note that in legacy cases cpsw-phy-sel may be
34 required to be driven so that cpsw data lines
37 driven low so that cpsw slave 0 and phy data
[all …]
Ddavinci-mdio.txt7 and "ti,cpsw-mdio" for am335x, am472x, am57xx/dra7, dm814x SoCs
/Linux-v5.4/Documentation/devicetree/bindings/phy/
Dti-phy-gmii-sel.txt56 compatible = "ti,am335x-cpsw","ti,cpsw";
/Linux-v5.4/Documentation/networking/device_drivers/ti/
Dcpsw.txt7 The cpsw has 3 CBS shapers for each external ports. This document
8 describes MQPRIO and CBS Qdisc offload configuration for cpsw driver
17 Under consideration two examples with AM572x EVM running cpsw driver
69 f - fifo (cpsw fifo)
/Linux-v5.4/arch/arm/boot/dts/
Dam335x-osd3358-sm-red.dts299 cpsw_default: cpsw-default {
317 cpsw_sleep: cpsw-sleep {
Dam33xx-clocks.dtsi576 cpsw_125mhz_clkctrl: cpsw-125mhz-clkctrl@0 {
Ddm814x.dtsi581 compatible = "ti,cpsw";
Dam43xx-clocks.dtsi822 cpsw_125mhz_clkctrl: cpsw-125mhz-clkctrl@b20 {
Dam33xx-l4.dtsi693 compatible = "ti,am335x-cpsw","ti,cpsw";
720 compatible = "ti,cpsw-mdio","ti,davinci_mdio";
Dam437x-l4.dtsi532 compatible = "ti,am4372-cpsw","ti,cpsw";
559 compatible = "ti,am4372-mdio","ti,cpsw-mdio","ti,davinci_mdio";
Ddra7-l4.dtsi3021 * Do not allow gating of cpsw clock as workaround
3030 compatible = "ti,dra7-cpsw","ti,cpsw";
3061 compatible = "ti,cpsw-mdio","ti,davinci_mdio";
/Linux-v5.4/
DMAINTAINERS16221 F: drivers/net/ethernet/ti/cpsw*