Home
last modified time | relevance | path

Searched refs:dwmac (Results 1 – 25 of 86) sorted by relevance

1234

/Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-stm32.c108 int (*clk_prepare)(struct stm32_dwmac *dwmac, bool prepare);
109 int (*suspend)(struct stm32_dwmac *dwmac);
110 void (*resume)(struct stm32_dwmac *dwmac);
111 int (*parse_data)(struct stm32_dwmac *dwmac,
118 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32_dwmac_init() local
121 if (dwmac->ops->set_mode) { in stm32_dwmac_init()
122 ret = dwmac->ops->set_mode(plat_dat); in stm32_dwmac_init()
127 ret = clk_prepare_enable(dwmac->clk_tx); in stm32_dwmac_init()
131 if (!dwmac->dev->power.is_suspended) { in stm32_dwmac_init()
132 ret = clk_prepare_enable(dwmac->clk_rx); in stm32_dwmac_init()
[all …]
Ddwmac-meson8b.c52 int (*set_phy_mode)(struct meson8b_dwmac *dwmac);
72 static void meson8b_dwmac_mask_bits(struct meson8b_dwmac *dwmac, u32 reg, in meson8b_dwmac_mask_bits() argument
77 data = readl(dwmac->regs + reg); in meson8b_dwmac_mask_bits()
81 writel(data, dwmac->regs + reg); in meson8b_dwmac_mask_bits()
84 static struct clk *meson8b_dwmac_register_clk(struct meson8b_dwmac *dwmac, in meson8b_dwmac_register_clk() argument
94 snprintf(clk_name, sizeof(clk_name), "%s#%s", dev_name(dwmac->dev), in meson8b_dwmac_register_clk()
105 return devm_clk_register(dwmac->dev, hw); in meson8b_dwmac_register_clk()
108 static int meson8b_init_rgmii_tx_clk(struct meson8b_dwmac *dwmac) in meson8b_init_rgmii_tx_clk() argument
112 struct device *dev = dwmac->dev; in meson8b_init_rgmii_tx_clk()
136 clk_configs->m250_mux.reg = dwmac->regs + PRG_ETH0; in meson8b_init_rgmii_tx_clk()
[all …]
Ddwmac-sti.c162 struct sti_dwmac *dwmac = priv; in stih4xx_fix_retime_src() local
163 u32 src = dwmac->tx_retime_src; in stih4xx_fix_retime_src()
164 u32 reg = dwmac->ctrl_reg; in stih4xx_fix_retime_src()
167 if (dwmac->interface == PHY_INTERFACE_MODE_MII) { in stih4xx_fix_retime_src()
169 } else if (dwmac->interface == PHY_INTERFACE_MODE_RMII) { in stih4xx_fix_retime_src()
170 if (dwmac->ext_phyclk) { in stih4xx_fix_retime_src()
176 } else if (IS_PHY_IF_MODE_RGMII(dwmac->interface)) { in stih4xx_fix_retime_src()
191 clk_set_rate(dwmac->clk, freq); in stih4xx_fix_retime_src()
193 regmap_update_bits(dwmac->regmap, reg, STIH4XX_RETIME_SRC_MASK, in stih4xx_fix_retime_src()
199 struct sti_dwmac *dwmac = priv; in stid127_fix_retime_src() local
[all …]
Ddwmac-socfpga.c63 struct socfpga_dwmac *dwmac = (struct socfpga_dwmac *)priv; in socfpga_dwmac_fix_mac_speed() local
64 void __iomem *splitter_base = dwmac->splitter_base; in socfpga_dwmac_fix_mac_speed()
65 void __iomem *tse_pcs_base = dwmac->pcs.tse_pcs_base; in socfpga_dwmac_fix_mac_speed()
66 void __iomem *sgmii_adapter_base = dwmac->pcs.sgmii_adapter_base; in socfpga_dwmac_fix_mac_speed()
67 struct device *dev = dwmac->dev; in socfpga_dwmac_fix_mac_speed()
97 tse_pcs_fix_mac_speed(&dwmac->pcs, phy_dev, speed); in socfpga_dwmac_fix_mac_speed()
100 static int socfpga_dwmac_parse_data(struct socfpga_dwmac *dwmac, struct device *dev) in socfpga_dwmac_parse_data() argument
131 dwmac->f2h_ptp_ref_clk = of_property_read_bool(np, "altr,f2h_ptp_ref_clk"); in socfpga_dwmac_parse_data()
142 dwmac->splitter_base = devm_ioremap_resource(dev, &res_splitter); in socfpga_dwmac_parse_data()
143 if (IS_ERR(dwmac->splitter_base)) { in socfpga_dwmac_parse_data()
[all …]
DMakefile15 obj-$(CONFIG_DWMAC_ANARION) += dwmac-anarion.o
16 obj-$(CONFIG_DWMAC_IPQ806X) += dwmac-ipq806x.o
17 obj-$(CONFIG_DWMAC_LPC18XX) += dwmac-lpc18xx.o
18 obj-$(CONFIG_DWMAC_MEDIATEK) += dwmac-mediatek.o
19 obj-$(CONFIG_DWMAC_MESON) += dwmac-meson.o dwmac-meson8b.o
20 obj-$(CONFIG_DWMAC_OXNAS) += dwmac-oxnas.o
21 obj-$(CONFIG_DWMAC_QCOM_ETHQOS) += dwmac-qcom-ethqos.o
22 obj-$(CONFIG_DWMAC_ROCKCHIP) += dwmac-rk.o
23 obj-$(CONFIG_DWMAC_SOCFPGA) += dwmac-altr-socfpga.o
24 obj-$(CONFIG_DWMAC_STI) += dwmac-sti.o
[all …]
Ddwmac-oxnas.c59 struct oxnas_dwmac *dwmac = priv; in oxnas_dwmac_init() local
64 ret = device_reset(dwmac->dev); in oxnas_dwmac_init()
68 ret = clk_prepare_enable(dwmac->clk); in oxnas_dwmac_init()
72 ret = regmap_read(dwmac->regmap, OXNAS_DWMAC_CTRL_REGOFFSET, &value); in oxnas_dwmac_init()
74 clk_disable_unprepare(dwmac->clk); in oxnas_dwmac_init()
91 regmap_write(dwmac->regmap, OXNAS_DWMAC_CTRL_REGOFFSET, value); in oxnas_dwmac_init()
98 regmap_write(dwmac->regmap, OXNAS_DWMAC_DELAY_REGOFFSET, value); in oxnas_dwmac_init()
105 struct oxnas_dwmac *dwmac = priv; in oxnas_dwmac_exit() local
107 clk_disable_unprepare(dwmac->clk); in oxnas_dwmac_exit()
114 struct oxnas_dwmac *dwmac; in oxnas_dwmac_probe() local
[all …]
Ddwmac-meson.c27 struct meson_dwmac *dwmac = priv; in meson6_dwmac_fix_mac_speed() local
30 val = readl(dwmac->reg); in meson6_dwmac_fix_mac_speed()
41 writel(val, dwmac->reg); in meson6_dwmac_fix_mac_speed()
48 struct meson_dwmac *dwmac; in meson6_dwmac_probe() local
59 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in meson6_dwmac_probe()
60 if (!dwmac) { in meson6_dwmac_probe()
65 dwmac->reg = devm_platform_ioremap_resource(pdev, 1); in meson6_dwmac_probe()
66 if (IS_ERR(dwmac->reg)) { in meson6_dwmac_probe()
67 ret = PTR_ERR(dwmac->reg); in meson6_dwmac_probe()
71 plat_dat->bsp_priv = dwmac; in meson6_dwmac_probe()
DKconfig98 tristate "Amlogic Meson dwmac support"
109 tristate "Oxford Semiconductor OXNAS dwmac support"
130 tristate "Rockchip dwmac support"
141 tristate "SOCFPGA dwmac support"
/Linux-v5.4/Documentation/devicetree/bindings/net/
Dsti-dwmac.txt10 - compatible : Can be "st,stih415-dwmac", "st,stih416-dwmac",
11 "st,stih407-dwmac", "st,stid127-dwmac".
35 ethernet0: dwmac@9630000 {
37 compatible = "st,stih407-dwmac", "snps,dwmac", "snps,dwmac-3.710";
Dnxp,lpc1850-dwmac.txt7 - compatible: Should contain "nxp,lpc1850-dwmac"
12 compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
Doxnas-dwmac.txt3 The device inherits all the properties of the dwmac/stmmac devices
10 - "oxsemi,ox820-dwmac" to select glue
11 - "snps,dwmac-3.512" to select IP version.
23 compatible = "oxsemi,ox820-dwmac", "snps,dwmac-3.512";
Dstm32-dwmac.txt9 - compatible: For MCU family should be "st,stm32-dwmac" to select glue, and
10 "snps,dwmac-3.50a" to select IP version.
11 For MPU family should be "st,stm32mp1-dwmac" to select
12 glue, and "snps,dwmac-4.20a" to select IP version.
33 compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
Dsocfpga-dwmac.txt3 This is a variant of the dwmac/stmmac driver an inherits all descriptions
12 Along with "snps,dwmac" and any applicable more detailed
47 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a", "snps,dwmac";
Danarion-gmac.txt7 - compatible: Should be "adaptrum,anarion-gmac", "snps,dwmac"
14 compatible = "adaptrum,anarion-gmac", "snps,dwmac";
Dipq806x-dwmac.txt3 The device inherits all the properties of the dwmac/stmmac devices
8 - compatible: should be "qcom,ipq806x-gmac" along with "snps,dwmac"
Dstmmac.txt1 This file has moved to snps,dwmac.yaml.
/Linux-v5.4/Documentation/devicetree/bindings/reset/
Dnxp,lpc1850-rgu.txt75 compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
/Linux-v5.4/arch/arm/boot/dts/
Dmeson8m2.dtsi28 compatible = "amlogic,meson8m2-dwmac", "snps,dwmac";
Dartpec6-devboard.dts62 compatible = "snps,dwmac-mdio";
Drk3228-evb.dts45 compatible = "snps,dwmac-mdio";
Dsocfpga_arria10.dtsi423 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
443 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
463 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.72a", "snps,dwmac";
/Linux-v5.4/arch/arm64/boot/dts/intel/
Dsocfpga_agilex.dtsi85 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
100 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
115 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
Dsocfpga_agilex_socdk.dts42 compatible = "snps,dwmac-mdio";
/Linux-v5.4/arch/arm64/boot/dts/altera/
Dsocfpga_stratix10.dtsi141 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
159 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
177 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
/Linux-v5.4/arch/arc/boot/dts/
Dabilis_tb10x.dtsi97 compatible = "snps,dwmac-3.70a","snps,dwmac";

1234