Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/phy/mediatek/
Dphy-mtk-xfi-tphy.c93 static void mtk_xfi_tphy_setup(struct mtk_xfi_tphy *xfi_tphy, in mtk_xfi_tphy_setup() argument
107 da_war = xfi_tphy->da_war && (interface == PHY_INTERFACE_MODE_10GBASER); in mtk_xfi_tphy_setup()
115 dev_dbg(xfi_tphy->dev, "setting up for mode %s\n", phy_modes(interface)); in mtk_xfi_tphy_setup()
118 mtk_phy_update_bits(xfi_tphy->base + 0x9024, 0x100000, is_10g ? 0x0 : 0x100000); in mtk_xfi_tphy_setup()
119 mtk_phy_update_bits(xfi_tphy->base + 0x2020, 0x202000, is_5g ? 0x202000 : 0x0); in mtk_xfi_tphy_setup()
120 mtk_phy_update_bits(xfi_tphy->base + 0x2030, 0x500, is_1g ? 0x0 : 0x500); in mtk_xfi_tphy_setup()
121 mtk_phy_update_bits(xfi_tphy->base + 0x2034, 0xa00, is_1g ? 0x0 : 0xa00); in mtk_xfi_tphy_setup()
122 mtk_phy_update_bits(xfi_tphy->base + 0x2040, 0x340000, is_1g ? 0x200000 : 0x140000); in mtk_xfi_tphy_setup()
125 mtk_phy_update_bits(xfi_tphy->base + 0x50f0, 0xc10, is_1g ? 0x410 : is_5g ? 0x800 : 0x400); in mtk_xfi_tphy_setup()
126 mtk_phy_update_bits(xfi_tphy->base + 0x50e0, 0x4000, is_5g ? 0x0 : 0x4000); in mtk_xfi_tphy_setup()
[all …]