blob: 8d012fb1374111fcc27d61cd65447e95c0c44aaf [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
19 default y if TARGET_MT7988
20
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 || \
28 TARGET_MT7986
29
30config MTK_ETH_SWITCH_MT7988
31 bool "Support for MediaTek MT7988 built-in ethernet switch"
32 depends on TARGET_MT7988
33 default y
34
35endif # MEDIATEK_ETH