mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
d1cbfd771c
In order to break the hard dependency between the PTP clock subsystem and ethernet drivers capable of being clock providers, this patch provides simple PTP stub functions to allow linkage of those drivers into the kernel even when the PTP subsystem is configured out. Drivers must be ready to accept NULL from ptp_clock_register() in that case. And to make it possible for PTP to be configured out, the select statement in those driver's Kconfig menu entries is converted to the new "imply" statement. This way the PTP subsystem may have Kconfig dependencies of its own, such as POSIX_TIMERS, without having to make those ethernet drivers unavailable if POSIX timers are cconfigured out. And when support for POSIX timers is selected again then the default config option for PTP clock support will automatically be adjusted accordingly. The pch_gbe driver is a bit special as it relies on extra code in drivers/ptp/ptp_pch.c. Therefore we let the make process descend into drivers/ptp/ even if PTP_1588_CLOCK is unselected. Signed-off-by: Nicolas Pitre <nico@linaro.org> Acked-by: Richard Cochran <richardcochran@gmail.com> Acked-by: Edward Cree <ecree@solarflare.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: John Stultz <john.stultz@linaro.org> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Cc: Paul Bolle <pebolle@tiscali.nl> Cc: linux-kbuild@vger.kernel.org Cc: netdev@vger.kernel.org Cc: Michal Marek <mmarek@suse.com> Link: http://lkml.kernel.org/r/1478841010-28605-4-git-send-email-nicolas.pitre@linaro.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
143 lines
4.0 KiB
Plaintext
143 lines
4.0 KiB
Plaintext
config STMMAC_ETH
|
|
tristate "STMicroelectronics 10/100/1000 Ethernet driver"
|
|
depends on HAS_IOMEM && HAS_DMA
|
|
select MII
|
|
select PHYLIB
|
|
select CRC32
|
|
imply PTP_1588_CLOCK
|
|
select RESET_CONTROLLER
|
|
---help---
|
|
This is the driver for the Ethernet IPs are built around a
|
|
Synopsys IP Core and only tested on the STMicroelectronics
|
|
platforms.
|
|
|
|
if STMMAC_ETH
|
|
|
|
config STMMAC_PLATFORM
|
|
tristate "STMMAC Platform bus support"
|
|
depends on STMMAC_ETH
|
|
select 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 M here.
|
|
|
|
If unsure, say N.
|
|
|
|
if STMMAC_PLATFORM
|
|
|
|
config DWMAC_GENERIC
|
|
tristate "Generic driver for DWMAC"
|
|
default 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 DWMAC_IPQ806X
|
|
tristate "QCA IPQ806x DWMAC support"
|
|
default ARCH_QCOM
|
|
depends on OF && (ARCH_QCOM || COMPILE_TEST)
|
|
select 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 DWMAC_LPC18XX
|
|
tristate "NXP LPC18xx/43xx DWMAC support"
|
|
default ARCH_LPC18XX
|
|
depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
|
|
select MFD_SYSCON
|
|
---help---
|
|
Support for NXP LPC18xx/43xx DWMAC Ethernet.
|
|
|
|
config DWMAC_MESON
|
|
tristate "Amlogic Meson dwmac support"
|
|
default ARCH_MESON
|
|
depends on OF && COMMON_CLK && (ARCH_MESON || 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 DWMAC_ROCKCHIP
|
|
tristate "Rockchip dwmac support"
|
|
default ARCH_ROCKCHIP
|
|
depends on OF && (ARCH_ROCKCHIP || COMPILE_TEST)
|
|
select 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 DWMAC_SOCFPGA
|
|
tristate "SOCFPGA dwmac support"
|
|
default ARCH_SOCFPGA
|
|
depends on OF && (ARCH_SOCFPGA || COMPILE_TEST)
|
|
select 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 FPGA SoCs.
|
|
|
|
config DWMAC_STI
|
|
tristate "STi GMAC support"
|
|
default ARCH_STI
|
|
depends on OF && (ARCH_STI || COMPILE_TEST)
|
|
select 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 DWMAC_STM32
|
|
tristate "STM32 DWMAC support"
|
|
default ARCH_STM32
|
|
depends on OF && HAS_IOMEM
|
|
select 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 DWMAC_SUNXI
|
|
tristate "Allwinner GMAC support"
|
|
default ARCH_SUNXI
|
|
depends on OF && (ARCH_SUNXI || 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.
|
|
endif
|
|
|
|
config STMMAC_PCI
|
|
tristate "STMMAC PCI bus support"
|
|
depends on STMMAC_ETH && PCI
|
|
---help---
|
|
This is to select the Synopsys DWMAC available on PCI devices,
|
|
if you have a controller with this interface, say Y or M here.
|
|
|
|
This PCI support is tested on XLINX XC2V3000 FF1152AMT0221
|
|
D1215994A VIRTEX FPGA board.
|
|
|
|
If unsure, say N.
|
|
endif
|