Home
last modified time | relevance | path

Searched refs:intf_val (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-mediatek.c116 u32 intf_val = 0; in mt2712_set_interface() local
121 intf_val |= PHY_INTF_MII; in mt2712_set_interface()
124 intf_val |= (PHY_INTF_RMII | rmii_rxc | rmii_clk_from_mac); in mt2712_set_interface()
130 intf_val |= PHY_INTF_RGMII; in mt2712_set_interface()
137 regmap_write(plat->peri_regmap, PERI_ETH_PHY_INTF_SEL, intf_val); in mt2712_set_interface()
295 u32 intf_val = 0; in mt8195_set_interface() local
300 intf_val |= FIELD_PREP(MT8195_ETH_INTF_SEL, PHY_INTF_MII); in mt8195_set_interface()
303 intf_val |= (rmii_rxc | rmii_clk_from_mac); in mt8195_set_interface()
304 intf_val |= FIELD_PREP(MT8195_ETH_INTF_SEL, PHY_INTF_RMII); in mt8195_set_interface()
310 intf_val |= FIELD_PREP(MT8195_ETH_INTF_SEL, PHY_INTF_RGMII); in mt8195_set_interface()
[all …]
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_star_emac.c1667 unsigned int intf_val, ret, rmii_rxc; in mt8516_set_interface_mode() local
1671 intf_val = MTK_PERICFG_BIT_NIC_CFG_CON_MII; in mt8516_set_interface_mode()
1675 intf_val = MTK_PERICFG_BIT_NIC_CFG_CON_RMII; in mt8516_set_interface_mode()
1693 intf_val); in mt8516_set_interface_mode()
1700 unsigned int intf_val; in mt8365_set_interface_mode() local
1704 intf_val = MTK_PERICFG_BIT_NIC_CFG_CON_MII; in mt8365_set_interface_mode()
1707 intf_val = MTK_PERICFG_BIT_NIC_CFG_CON_RMII; in mt8365_set_interface_mode()
1708 intf_val |= priv->rmii_rxc ? 0 : MTK_PERICFG_BIT_NIC_CFG_CON_CLK_V2; in mt8365_set_interface_mode()
1719 intf_val); in mt8365_set_interface_mode()