drivers: ethernet: Add ETH_DSA_SUPPORT

Make DSA dependent on ETH_DSA_SUPPORT which is selected by driver
kconfigs, rather than having a list of dependencies.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-04-09 16:10:59 -05:00 committed by Alberto Escolar
parent 2c4e75587f
commit 210df56f37
4 changed files with 10 additions and 1 deletions

View file

@ -4,9 +4,14 @@
# Lukasz Majewski <lukma@denx.de>
# SPDX-License-Identifier: Apache-2.0
config ETH_DSA_SUPPORT
bool
help
Set by an ethernet driver that supports DSA.
menuconfig NET_DSA
bool "Distributed Switch Architecture support"
depends on ETH_MCUX || ETH_SAM_GMAC || ETH_STM32_HAL || ETH_NXP_ENET
depends on ETH_DSA_SUPPORT
help
Enable Distributed Switch Architecture support. For now it
only supports Kinetics and STM32 ENET drivers.

View file

@ -11,6 +11,7 @@ menuconfig ETH_SAM_GMAC
DT_HAS_ATMEL_SAM0_GMAC_ENABLED
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
select MDIO
select ETH_DSA_SUPPORT
help
Enable Atmel SAM MCU Family Ethernet driver.

View file

@ -11,6 +11,7 @@ menuconfig ETH_STM32_HAL
select USE_STM32_HAL_ETH
select NOCACHE_MEMORY if SOC_SERIES_STM32H7X && CPU_CORTEX_M7
select HWINFO
select ETH_DSA_SUPPORT
imply CRC
help
Enable STM32 HAL based Ethernet driver. It is available for

View file

@ -18,6 +18,7 @@ config ETH_NXP_ENET
select ARM_MPU if CPU_CORTEX_M7
select MDIO if DT_HAS_NXP_ENET_MDIO_ENABLED
select NET_POWER_MANAGEMENT if (PM_DEVICE && SOC_FAMILY_KINETIS)
select ETH_DSA_SUPPORT
help
Enable NXP ENET Ethernet driver.
@ -26,6 +27,7 @@ config ETH_MCUX
select NOCACHE_MEMORY if HAS_MCUX_CACHE && CPU_HAS_DCACHE
select ARM_MPU if CPU_CORTEX_M7
select NET_POWER_MANAGEMENT if PM_DEVICE
select ETH_DSA_SUPPORT
select DEPRECATED
help
Enable deprecated legacy MCUX Ethernet driver.