]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: Tighten some network driver dependencies
authorTom Rini <trini@konsulko.com>
Fri, 18 Jul 2025 01:15:40 +0000 (19:15 -0600)
committerJerome Forissier <jerome.forissier@linaro.org>
Fri, 1 Aug 2025 07:30:47 +0000 (09:30 +0200)
A large number of network drivers cannot build without access to some
platform specific header files. Express those requirements in Kconfig as
well. This covers the QUICC engine drivers as that is networking
driver infrastructure.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/net/Kconfig
drivers/net/pfe_eth/Kconfig
drivers/net/qe/Kconfig
drivers/net/ti/Kconfig
drivers/qe/Kconfig

index d942fa4e202d61247d512b987d53ddf98017abdc..4fef3fb86a23dfdf01406b9917244894fb1ebfb0 100644 (file)
@@ -197,6 +197,7 @@ config CORTINA_NI_ENET
 
 config CALXEDA_XGMAC
        bool "Calxeda XGMAC support"
+       depends on ARCH_HIGHBANK
        help
          This driver supports the XGMAC in Calxeda Highbank and Midway
          machines.
@@ -246,14 +247,14 @@ config DWC_ETH_QOS
 
 config DWC_ETH_QOS_ADI
        bool "Synopsys DWC Ethernet QOS device support for ADI SC59x-64 parts"
-       depends on DWC_ETH_QOS
+       depends on DWC_ETH_QOS && ARCH_SC5XX
        help
                The Synopsis Designware Ethernet QoS IP block with the specific
                configuration used in the ADI ADSP-SC59X 64 bit SoCs
 
 config DWC_ETH_QOS_IMX
        bool "Synopsys DWC Ethernet QOS device support for IMX"
-       depends on DWC_ETH_QOS
+       depends on DWC_ETH_QOS && MACH_IMX
        help
          The Synopsys Designware Ethernet QOS IP block with the specific
          configuration used in IMX soc.
@@ -267,7 +268,7 @@ config DWC_ETH_QOS_INTEL
 
 config DWC_ETH_QOS_ROCKCHIP
        bool "Synopsys DWC Ethernet QOS device support for Rockchip SoCs"
-       depends on DWC_ETH_QOS
+       depends on DWC_ETH_QOS && ARCH_ROCKCHIP
        select DM_ETH_PHY
        help
          The Synopsys Designware Ethernet QOS IP block with specific
@@ -275,7 +276,7 @@ config DWC_ETH_QOS_ROCKCHIP
 
 config DWC_ETH_QOS_STM32
        bool "Synopsys DWC Ethernet QOS device support for STM32"
-       depends on DWC_ETH_QOS
+       depends on DWC_ETH_QOS && ARCH_STM32MP
        select DM_ETH_PHY
        default y if ARCH_STM32MP
        help
@@ -327,7 +328,7 @@ config E1000_SPI_GENERIC
 
 config E1000_SPI
        bool "Enable SPI bus utility code"
-       depends on E1000
+       depends on E1000 && !E1000_NO_NVM
        help
          Utility code for direct access to the SPI bus on Intel 8257x.
          This does not do anything useful unless you set at least one
@@ -343,6 +344,7 @@ config CMD_E1000
 
 config EEPRO100
        bool "Intel PRO/100 82557/82559/82559ER Fast Ethernet support"
+       depends on !64BIT
        help
          This driver supports Intel(R) PRO/100 82557/82559/82559ER fast
          ethernet family of adapters.
@@ -406,7 +408,7 @@ config ETH_DESIGNWARE_SOCFPGA
 
 config ETH_DESIGNWARE_S700
        bool "Actins S700 glue driver for Synopsys Designware Ethernet MAC"
-       depends on ETH_DESIGNWARE
+       depends on ETH_DESIGNWARE && ARCH_OWL
        help
          This provides glue layer to use Synopsys Designware Ethernet MAC
          present on Actions S700 SoC.
@@ -448,7 +450,7 @@ config FEC_MXC
 
 config FMAN_ENET
        bool "Freescale FMan ethernet support"
-       depends on ARM || PPC
+       depends on FSL_LSCH2 || PPC
        select SYS_FMAN_V3 if ARCH_B4420 || ARCH_B4860 || ARCH_LS1043A || \
                ARCH_LS1046A || ARCH_T1024 || ARCH_T1040 || ARCH_T1042 || \
                ARCH_T2080 || ARCH_T4240
@@ -520,6 +522,7 @@ config SYS_DISCOVER_PHY
 
 config MCFFEC
        bool "ColdFire Ethernet Support"
+       depends on M68K
        select PHYLIB
        select SYS_DISCOVER_PHY
        help
@@ -583,6 +586,7 @@ config MVPP2
 
 config MACB
        bool "Cadence MACB/GEM Ethernet Interface"
+       depends on ARM || RISCV
        select PHYLIB
        help
          The Cadence MACB ethernet interface is found on many Atmel
@@ -619,6 +623,7 @@ config MT7628_ETH
 
 config NET_NPCM750
        bool "Nuvoton NPCM750 Ethernet MAC"
+       depends on ARCH_NPCM
        help
          support NPCM750 EMAC
 
@@ -693,6 +698,7 @@ source "drivers/net/qe/Kconfig"
 
 config RTL8139
        bool "Realtek 8139 series Ethernet controller driver"
+       depends on !64BIT
        help
          This driver supports Realtek 8139 series fast ethernet family of
          PCI chipsets/adapters.
@@ -746,6 +752,7 @@ config SUN7I_GMAC_FORCE_TXERR
 
 config SUN4I_EMAC
        bool "Allwinner Sun4i Ethernet MAC support"
+       depends on ARCH_SUNXI
        select PHYLIB
        help
          This driver supports the Allwinner based SUN4I Ethernet MAC.
@@ -761,6 +768,7 @@ config SUN8I_EMAC
 
 config SH_ETHER
        bool "Renesas SH Ethernet MAC"
+       depends on ARCH_RENESAS
        select PHYLIB
        select PHY_ETHERNET_ID
        help
@@ -770,6 +778,7 @@ source "drivers/net/ti/Kconfig"
 
 config TULIP
        bool "DEC Tulip DC2114x Ethernet support"
+       depends on !64BIT
        help
          This driver supports DEC DC2114x Fast ethernet chips.
 
@@ -823,6 +832,7 @@ config XILINX_AXIMRMAC
 
 config VSC7385_ENET
        bool "Vitesse 7385 Switch Firmware Upload driver"
+       depends on !COMPILE_TEST && PPC
 
 config XILINX_EMACLITE
        select PHYLIB
@@ -834,6 +844,7 @@ config XILINX_EMACLITE
 config ZYNQ_GEM
        select PHYLIB
        bool "Xilinx Ethernet GEM"
+       depends on ARCH_VERSAL || ARCH_VERSAL_NET || ARCH_VERSAL2 || ARCH_ZYNQ || ARCH_ZYNQMP
        help
          This MAC is present in Xilinx Zynq and ZynqMP SoCs.
 
@@ -847,7 +858,7 @@ config PIC32_ETH
 
 config GMAC_ROCKCHIP
        bool "Rockchip Synopsys Designware Ethernet MAC"
-       depends on ETH_DESIGNWARE
+       depends on ETH_DESIGNWARE && ARCH_ROCKCHIP
        help
          This driver provides Rockchip SoCs network support based on the
          Synopsys Designware driver.
@@ -974,6 +985,7 @@ config SYS_FSL_QMAN_V3
 config TSEC_ENET
        select PHYLIB
        bool "Enable Three-Speed Ethernet Controller"
+       depends on ARCH_LS1021A || PPC
        help
          This driver implements support for the (Enhanced) Three-Speed
          Ethernet Controller found on Freescale SoCs.
index b2724ee3e84600bf693cb315231f5bd0c1409a42..f5947ab5f17f0ace1a92b6173ebf97bdf89defe6 100644 (file)
@@ -1,5 +1,6 @@
 menuconfig FSL_PFE
        bool "NXP PFE Ethernet driver"
+       depends on ARCH_LS1012A
        help
          This driver provides support for NXP's Packet Forwarding Engine.
 
index e795e913d42d54371facf28c05f8978b052aa37e..34de239031008de9dc846e4c40d0069d62359c5a 100644 (file)
@@ -4,5 +4,6 @@
 
 config QE_UEC
        bool "NXP QE UEC Ethernet controller"
+       depends on PPC
        help
          This driver supports the NXP QE UEC ethernet controller
index ddfa95a0b7e9757700405841239e0ff2e0c317d3..52267339de08a9f3f825ffd2b3f86b39f19c02f1 100644 (file)
@@ -4,6 +4,7 @@
 
 config DRIVER_TI_CPSW
        bool "TI Common Platform Ethernet Switch"
+       depends on ARCH_OMAP2PLUS
        select PHYLIB
        help
          This driver supports the TI three port switch gigabit ethernet
@@ -11,6 +12,7 @@ config DRIVER_TI_CPSW
 
 config DRIVER_TI_EMAC
        bool "TI Davinci EMAC"
+       depends on ARCH_DAVINCI || ARCH_OMAP2PLUS
        help
           Support for davinci emac
 
@@ -22,6 +24,7 @@ config DRIVER_TI_EMAC_USE_RMII
 
 config DRIVER_TI_KEYSTONE_NET
        bool "TI Keystone 2 Ethernet"
+       depends on ARCH_KEYSTONE
        help
           This driver supports the TI Keystone 2 Ethernet subsystem
 
index 89a75c175b00275a98d83ffee0123cfcd7dce3f9..22ed80bfc66eeeace2ca3dfab9633b37c3dc5a3d 100644 (file)
@@ -11,6 +11,7 @@ config QE
 
 config U_QE
        bool "Enable support for U QUICC Engine"
+       depends on PPC || ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A
        default y if (ARCH_LS1021A && !SD_BOOT && !NAND_BOOT && !QSPI_BOOT) \
                || (TARGET_T1024QDS) \
                || (TARGET_T1024RDB) \