Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-stm32.c54 int (*clk_prepare)(struct stm32_dwmac *dwmac, bool prepare);
55 int (*suspend)(struct stm32_dwmac *dwmac);
56 void (*resume)(struct stm32_dwmac *dwmac);
57 int (*parse_data)(struct stm32_dwmac *dwmac,
64 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32_dwmac_init() local
67 if (dwmac->ops->set_mode) { in stm32_dwmac_init()
68 ret = dwmac->ops->set_mode(plat_dat); in stm32_dwmac_init()
73 ret = clk_prepare_enable(dwmac->clk_tx); in stm32_dwmac_init()
77 if (!dwmac->dev->power.is_suspended) { in stm32_dwmac_init()
78 ret = clk_prepare_enable(dwmac->clk_rx); in stm32_dwmac_init()
[all …]
Ddwmac-meson8b.c58 int (*set_phy_mode)(struct meson8b_dwmac *dwmac);
78 static void meson8b_dwmac_mask_bits(struct meson8b_dwmac *dwmac, u32 reg, in meson8b_dwmac_mask_bits() argument
83 data = readl(dwmac->regs + reg); in meson8b_dwmac_mask_bits()
87 writel(data, dwmac->regs + reg); in meson8b_dwmac_mask_bits()
90 static struct clk *meson8b_dwmac_register_clk(struct meson8b_dwmac *dwmac, in meson8b_dwmac_register_clk() argument
100 snprintf(clk_name, sizeof(clk_name), "%s#%s", dev_name(dwmac->dev), in meson8b_dwmac_register_clk()
111 return devm_clk_register(dwmac->dev, hw); in meson8b_dwmac_register_clk()
114 static int meson8b_init_rgmii_tx_clk(struct meson8b_dwmac *dwmac) in meson8b_init_rgmii_tx_clk() argument
118 struct device *dev = dwmac->dev; in meson8b_init_rgmii_tx_clk()
142 clk_configs->m250_mux.reg = dwmac->regs + PRG_ETH0; in meson8b_init_rgmii_tx_clk()
[all …]
Ddwmac-sti.c166 struct sti_dwmac *dwmac = priv; in stih4xx_fix_retime_src() local
167 u32 src = dwmac->tx_retime_src; in stih4xx_fix_retime_src()
168 u32 reg = dwmac->ctrl_reg; in stih4xx_fix_retime_src()
171 if (dwmac->interface == PHY_INTERFACE_MODE_MII) { in stih4xx_fix_retime_src()
173 } else if (dwmac->interface == PHY_INTERFACE_MODE_RMII) { in stih4xx_fix_retime_src()
174 if (dwmac->ext_phyclk) { in stih4xx_fix_retime_src()
180 } else if (IS_PHY_IF_MODE_RGMII(dwmac->interface)) { in stih4xx_fix_retime_src()
195 clk_set_rate(dwmac->clk, freq); in stih4xx_fix_retime_src()
197 regmap_update_bits(dwmac->regmap, reg, STIH4XX_RETIME_SRC_MASK, in stih4xx_fix_retime_src()
203 struct sti_dwmac *dwmac = priv; in stid127_fix_retime_src() local
[all …]
Ddwmac-socfpga.c66 struct socfpga_dwmac *dwmac = (struct socfpga_dwmac *)priv; in socfpga_dwmac_fix_mac_speed() local
67 void __iomem *splitter_base = dwmac->splitter_base; in socfpga_dwmac_fix_mac_speed()
68 void __iomem *tse_pcs_base = dwmac->pcs.tse_pcs_base; in socfpga_dwmac_fix_mac_speed()
69 void __iomem *sgmii_adapter_base = dwmac->pcs.sgmii_adapter_base; in socfpga_dwmac_fix_mac_speed()
70 struct device *dev = dwmac->dev; in socfpga_dwmac_fix_mac_speed()
100 tse_pcs_fix_mac_speed(&dwmac->pcs, phy_dev, speed); in socfpga_dwmac_fix_mac_speed()
103 static int socfpga_dwmac_parse_data(struct socfpga_dwmac *dwmac, struct device *dev) in socfpga_dwmac_parse_data() argument
115 dwmac->interface = of_get_phy_mode(np); in socfpga_dwmac_parse_data()
135 dwmac->f2h_ptp_ref_clk = of_property_read_bool(np, "altr,f2h_ptp_ref_clk"); in socfpga_dwmac_parse_data()
146 dwmac->splitter_base = devm_ioremap_resource(dev, &res_splitter); in socfpga_dwmac_parse_data()
[all …]
Ddwmac-oxnas.c65 struct oxnas_dwmac *dwmac = priv; in oxnas_dwmac_init() local
70 ret = device_reset(dwmac->dev); in oxnas_dwmac_init()
74 ret = clk_prepare_enable(dwmac->clk); in oxnas_dwmac_init()
78 ret = regmap_read(dwmac->regmap, OXNAS_DWMAC_CTRL_REGOFFSET, &value); in oxnas_dwmac_init()
80 clk_disable_unprepare(dwmac->clk); in oxnas_dwmac_init()
97 regmap_write(dwmac->regmap, OXNAS_DWMAC_CTRL_REGOFFSET, value); in oxnas_dwmac_init()
104 regmap_write(dwmac->regmap, OXNAS_DWMAC_DELAY_REGOFFSET, value); in oxnas_dwmac_init()
111 struct oxnas_dwmac *dwmac = priv; in oxnas_dwmac_exit() local
113 clk_disable_unprepare(dwmac->clk); in oxnas_dwmac_exit()
120 struct oxnas_dwmac *dwmac; in oxnas_dwmac_probe() local
[all …]
DMakefile13 obj-$(CONFIG_DWMAC_ANARION) += dwmac-anarion.o
14 obj-$(CONFIG_DWMAC_IPQ806X) += dwmac-ipq806x.o
15 obj-$(CONFIG_DWMAC_LPC18XX) += dwmac-lpc18xx.o
16 obj-$(CONFIG_DWMAC_MESON) += dwmac-meson.o dwmac-meson8b.o
17 obj-$(CONFIG_DWMAC_OXNAS) += dwmac-oxnas.o
18 obj-$(CONFIG_DWMAC_ROCKCHIP) += dwmac-rk.o
19 obj-$(CONFIG_DWMAC_SOCFPGA) += dwmac-altr-socfpga.o
20 obj-$(CONFIG_DWMAC_STI) += dwmac-sti.o
21 obj-$(CONFIG_DWMAC_STM32) += dwmac-stm32.o
22 obj-$(CONFIG_DWMAC_SUNXI) += dwmac-sunxi.o
[all …]
Ddwmac-meson.c33 struct meson_dwmac *dwmac = priv; in meson6_dwmac_fix_mac_speed() local
36 val = readl(dwmac->reg); in meson6_dwmac_fix_mac_speed()
47 writel(val, dwmac->reg); in meson6_dwmac_fix_mac_speed()
54 struct meson_dwmac *dwmac; in meson6_dwmac_probe() local
66 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in meson6_dwmac_probe()
67 if (!dwmac) { in meson6_dwmac_probe()
73 dwmac->reg = devm_ioremap_resource(&pdev->dev, res); in meson6_dwmac_probe()
74 if (IS_ERR(dwmac->reg)) { in meson6_dwmac_probe()
75 ret = PTR_ERR(dwmac->reg); in meson6_dwmac_probe()
79 plat_dat->bsp_priv = dwmac; in meson6_dwmac_probe()
DKconfig79 tristate "Amlogic Meson dwmac support"
90 tristate "Oxford Semiconductor OXNAS dwmac support"
101 tristate "Rockchip dwmac support"
112 tristate "SOCFPGA dwmac support"
/Linux-v4.19/Documentation/devicetree/bindings/net/
Dmeson-dwmac.txt3 The device inherits all the properties of the dwmac/stmmac devices
10 - "amlogic,meson6-dwmac"
11 - "amlogic,meson8b-dwmac"
12 - "amlogic,meson8m2-dwmac"
13 - "amlogic,meson-gxbb-dwmac"
14 - "amlogic,meson-axg-dwmac"
15 Additionally "snps,dwmac" and any applicable more
50 compatible = "amlogic,meson6-dwmac", "snps,dwmac";
61 compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
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.
34 compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
Dsocfpga-dwmac.txt3 This is a variant of the dwmac/stmmac driver an inherits all descriptions
10 "snps,dwmac" and any applicable more detailed
41 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"
Ddwmac-sun8i.txt41 - mdio bus node: should be named mdio with compatible "snps,dwmac-mdio"
95 compatible = "snps,dwmac-mdio";
144 compatible = "snps,dwmac-mdio";
193 compatible = "snps,dwmac-mdio";
Dstmmac.txt4 - compatible: Should be "snps,dwmac-<ip_version>", "snps,dwmac" or
76 - mdio: with compatible = "snps,dwmac-mdio", create and register mdio bus.
172 compatible = "snps,dwmac-mdio";
/Linux-v4.19/Documentation/devicetree/bindings/reset/
Dnxp,lpc1850-rgu.txt75 compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
/Linux-v4.19/arch/arm/boot/dts/
Dmeson8m2.dtsi18 compatible = "amlogic,meson8m2-dwmac", "snps,dwmac";
Dartpec6-devboard.dts62 compatible = "snps,dwmac-mdio";
Dsocfpga_arria10.dtsi417 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
437 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
457 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
Drk3228-evb.dts45 compatible = "snps,dwmac-mdio";
/Linux-v4.19/arch/arm64/boot/dts/altera/
Dsocfpga_stratix10.dtsi131 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
144 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
157 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.74a", "snps,dwmac";
/Linux-v4.19/arch/arc/boot/dts/
Dhsdk.dts172 compatible = "snps,dwmac";
189 compatible = "snps,dwmac-mdio";

123