Convert CONFIG_SYS_FSL_QMAN_V3 et al to Kconfig
[platform/kernel/u-boot.git] / drivers / net / Kconfig
index a0010a1..53742b2 100644 (file)
@@ -1,6 +1,10 @@
 source "drivers/net/phy/Kconfig"
 source "drivers/net/pfe_eth/Kconfig"
 source "drivers/net/fsl-mc/Kconfig"
 source "drivers/net/phy/Kconfig"
 source "drivers/net/pfe_eth/Kconfig"
 source "drivers/net/fsl-mc/Kconfig"
+source "drivers/net/bnxt/Kconfig"
+
+config ETH
+       def_bool y
 
 config DM_ETH
        bool "Enable Driver Model for Ethernet drivers"
 
 config DM_ETH
        bool "Enable Driver Model for Ethernet drivers"
@@ -187,6 +191,11 @@ config CALXEDA_XGMAC
          This driver supports the XGMAC in Calxeda Highbank and Midway
          machines.
 
          This driver supports the XGMAC in Calxeda Highbank and Midway
          machines.
 
+config DRIVER_DM9000
+       bool "Davicom DM9000 controller driver"
+       help
+         The Davicom DM9000 parallel bus external ethernet interface chip.
+
 config DWC_ETH_QOS
        bool "Synopsys DWC Ethernet QOS device support"
        depends on DM_ETH
 config DWC_ETH_QOS
        bool "Synopsys DWC Ethernet QOS device support"
        depends on DM_ETH
@@ -206,6 +215,7 @@ config DWC_ETH_QOS_IMX
 config DWC_ETH_QOS_STM32
        bool "Synopsys DWC Ethernet QOS device support for STM32"
        depends on DWC_ETH_QOS
 config DWC_ETH_QOS_STM32
        bool "Synopsys DWC Ethernet QOS device support for STM32"
        depends on DWC_ETH_QOS
+       select DM_ETH_PHY
        default y if ARCH_STM32MP
        help
          The Synopsys Designware Ethernet QOS IP block with the specific
        default y if ARCH_STM32MP
        help
          The Synopsys Designware Ethernet QOS IP block with the specific
@@ -221,7 +231,7 @@ config DWC_ETH_QOS_TEGRA186
 
 config E1000
        bool "Intel PRO/1000 Gigabit Ethernet support"
 
 config E1000
        bool "Intel PRO/1000 Gigabit Ethernet support"
-       depends on (DM_ETH && DM_PCI) || !DM_ETH
+       depends on PCI
        help
          This driver supports Intel(R) PRO/1000 gigabit ethernet family of
          adapters.  For more information on how to identify your adapter, go
        help
          This driver supports Intel(R) PRO/1000 gigabit ethernet family of
          adapters.  For more information on how to identify your adapter, go
@@ -229,6 +239,10 @@ config E1000
 
          <http://support.intel.com/support/network/adapter/pro100/21397.htm>
 
 
          <http://support.intel.com/support/network/adapter/pro100/21397.htm>
 
+config E1000_NO_NVM
+       bool "Intel PRO/1000 has no NVMEM / EEPROM"
+       depends on E1000
+
 config E1000_SPI_GENERIC
        bool "Allow access to the Intel 8257x SPI bus"
        depends on E1000
 config E1000_SPI_GENERIC
        bool "Allow access to the Intel 8257x SPI bus"
        depends on E1000
@@ -298,6 +312,7 @@ config ETH_DESIGNWARE_MESON8B
 config ETH_DESIGNWARE_SOCFPGA
        select REGMAP
        select SYSCON
 config ETH_DESIGNWARE_SOCFPGA
        select REGMAP
        select SYSCON
+       select DW_ALTDESCRIPTOR
        bool "Altera SoCFPGA extras for Synopsys Designware Ethernet MAC"
        depends on DM_ETH && ETH_DESIGNWARE
        help
        bool "Altera SoCFPGA extras for Synopsys Designware Ethernet MAC"
        depends on DM_ETH && ETH_DESIGNWARE
        help
@@ -312,6 +327,10 @@ config ETH_DESIGNWARE_S700
          This provides glue layer to use Synopsys Designware Ethernet MAC
          present on Actions S700 SoC.
 
          This provides glue layer to use Synopsys Designware Ethernet MAC
          present on Actions S700 SoC.
 
+config DW_ALTDESCRIPTOR
+       bool "Designware Ethernet MAC uses alternate (enhanced) descriptors"
+       depends on ETH_DESIGNWARE
+
 config ETHOC
        bool "OpenCores 10/100 Mbps Ethernet MAC"
        help
 config ETHOC
        bool "OpenCores 10/100 Mbps Ethernet MAC"
        help
@@ -330,7 +349,7 @@ config FEC_MXC_MDIO_BASE
 
 config FEC_MXC
        bool "FEC Ethernet controller"
 
 config FEC_MXC
        bool "FEC Ethernet controller"
-       depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || VF610
+       depends on MX28 || MX5 || MX6 || MX7 || IMX8 || IMX8M || IMX8ULP || IMX93 || VF610
        help
          This driver supports the 10/100 Fast Ethernet controller for
          NXP i.MX processors.
        help
          This driver supports the 10/100 Fast Ethernet controller for
          NXP i.MX processors.
@@ -338,9 +357,28 @@ config FEC_MXC
 config FMAN_ENET
        bool "Freescale FMan ethernet support"
        depends on ARM || PPC
 config FMAN_ENET
        bool "Freescale FMan ethernet support"
        depends on ARM || PPC
+       select SYS_FMAN_V3 if ARCH_B4420 || ARCH_B4860 || ARCH_LS1043A || \
+               ARCH_LS1046A || ARCH_T1024 || ARCH_T1040 || ARCH_T1042 || \
+               ARCH_T2080 || ARCH_T4240
        help
          This driver support the Freescale FMan Ethernet controller
 
        help
          This driver support the Freescale FMan Ethernet controller
 
+config SYS_FMAN_FW_ADDR
+       hex "FMAN Firmware Address"
+       depends on FMAN_ENET
+       default 0x0
+
+config SYS_QE_FMAN_FW_LENGTH
+       hex "FMAN QE Firmware length"
+       depends on FMAN_ENET || QE || U_QE
+       default 0x10000
+
+config SYS_FMAN_V3
+       bool
+       select FSL_MEMAC
+       help
+         SoC has FMan v3 with mEMAC
+
 config FTMAC100
        bool "Ftmac100 Ethernet Support"
        help
 config FTMAC100
        bool "Ftmac100 Ethernet Support"
        help
@@ -371,19 +409,27 @@ config FTGMAC100
          offers high-priority transmit queue for QoS and CoS
          applications.
 
          offers high-priority transmit queue for QoS and CoS
          applications.
 
+config SYS_DISCOVER_PHY
+       bool
 
 config MCFFEC
        bool "ColdFire Ethernet Support"
        depends on DM_ETH
        select PHYLIB
 
 config MCFFEC
        bool "ColdFire Ethernet Support"
        depends on DM_ETH
        select PHYLIB
+       select SYS_DISCOVER_PHY
        help
          This driver supports the network interface units in the
          ColdFire family.
 
        help
          This driver supports the network interface units in the
          ColdFire family.
 
+config SYS_UNIFY_CACHE
+       depends on MCFFEC
+       bool "Invalidate icache during ethernet operations"
+
 config FSLDMAFEC
         bool "ColdFire DMA Ethernet Support"
        depends on DM_ETH
        select PHYLIB
 config FSLDMAFEC
         bool "ColdFire DMA Ethernet Support"
        depends on DM_ETH
        select PHYLIB
+       select SYS_DISCOVER_PHY
        help
          This driver supports the network interface units in the
          ColdFire family.
        help
          This driver supports the network interface units in the
          ColdFire family.
@@ -402,6 +448,18 @@ config KS8851_MLL_BASEADDR
 endif #DM_ETH
 endif #KS8851_MLL
 
 endif #DM_ETH
 endif #KS8851_MLL
 
+config KSZ9477
+       bool "Microchip KSZ9477 I2C controller driver"
+       depends on DM_DSA && DM_I2C
+       help
+         This driver implements a DSA switch driver for the KSZ9477 family
+         of GbE switches using the I2C interface.
+
+config LPC32XX_ETH
+       bool "LPC32xx Ethernet MAC interface driver"
+       depends on ARCH_LPC32XX
+       default y
+
 config MVGBE
        bool "Marvell Orion5x/Kirkwood network interface support"
        depends on ARCH_KIRKWOOD || ARCH_ORION5X
 config MVGBE
        bool "Marvell Orion5x/Kirkwood network interface support"
        depends on ARCH_KIRKWOOD || ARCH_ORION5X
@@ -414,6 +472,7 @@ config MVNETA
        bool "Marvell Armada XP/385/3700 network interface support"
        depends on ARMADA_XP || ARMADA_38X || ARMADA_3700
        select PHYLIB
        bool "Marvell Armada XP/385/3700 network interface support"
        depends on ARMADA_XP || ARMADA_38X || ARMADA_3700
        select PHYLIB
+       select DM_MDIO
        help
          This driver supports the network interface units in the
          Marvell ARMADA XP, ARMADA 38X and ARMADA 3700 SoCs
        help
          This driver supports the network interface units in the
          Marvell ARMADA XP, ARMADA 38X and ARMADA 3700 SoCs
@@ -430,7 +489,6 @@ config MVPP2
 
 config MACB
        bool "Cadence MACB/GEM Ethernet Interface"
 
 config MACB
        bool "Cadence MACB/GEM Ethernet Interface"
-       depends on DM_ETH
        select PHYLIB
        help
          The Cadence MACB ethernet interface is found on many Atmel
        select PHYLIB
        help
          The Cadence MACB ethernet interface is found on many Atmel
@@ -465,6 +523,18 @@ config MT7628_ETH
          The MediaTek MT7628 ethernet interface is used on MT7628 and
          MT7688 based boards.
 
          The MediaTek MT7628 ethernet interface is used on MT7628 and
          MT7688 based boards.
 
+config NET_NPCM750
+       bool "Nuvoton NPCM750 Ethernet MAC"
+       help
+         support NPCM750 EMAC
+
+config NET_OCTEON
+       bool "MIPS Octeon ethernet support"
+       depends on ARCH_OCTEON
+       help
+         You must select Y to enable network device support for
+         MIPS Octeon SoCs. If unsure, say n
+
 config NET_OCTEONTX
        bool "OcteonTX Ethernet support"
        depends on ARCH_OCTEONTX
 config NET_OCTEONTX
        bool "OcteonTX Ethernet support"
        depends on ARCH_OCTEONTX
@@ -498,7 +568,7 @@ config OCTEONTX2_CGX_INTF
 
 config PCH_GBE
        bool "Intel Platform Controller Hub EG20T GMAC driver"
 
 config PCH_GBE
        bool "Intel Platform Controller Hub EG20T GMAC driver"
-       depends on DM_ETH && DM_PCI
+       depends on DM_ETH
        select PHYLIB
        help
          This MAC is present in Intel Platform Controller Hub EG20T. It
        select PHYLIB
        help
          This MAC is present in Intel Platform Controller Hub EG20T. It
@@ -515,6 +585,11 @@ config MII
        help
          Enable support of the Media-Independent Interface (MII)
 
        help
          Enable support of the Media-Independent Interface (MII)
 
+config RMII
+       bool "Enable RMII"
+       help
+         Enable support of the Reduced Media-Independent Interface (MII)
+
 config PCNET
        bool "AMD PCnet series Ethernet controller driver"
        help
 config PCNET
        bool "AMD PCnet series Ethernet controller driver"
        help
@@ -535,6 +610,22 @@ config RTL8169
          This driver supports Realtek 8169 series gigabit ethernet family of
          PCI/PCIe chipsets/adapters.
 
          This driver supports Realtek 8169 series gigabit ethernet family of
          PCI/PCIe chipsets/adapters.
 
+config SJA1105
+       bool "NXP SJA1105 Ethernet switch family driver"
+       depends on DM_DSA && DM_SPI
+       select BITREVERSE
+       help
+         This is the driver for the NXP SJA1105 automotive Ethernet switch
+         family. These are 5-port devices and are managed over an SPI
+         interface. Probing is handled based on OF bindings. The driver
+         supports the following revisions:
+           - SJA1105E (Gen. 1, No TT-Ethernet)
+           - SJA1105T (Gen. 1, TT-Ethernet)
+           - SJA1105P (Gen. 2, No SGMII, No TT-Ethernet)
+           - SJA1105Q (Gen. 2, No SGMII, TT-Ethernet)
+           - SJA1105R (Gen. 2, SGMII, No TT-Ethernet)
+           - SJA1105S (Gen. 2, SGMII, TT-Ethernet)
+
 config SMC911X
        bool "SMSC LAN911x and LAN921x controller driver"
 
 config SMC911X
        bool "SMSC LAN911x and LAN921x controller driver"
 
@@ -550,7 +641,6 @@ endif #DM_ETH
 
 config SMC911X_32_BIT
        bool "Enable SMC911X 32-bit interface"
 
 config SMC911X_32_BIT
        bool "Enable SMC911X 32-bit interface"
-       default n
        help
          Define this if data bus is 32 bits. If your processor use a
          narrower 16 bit bus or cannot convert one 32 bit word to two 16 bit
        help
          Define this if data bus is 32 bits. If your processor use a
          narrower 16 bit bus or cannot convert one 32 bit word to two 16 bit
@@ -598,7 +688,6 @@ source "drivers/net/ti/Kconfig"
 
 config TULIP
        bool "DEC Tulip DC2114x Ethernet support"
 
 config TULIP
        bool "DEC Tulip DC2114x Ethernet support"
-       depends on (DM_ETH && DM_PCI) || !DM_ETH
        help
          This driver supports DEC DC2114x Fast ethernet chips.
 
        help
          This driver supports DEC DC2114x Fast ethernet chips.
 
@@ -610,6 +699,15 @@ config XILINX_AXIEMAC
        help
          This MAC is present in Xilinx Microblaze, Zynq and ZynqMP SoCs.
 
        help
          This MAC is present in Xilinx Microblaze, Zynq and ZynqMP SoCs.
 
+config XILINX_AXIMRMAC
+       depends on DM_ETH && ARCH_VERSAL
+       bool "Xilinx AXI MRMAC"
+       help
+         MRMAC is a high performance, low latency, adaptable Ethernet
+         integrated hard IP. This can be configured up to four ports with MAC
+         rates from 10GE to 100GE. This could be present in some of the Xilinx
+         Versal designs.
+
 config XILINX_EMACLITE
        depends on DM_ETH
        select PHYLIB
 config XILINX_EMACLITE
        depends on DM_ETH
        select PHYLIB
@@ -651,7 +749,9 @@ config RENESAS_RAVB
 config MPC8XX_FEC
        bool "Fast Ethernet Controller on MPC8XX"
        depends on MPC8xx
 config MPC8XX_FEC
        bool "Fast Ethernet Controller on MPC8XX"
        depends on MPC8xx
+       depends on DM_ETH
        select MII
        select MII
+       select SYS_DISCOVER_PHY
        help
          This driver implements support for the Fast Ethernet Controller
          on MPC8XX
        help
          This driver implements support for the Fast Ethernet Controller
          on MPC8XX
@@ -696,7 +796,6 @@ config FEC1_PHY
 config PHY_NORXERR
        bool "PHY_NORXERR"
        depends on ETHER_ON_FEC1
 config PHY_NORXERR
        bool "PHY_NORXERR"
        depends on ETHER_ON_FEC1
-       default n
        help
          The PHY does not have a RXERR line (RMII only).
          (so program the FEC to ignore it).
        help
          The PHY does not have a RXERR line (RMII only).
          (so program the FEC to ignore it).
@@ -721,7 +820,6 @@ config FEC2_PHY
 config FEC2_PHY_NORXERR
        bool "PHY_NORXERR"
        depends on ETHER_ON_FEC2
 config FEC2_PHY_NORXERR
        bool "PHY_NORXERR"
        depends on ETHER_ON_FEC2
-       default n
        help
          The PHY does not have a RXERR line (RMII only).
          (so program the FEC to ignore it).
        help
          The PHY does not have a RXERR line (RMII only).
          (so program the FEC to ignore it).
@@ -738,7 +836,6 @@ config SYS_DPAA_QBMAN
                     ARCH_T1042 || \
                     ARCH_T2080 || \
                     ARCH_T4240 || \
                     ARCH_T1042 || \
                     ARCH_T2080 || \
                     ARCH_T4240 || \
-                    ARCH_T4160 || \
                     ARCH_P4080 || \
                     ARCH_P3041 || \
                     ARCH_P5040 || \
                     ARCH_P4080 || \
                     ARCH_P3041 || \
                     ARCH_P5040 || \
@@ -747,6 +844,10 @@ config SYS_DPAA_QBMAN
        help
          QBman fixups to allow deep sleep in DPAA 1 SOCs
 
        help
          QBman fixups to allow deep sleep in DPAA 1 SOCs
 
+config SYS_FSL_QMAN_V3
+       bool # QMAN version 3
+       depends on SYS_DPAA_QBMAN
+
 config TSEC_ENET
        select PHYLIB
        bool "Enable Three-Speed Ethernet Controller"
 config TSEC_ENET
        select PHYLIB
        bool "Enable Three-Speed Ethernet Controller"
@@ -775,7 +876,7 @@ config HIGMACV300_ETH
 
 config FSL_ENETC
        bool "NXP ENETC Ethernet controller"
 
 config FSL_ENETC
        bool "NXP ENETC Ethernet controller"
-       depends on DM_PCI && DM_ETH && DM_MDIO
+       depends on DM_ETH && DM_MDIO
        help
          This driver supports the NXP ENETC Ethernet controller found on some
          of the NXP SoCs.
        help
          This driver supports the NXP ENETC Ethernet controller found on some
          of the NXP SoCs.
@@ -812,6 +913,13 @@ config FSL_LS_MDIO
          This driver supports the MDIO bus found on the Fman 10G Ethernet MACs and
          on the mEMAC (which supports both Clauses 22 and 45).
 
          This driver supports the MDIO bus found on the Fman 10G Ethernet MACs and
          on the mEMAC (which supports both Clauses 22 and 45).
 
+config ASPEED_MDIO
+       bool "Aspeed MDIO interface support"
+       depends on DM_MDIO
+       help
+         This driver supports the MDIO bus of Aspeed AST2600 SOC.  The driver
+         currently supports Clause 22.
+
 config MDIO_MUX_MMIOREG
        bool "MDIO MUX accessed as a MMIO register access"
        depends on DM_MDIO_MUX
 config MDIO_MUX_MMIOREG
        bool "MDIO MUX accessed as a MMIO register access"
        depends on DM_MDIO_MUX