162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Cadence device configuration
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciconfig NET_VENDOR_CADENCE
762306a36Sopenharmony_ci	bool "Cadence devices"
862306a36Sopenharmony_ci	depends on HAS_IOMEM
962306a36Sopenharmony_ci	default y
1062306a36Sopenharmony_ci	help
1162306a36Sopenharmony_ci	  If you have a network (Ethernet) card belonging to this class, say Y.
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci	  If unsure, say Y.
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci	  Note that the answer to this question doesn't directly affect the
1662306a36Sopenharmony_ci	  kernel: saying N will just cause the configurator to skip all the
1762306a36Sopenharmony_ci	  remaining Cadence network card questions. If you say Y, you will be
1862306a36Sopenharmony_ci	  asked for your specific card in the following questions.
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciif NET_VENDOR_CADENCE
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciconfig MACB
2362306a36Sopenharmony_ci	tristate "Cadence MACB/GEM support"
2462306a36Sopenharmony_ci	depends on HAS_DMA && COMMON_CLK
2562306a36Sopenharmony_ci	depends on PTP_1588_CLOCK_OPTIONAL
2662306a36Sopenharmony_ci	select PHYLINK
2762306a36Sopenharmony_ci	select CRC32
2862306a36Sopenharmony_ci	help
2962306a36Sopenharmony_ci	  The Cadence MACB ethernet interface is found on many Atmel AT32 and
3062306a36Sopenharmony_ci	  AT91 parts.  This driver also supports the Cadence GEM (Gigabit
3162306a36Sopenharmony_ci	  Ethernet MAC found in some ARM SoC devices).  Say Y to include
3262306a36Sopenharmony_ci	  support for the MACB/GEM chip.
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
3562306a36Sopenharmony_ci	  will be macb.
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ciconfig MACB_USE_HWSTAMP
3862306a36Sopenharmony_ci	bool "Use IEEE 1588 hwstamp"
3962306a36Sopenharmony_ci	depends on MACB
4062306a36Sopenharmony_ci	depends on PTP_1588_CLOCK
4162306a36Sopenharmony_ci	default y
4262306a36Sopenharmony_ci	help
4362306a36Sopenharmony_ci	  Enable IEEE 1588 Precision Time Protocol (PTP) support for MACB.
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ciconfig MACB_PCI
4662306a36Sopenharmony_ci	tristate "Cadence PCI MACB/GEM support"
4762306a36Sopenharmony_ci	depends on MACB && PCI
4862306a36Sopenharmony_ci	help
4962306a36Sopenharmony_ci	  This is PCI wrapper for MACB driver.
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci	  To compile this driver as a module, choose M here: the module
5262306a36Sopenharmony_ci	  will be called macb_pci.
5362306a36Sopenharmony_ci
5462306a36Sopenharmony_ciendif # NET_VENDOR_CADENCE
55