Christian Marangi b24268d151 net: mediatek: move MT7531 MMIO MDIO to dedicated driver
In preparation for support of MDIO on AN7581, move the MT7531 MMIO logic
to a dedicated driver and permit usage of the mdio read/write function
to the mtk_eth driver.

This only affect MT7988 that can use MMIO operation to access the Switch
register. The MT7988 code is updated to make use of the external driver.

This permits Airoha driver to make use of DM_MDIO to bind for the MT7531
driver that have the same exact register.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-10-22 11:16:10 +02:00

42 lines
1.0 KiB
Plaintext

config MEDIATEK_ETH
bool "MediaTek Ethernet GMAC Driver"
depends on ARCH_MEDIATEK || ARCH_MTMIPS
select PHYLIB
select DM_GPIO
select DM_RESET
help
This Driver support MediaTek Ethernet GMAC
Say Y to enable support for the MediaTek Ethernet GMAC.
if MEDIATEK_ETH
config MTK_ETH_SGMII
bool
default y if ARCH_MEDIATEK && !TARGET_MT7623
config MTK_ETH_XGMII
bool
default y if TARGET_MT7987 || TARGET_MT7988
config MTK_ETH_SWITCH_MT7530
bool "Support for MediaTek MT7530 ethernet switch"
default y if TARGET_MT7623 || SOC_MT7621
config MTK_ETH_SWITCH_MT7531
bool "Support for MediaTek MT7531 ethernet switch"
default y if TARGET_MT7622 || TARGET_MT7629 || TARGET_MT7981 || \
TARGET_MT7986 || TARGET_MT7987
config MTK_ETH_SWITCH_MT7988
bool "Support for MediaTek MT7988 built-in ethernet switch"
depends on TARGET_MT7988
select MDIO_MT7531_MMIO
default y
config MTK_ETH_SWITCH_AN8855
bool "Support for Airoha AN8855 ethernet switch"
default y if TARGET_MT7981 || TARGET_MT7987
endif # MEDIATEK_ETH