From: Tom Rini Date: Fri, 18 Jul 2025 01:15:40 +0000 (-0600) Subject: net: Tighten some network driver dependencies X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=982aac5754548bb95c4637359354823143896c4a;p=thirdparty%2Fu-boot.git net: Tighten some network driver dependencies 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 --- diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index d942fa4e202..4fef3fb86a2 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -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. diff --git a/drivers/net/pfe_eth/Kconfig b/drivers/net/pfe_eth/Kconfig index b2724ee3e84..f5947ab5f17 100644 --- a/drivers/net/pfe_eth/Kconfig +++ b/drivers/net/pfe_eth/Kconfig @@ -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. diff --git a/drivers/net/qe/Kconfig b/drivers/net/qe/Kconfig index e795e913d42..34de2390310 100644 --- a/drivers/net/qe/Kconfig +++ b/drivers/net/qe/Kconfig @@ -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 diff --git a/drivers/net/ti/Kconfig b/drivers/net/ti/Kconfig index ddfa95a0b7e..52267339de0 100644 --- a/drivers/net/ti/Kconfig +++ b/drivers/net/ti/Kconfig @@ -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 diff --git a/drivers/qe/Kconfig b/drivers/qe/Kconfig index 89a75c175b0..22ed80bfc66 100644 --- a/drivers/qe/Kconfig +++ b/drivers/qe/Kconfig @@ -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) \