In this case, the mediatek network drivers cannot build outside of
ARCH_MEDIATEK or ARCH_MTMIPS, and so express this requirement in Kconfig
as well. In the case of DWC_ETH_XGMAC / DWC_ETH_XGMAC_SOCFPGA, the file
controlled by the DWC_ETH_XGMAC option references a socfpga-specific
array defined in the file controlled by DWC_ETH_XGMAC_SOCFPGA. Rework
these options in Kconfig to handle this dependency.
Signed-off-by: Tom Rini <trini@konsulko.com>
machines.
config DWC_ETH_XGMAC
- bool "Synopsys DWC Ethernet XGMAC device support"
+ bool
select PHYLIB
help
This driver supports the Synopsys Designware Ethernet XGMAC (10G
bool "Synopsys DWC Ethernet XGMAC device support for SOCFPGA"
select REGMAP
select SYSCON
- depends on ARCH_SOCFPGA && DWC_ETH_XGMAC
+ select DWC_ETH_XGMAC
+ depends on ARCH_SOCFPGA
default y if TARGET_SOCFPGA_AGILEX5
help
The Synopsys Designware Ethernet XGMAC IP block with specific
config MEDIATEK_ETH
bool "MediaTek Ethernet GMAC Driver"
+ depends on ARCH_MEDIATEK || ARCH_MTMIPS
select PHYLIB
select DM_GPIO
select DM_RESET