blob: e8cdf4082371232ea638220b51c260bc944b1c3f [file] [log] [blame]
developer29d9d9f2025-01-10 16:41:13 +08001
2config MEDIATEK_ETH
3 bool "MediaTek Ethernet GMAC Driver"
4 select PHYLIB
5 select DM_GPIO
6 select DM_RESET
7 help
8 This Driver support MediaTek Ethernet GMAC
9 Say Y to enable support for the MediaTek Ethernet GMAC.
10
11if MEDIATEK_ETH
12
13config MTK_ETH_SGMII
14 bool
15 default y if ARCH_MEDIATEK && !TARGET_MT7623
16
17config MTK_ETH_XGMII
18 bool
developerd0047a02025-01-10 16:41:20 +080019 default y if TARGET_MT7987 || TARGET_MT7988
developer29d9d9f2025-01-10 16:41:13 +080020
21config MTK_ETH_SWITCH_MT7530
22 bool "Support for MediaTek MT7530 ethernet switch"
23 default y if TARGET_MT7623 || SOC_MT7621
24
25config MTK_ETH_SWITCH_MT7531
26 bool "Support for MediaTek MT7531 ethernet switch"
27 default y if TARGET_MT7622 || TARGET_MT7629 || TARGET_MT7981 || \
developerd0047a02025-01-10 16:41:20 +080028 TARGET_MT7986 || TARGET_MT7987
developer29d9d9f2025-01-10 16:41:13 +080029
30config MTK_ETH_SWITCH_MT7988
31 bool "Support for MediaTek MT7988 built-in ethernet switch"
32 depends on TARGET_MT7988
33 default y
34
developer7efa6382025-01-10 16:41:24 +080035config MTK_ETH_SWITCH_AN8855
36 bool "Support for Airoha AN8855 ethernet switch"
37 default y if TARGET_MT7981 || TARGET_MT7987
38
developer29d9d9f2025-01-10 16:41:13 +080039endif # MEDIATEK_ETH