xref: /openbmc/linux/drivers/net/ethernet/cadence/Kconfig (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
29f2f381fSJeff Kirsher#
3302a7cadSPalmer Dabbelt# Cadence device configuration
49f2f381fSJeff Kirsher#
59f2f381fSJeff Kirsher
60df5f81cSGeert Uytterhoevenconfig NET_VENDOR_CADENCE
7f75ba50bSJamie Iles	bool "Cadence devices"
828811a8cSMichal Simek	depends on HAS_IOMEM
9eccab1ecSJean-Christophe PLAGNIOL-VILLARD	default y
10a7f7f624SMasahiro Yamada	help
119f2f381fSJeff Kirsher	  If you have a network (Ethernet) card belonging to this class, say Y.
129f2f381fSJeff Kirsher
139f2f381fSJeff Kirsher	  If unsure, say Y.
149f2f381fSJeff Kirsher
159f2f381fSJeff Kirsher	  Note that the answer to this question doesn't directly affect the
16302a7cadSPalmer Dabbelt	  kernel: saying N will just cause the configurator to skip all the
17302a7cadSPalmer Dabbelt	  remaining Cadence network card questions. If you say Y, you will be
189f2f381fSJeff Kirsher	  asked for your specific card in the following questions.
199f2f381fSJeff Kirsher
200df5f81cSGeert Uytterhoevenif NET_VENDOR_CADENCE
219f2f381fSJeff Kirsher
229f2f381fSJeff Kirsherconfig MACB
23f75ba50bSJamie Iles	tristate "Cadence MACB/GEM support"
24c536a9aaSPalmer Dabbelt	depends on HAS_DMA && COMMON_CLK
25*e5f31552SArnd Bergmann	depends on PTP_1588_CLOCK_OPTIONAL
267897b071SAntoine Tenart	select PHYLINK
270b32e91fSArnd Bergmann	select CRC32
28a7f7f624SMasahiro Yamada	help
29f75ba50bSJamie Iles	  The Cadence MACB ethernet interface is found on many Atmel AT32 and
30f75ba50bSJamie Iles	  AT91 parts.  This driver also supports the Cadence GEM (Gigabit
310f6538c2SJames Byrne	  Ethernet MAC found in some ARM SoC devices).  Say Y to include
320f6538c2SJames Byrne	  support for the MACB/GEM chip.
339f2f381fSJeff Kirsher
349f2f381fSJeff Kirsher	  To compile this driver as a module, choose M here: the module
357b429614SRafal Ozieblo	  will be macb.
367b429614SRafal Ozieblo
377b429614SRafal Oziebloconfig MACB_USE_HWSTAMP
387b429614SRafal Ozieblo	bool "Use IEEE 1588 hwstamp"
397b429614SRafal Ozieblo	depends on MACB
40b6d49cabSClay McClure	depends on PTP_1588_CLOCK
417b429614SRafal Ozieblo	default y
42a7f7f624SMasahiro Yamada	help
437b429614SRafal Ozieblo	  Enable IEEE 1588 Precision Time Protocol (PTP) support for MACB.
449f2f381fSJeff Kirsher
4583a77e9eSBartosz Foltaconfig MACB_PCI
4683a77e9eSBartosz Folta	tristate "Cadence PCI MACB/GEM support"
47c536a9aaSPalmer Dabbelt	depends on MACB && PCI
48a7f7f624SMasahiro Yamada	help
4983a77e9eSBartosz Folta	  This is PCI wrapper for MACB driver.
5083a77e9eSBartosz Folta
5183a77e9eSBartosz Folta	  To compile this driver as a module, choose M here: the module
5283a77e9eSBartosz Folta	  will be called macb_pci.
5383a77e9eSBartosz Folta
540df5f81cSGeert Uytterhoevenendif # NET_VENDOR_CADENCE
55