Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: GPL-2.0-only
config CONFIG_STMMAC_ETH
	tristate "STMicroelectronics Multi-Gigabit Ethernet driver"
	depends on CONFIG_HAS_IOMEM && CONFIG_HAS_DMA
	select CONFIG_MII
	select CONFIG_PAGE_POOL
	select CONFIG_PHYLINK
	select CONFIG_CRC32
	imply CONFIG_PTP_1588_CLOCK
	select CONFIG_RESET_CONTROLLER
	---help---
	  This is the driver for the Ethernet IPs built around a
	  Synopsys IP Core.

if CONFIG_STMMAC_ETH

config CONFIG_STMMAC_SELFTESTS
	bool "Support for STMMAC Selftests"
	depends on CONFIG_INET
	depends on CONFIG_STMMAC_ETH
	default n
	---help---
	  This adds support for STMMAC Selftests using ethtool. Enable this
	  feature if you are facing problems with your HW and submit the test
	  results to the netdev Mailing List.

config CONFIG_STMMAC_PLATFORM
	tristate "STMMAC Platform bus support"
	depends on CONFIG_STMMAC_ETH
	select CONFIG_MFD_SYSCON
	default y
	---help---
	  This selects the platform specific bus support for the stmmac driver.
	  This is the driver used on several SoCs:
	  STi, Allwinner, Amlogic Meson, Altera SOCFPGA.

	  If you have a controller with this interface, say Y or CONFIG_M here.

	  If unsure, say N.

if CONFIG_STMMAC_PLATFORM

config CONFIG_DWMAC_DWC_QOS_ETH
	tristate "Support for snps,dwc-qos-ethernet.txt DT binding."
	select CONFIG_CRC32
	select CONFIG_MII
	depends on CONFIG_OF && CONFIG_HAS_DMA
	help
	  Support for chips using the snps,dwc-qos-ethernet.txt DT binding.

config CONFIG_DWMAC_GENERIC
	tristate "Generic driver for DWMAC"
	default CONFIG_STMMAC_PLATFORM
	---help---
	  Generic DWMAC driver for platforms that don't require any
	  platform specific code to function or is using platform
	  data for setup.

config CONFIG_DWMAC_ANARION
	tristate "Adaptrum Anarion GMAC support"
	default CONFIG_ARC
	depends on CONFIG_OF && (CONFIG_ARC || CONFIG_COMPILE_TEST)
	help
	  Support for Adaptrum Anarion GMAC Ethernet controller.

	  This selects the Anarion SoC glue layer support for the stmmac driver.

config CONFIG_DWMAC_IPQ806X
	tristate "QCA IPQ806x DWMAC support"
	default CONFIG_ARCH_QCOM
	depends on CONFIG_OF && (CONFIG_ARCH_QCOM || CONFIG_COMPILE_TEST)
	select CONFIG_MFD_SYSCON
	help
	  Support for QCA IPQ806X DWMAC Ethernet.

	  This selects the IPQ806x SoC glue layer support for the stmmac
	  device driver. This driver does not use any of the hardware
	  acceleration features available on this SoC. Network devices
	  will behave like standard non-accelerated ethernet interfaces.

config CONFIG_DWMAC_LPC18XX
	tristate "NXP LPC18xx/43xx DWMAC support"
	default CONFIG_ARCH_LPC18XX
	depends on CONFIG_OF && (CONFIG_ARCH_LPC18XX || CONFIG_COMPILE_TEST)
	select CONFIG_MFD_SYSCON
	---help---
	  Support for NXP LPC18xx/43xx DWMAC Ethernet.

config CONFIG_DWMAC_MEDIATEK
	tristate "MediaTek MT27xx GMAC support"
	depends on CONFIG_OF && (CONFIG_ARCH_MEDIATEK || CONFIG_COMPILE_TEST)
	help
	  Support for MediaTek GMAC Ethernet controller.

	  This selects the MT2712 SoC support for the stmmac driver.

config CONFIG_DWMAC_MESON
	tristate "Amlogic Meson dwmac support"
	default CONFIG_ARCH_MESON
	depends on CONFIG_OF && CONFIG_COMMON_CLK && (CONFIG_ARCH_MESON || CONFIG_COMPILE_TEST)
	help
	  Support for Ethernet controller on Amlogic Meson SoCs.

	  This selects the Amlogic Meson SoC glue layer support for
	  the stmmac device driver. This driver is used for Meson6,
	  Meson8, Meson8b and GXBB SoCs.

config CONFIG_DWMAC_OXNAS
	tristate "Oxford Semiconductor OXNAS dwmac support"
	default CONFIG_ARCH_OXNAS
	depends on CONFIG_OF && CONFIG_COMMON_CLK && (CONFIG_ARCH_OXNAS || CONFIG_COMPILE_TEST)
	select CONFIG_MFD_SYSCON
	help
	  Support for Ethernet controller on Oxford Semiconductor OXNAS SoCs.

	  This selects the Oxford Semiconductor OXNASSoC glue layer support for
	  the stmmac device driver. This driver is used for OX820.

config CONFIG_DWMAC_QCOM_ETHQOS
	tristate "Qualcomm ETHQOS support"
	default CONFIG_ARCH_QCOM
	depends on CONFIG_OF && (CONFIG_ARCH_QCOM || CONFIG_COMPILE_TEST)
	help
	  Support for the Qualcomm ETHQOS core.

	  This selects the Qualcomm ETHQOS glue layer support for the
	  stmmac device driver.

config CONFIG_DWMAC_ROCKCHIP
	tristate "Rockchip dwmac support"
	default CONFIG_ARCH_ROCKCHIP
	depends on CONFIG_OF && (CONFIG_ARCH_ROCKCHIP || CONFIG_COMPILE_TEST)
	select CONFIG_MFD_SYSCON
	help
	  Support for Ethernet controller on Rockchip RK3288 SoC.

	  This selects the Rockchip RK3288 SoC glue layer support for
	  the stmmac device driver.

config CONFIG_DWMAC_SOCFPGA
	tristate "SOCFPGA dwmac support"
	default (CONFIG_ARCH_SOCFPGA || CONFIG_ARCH_STRATIX10)
	depends on CONFIG_OF && (CONFIG_ARCH_SOCFPGA || CONFIG_ARCH_STRATIX10 || CONFIG_COMPILE_TEST)
	select CONFIG_MFD_SYSCON
	help
	  Support for ethernet controller on Altera SOCFPGA

	  This selects the Altera SOCFPGA SoC glue layer support
	  for the stmmac device driver. This driver is used for
	  arria5 and cyclone5 CONFIG_FPGA SoCs.

config CONFIG_DWMAC_STI
	tristate "STi GMAC support"
	default CONFIG_ARCH_STI
	depends on CONFIG_OF && (CONFIG_ARCH_STI || CONFIG_COMPILE_TEST)
	select CONFIG_MFD_SYSCON
	---help---
	  Support for ethernet controller on STi SOCs.

	  This selects STi SoC glue layer support for the stmmac
	  device driver. This driver is used on for the STi series
	  SOCs GMAC ethernet controller.

config CONFIG_DWMAC_STM32
	tristate "STM32 DWMAC support"
	default CONFIG_ARCH_STM32
	depends on CONFIG_OF && CONFIG_HAS_IOMEM && (CONFIG_ARCH_STM32 || CONFIG_COMPILE_TEST)
	select CONFIG_MFD_SYSCON
	---help---
	  Support for ethernet controller on STM32 SOCs.

	  This selects STM32 SoC glue layer support for the stmmac
	  device driver. This driver is used on for the STM32 series
	  SOCs GMAC ethernet controller.

config CONFIG_DWMAC_SUNXI
	tristate "Allwinner GMAC support"
	default CONFIG_ARCH_SUNXI
	depends on CONFIG_OF && (CONFIG_ARCH_SUNXI || CONFIG_COMPILE_TEST)
	---help---
	  Support for Allwinner A20/A31 GMAC ethernet controllers.

	  This selects Allwinner SoC glue layer support for the
	  stmmac device driver. This driver is used for A20/A31
	  GMAC ethernet controller.

config CONFIG_DWMAC_SUN8I
	tristate "Allwinner sun8i GMAC support"
	default CONFIG_ARCH_SUNXI
	depends on CONFIG_OF && (CONFIG_ARCH_SUNXI || CONFIG_COMPILE_TEST)
	select CONFIG_MDIO_BUS_MUX
	---help---
	  Support for Allwinner H3 A83T A64 EMAC ethernet controllers.

	  This selects Allwinner SoC glue layer support for the
	  stmmac device driver. This driver is used for H3/A83T/A64
	  EMAC ethernet controller.
endif

config CONFIG_STMMAC_PCI
	tristate "STMMAC PCI bus support"
	depends on CONFIG_STMMAC_ETH && CONFIG_PCI
	depends on CONFIG_COMMON_CLK
	---help---
	  This selects the platform specific bus support for the stmmac driver.
	  This driver was tested on XLINX XC2V3000 FF1152AMT0221
	  D1215994A VIRTEX CONFIG_FPGA board and SNPS QoS IPK Prototyping Kit.

	  If you have a controller with this interface, say Y or CONFIG_M here.

	  If unsure, say N.
endif