# SPDX-License-Identifier: GPL-2.0-only
config FSL_DPAA2_ETH
	tristate "Freescale DPAA2 Ethernet"
	depends on FSL_MC_BUS && FSL_MC_DPIO
	select PHYLINK
	select PCS_LYNX
	select FSL_XGMAC_MDIO
	select NET_DEVLINK
	help
	  This is the DPAA2 Ethernet driver supporting Freescale SoCs
	  with DPAA2 (DataPath Acceleration Architecture v2).
	  The driver manages network objects discovered on the Freescale
	  MC bus.

config FSL_DPAA2_MAC
	tristate "Freescale DPAA2 MAC driver"
	depends on FSL_MC_BUS
	select FSL_XGMAC_MDIO
	select PHYLINK
	select PCS_LYNX
	help
	  This is the DPAA2 MAC independent driver which aims to support dpmac
	  fsl_mc devices which are not connected to other objects found in the
	  root dprc.

config FSL_DPAA2_MAC_NETDEVS
	bool "Expose net interfaces for MAC devices"
	default n
	depends on FSL_DPAA2_MAC
	help
	  Exposes macX net interfaces for MAC devices which are not connected to
	  a host managed DPNI. This allows direct control over those MACs and
	  their corresponding PHYs.
	  Leave disabled if unsure.

if FSL_DPAA2_ETH
config FSL_DPAA2_ETH_DCB
	bool "Data Center Bridging (DCB) Support"
	default n
	depends on DCB
	help
	  Enable Priority-Based Flow Control (PFC) support for DPAA2 Ethernet
	  devices.

config FSL_DPAA2_ETH_CEETM
	depends on NET_SCHED
	bool "DPAA2 Ethernet CEETM QoS"
	default n
	help
	  Enable QoS offloading support through the CEETM hardware block.
endif

config FSL_DPAA2_PTP_CLOCK
	tristate "Freescale DPAA2 PTP Clock"
	depends on FSL_DPAA2_ETH && PTP_1588_CLOCK_QORIQ
	default y
	help
	  This driver adds support for using the DPAA2 1588 timer module
	  as a PTP clock.

config FSL_DPAA2_SWITCH
	tristate "Freescale DPAA2 Ethernet Switch"
	depends on BRIDGE || BRIDGE=n
	depends on NET_SWITCHDEV
	help
	  Driver for Freescale DPAA2 Ethernet Switch. This driver manages
	  switch objects discovered on the Freeescale MC bus.
