| /OK3568_Linux_fs/kernel/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | dwmac-stm32.c | 102 int (*clk_prepare)(struct stm32_dwmac *dwmac, bool prepare); 103 int (*suspend)(struct stm32_dwmac *dwmac); 104 void (*resume)(struct stm32_dwmac *dwmac); 105 int (*parse_data)(struct stm32_dwmac *dwmac, 112 struct stm32_dwmac *dwmac = plat_dat->bsp_priv; in stm32_dwmac_init() local 115 if (dwmac->ops->set_mode) { in stm32_dwmac_init() 116 ret = dwmac->ops->set_mode(plat_dat); in stm32_dwmac_init() 121 ret = clk_prepare_enable(dwmac->clk_tx); in stm32_dwmac_init() 125 if (!dwmac->dev->power.is_suspended) { in stm32_dwmac_init() 126 ret = clk_prepare_enable(dwmac->clk_rx); in stm32_dwmac_init() [all …]
|
| H A D | dwmac-meson8b.c | 74 int (*set_phy_mode)(struct meson8b_dwmac *dwmac); 96 static void meson8b_dwmac_mask_bits(struct meson8b_dwmac *dwmac, u32 reg, in meson8b_dwmac_mask_bits() argument 101 data = readl(dwmac->regs + reg); in meson8b_dwmac_mask_bits() 105 writel(data, dwmac->regs + reg); in meson8b_dwmac_mask_bits() 108 static struct clk *meson8b_dwmac_register_clk(struct meson8b_dwmac *dwmac, in meson8b_dwmac_register_clk() argument 118 snprintf(clk_name, sizeof(clk_name), "%s#%s", dev_name(dwmac->dev), in meson8b_dwmac_register_clk() 129 return devm_clk_register(dwmac->dev, hw); in meson8b_dwmac_register_clk() 132 static int meson8b_init_rgmii_tx_clk(struct meson8b_dwmac *dwmac) in meson8b_init_rgmii_tx_clk() argument 135 struct device *dev = dwmac->dev; in meson8b_init_rgmii_tx_clk() 156 clk_configs->m250_mux.reg = dwmac->regs + PRG_ETH0; in meson8b_init_rgmii_tx_clk() [all …]
|
| H A D | dwmac-sti.c | 162 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 …]
|
| H A D | dwmac-imx.c | 55 struct imx_priv_data *dwmac = plat_dat->bsp_priv; in imx8mp_set_intf_mode() local 64 val |= (dwmac->rmii_refclk_ext ? 0 : GPR_ENET_QOS_CLK_TX_CLK_SEL); in imx8mp_set_intf_mode() 80 return regmap_update_bits(dwmac->intf_regmap, dwmac->intf_reg_off, in imx8mp_set_intf_mode() 96 struct imx_priv_data *dwmac = priv; in imx_dwmac_init() local 99 plat_dat = dwmac->plat_dat; in imx_dwmac_init() 101 ret = clk_prepare_enable(dwmac->clk_mem); in imx_dwmac_init() 107 ret = clk_prepare_enable(dwmac->clk_tx); in imx_dwmac_init() 113 if (dwmac->ops->set_intf_mode) { in imx_dwmac_init() 114 ret = dwmac->ops->set_intf_mode(plat_dat); in imx_dwmac_init() 122 clk_disable_unprepare(dwmac->clk_tx); in imx_dwmac_init() [all …]
|
| H A D | dwmac-socfpga.c | 60 struct socfpga_dwmac *dwmac = (struct socfpga_dwmac *)priv; in socfpga_dwmac_fix_mac_speed() local 61 void __iomem *splitter_base = dwmac->splitter_base; in socfpga_dwmac_fix_mac_speed() 62 void __iomem *sgmii_adapter_base = dwmac->pcs.sgmii_adapter_base; in socfpga_dwmac_fix_mac_speed() 63 struct device *dev = dwmac->dev; in socfpga_dwmac_fix_mac_speed() 95 tse_pcs_fix_mac_speed(&dwmac->pcs, phy_dev, speed); in socfpga_dwmac_fix_mac_speed() 99 static int socfpga_dwmac_parse_data(struct socfpga_dwmac *dwmac, struct device *dev) in socfpga_dwmac_parse_data() argument 130 dwmac->f2h_ptp_ref_clk = of_property_read_bool(np, "altr,f2h_ptp_ref_clk"); in socfpga_dwmac_parse_data() 141 dwmac->splitter_base = devm_ioremap_resource(dev, &res_splitter); in socfpga_dwmac_parse_data() 142 if (IS_ERR(dwmac->splitter_base)) { in socfpga_dwmac_parse_data() 144 return PTR_ERR(dwmac->splitter_base); in socfpga_dwmac_parse_data() [all …]
|
| H A D | dwmac-intel-plat.c | 33 struct intel_dwmac *dwmac = priv; in kmb_eth_fix_mac_speed() local 37 rate = clk_get_rate(dwmac->tx_clk); in kmb_eth_fix_mac_speed() 53 dev_err(dwmac->dev, "Invalid speed\n"); in kmb_eth_fix_mac_speed() 57 ret = clk_set_rate(dwmac->tx_clk, rate); in kmb_eth_fix_mac_speed() 59 dev_err(dwmac->dev, "Failed to configure tx clock rate\n"); in kmb_eth_fix_mac_speed() 82 struct intel_dwmac *dwmac; in intel_eth_plat_probe() local 97 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); in intel_eth_plat_probe() 98 if (!dwmac) { in intel_eth_plat_probe() 103 dwmac->dev = &pdev->dev; in intel_eth_plat_probe() 104 dwmac->tx_clk = NULL; in intel_eth_plat_probe() [all …]
|
| H A D | Makefile | 20 obj-$(CONFIG_DWMAC_ANARION) += dwmac-anarion.o 21 obj-$(CONFIG_DWMAC_IPQ806X) += dwmac-ipq806x.o 22 obj-$(CONFIG_DWMAC_LPC18XX) += dwmac-lpc18xx.o 23 obj-$(CONFIG_DWMAC_MEDIATEK) += dwmac-mediatek.o 24 obj-$(CONFIG_DWMAC_MESON) += dwmac-meson.o dwmac-meson8b.o 25 obj-$(CONFIG_DWMAC_OXNAS) += dwmac-oxnas.o 26 obj-$(CONFIG_DWMAC_QCOM_ETHQOS) += dwmac-qcom-ethqos.o 27 obj-$(CONFIG_DWMAC_ROCKCHIP) += dwmac-rockchip.o 28 dwmac-rockchip-objs := dwmac-rk.o 29 dwmac-rockchip-$(CONFIG_DWMAC_ROCKCHIP_TOOL) += dwmac-rk-tool.o [all …]
|
| H A D | dwmac-oxnas.c | 59 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 …]
|
| H A D | dwmac-meson.c | 27 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()
|
| H A D | Kconfig | 119 tristate "Amlogic Meson dwmac support" 130 tristate "Oxford Semiconductor OXNAS dwmac support" 151 tristate "Rockchip dwmac support" 162 bool "Rockchip dwmac tool support" 172 tristate "SOCFPGA dwmac support" 243 tristate "Intel dwmac support"
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/ |
| H A D | sti-dwmac.txt | 10 - 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";
|
| H A D | oxnas-dwmac.txt | 3 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";
|
| H A D | nxp,lpc1850-dwmac.txt | 7 - compatible: Should contain "nxp,lpc1850-dwmac" 12 compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
|
| H A D | imx-dwmac.txt | 9 - compatible: Should be "nxp,imx8mp-dwmac-eqos" to select glue layer 10 and "snps,dwmac-5.10a" to select IP version. 34 compatible = "nxp,imx8mp-dwmac-eqos", "snps,dwmac-5.10a";
|
| H A D | socfpga-dwmac.txt | 3 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";
|
| H A D | anarion-gmac.txt | 7 - compatible: Should be "adaptrum,anarion-gmac", "snps,dwmac" 14 compatible = "adaptrum,anarion-gmac", "snps,dwmac";
|
| H A D | ipq806x-dwmac.txt | 3 The device inherits all the properties of the dwmac/stmmac devices 8 - compatible: should be "qcom,ipq806x-gmac" along with "snps,dwmac"
|
| H A D | stmmac.txt | 1 This file has moved to snps,dwmac.yaml.
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/reset/ |
| H A D | nxp,lpc1850-rgu.txt | 75 compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
|
| /OK3568_Linux_fs/external/dpdk/gmac/kernel5.10/ |
| H A D | kernel_dts.diff | 38 compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a"; 52 compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a";
|
| /OK3568_Linux_fs/external/dpdk/gmac/kernel4.19/ |
| H A D | kernel_dts.diff | 38 compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a"; 52 compatible = "rockchip,rk3568-gmac", "snps,dwmac-4.20a";
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | meson8m2.dtsi | 28 compatible = "amlogic,meson8m2-dwmac", "snps,dwmac";
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/altera/ |
| H A D | socfpga_stratix10.dtsi | 141 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";
|
| /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/intel/ |
| H A D | socfpga_agilex.dtsi | 140 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac"; 158 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac"; 176 compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
|
| /OK3568_Linux_fs/u-boot/arch/arm/dts/ |
| H A D | socfpga_arria10.dtsi | 423 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac"; 442 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac"; 461 compatible = "altr,socfpga-stmmac", "snps,dwmac-3.72a", "snps,dwmac";
|