162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Freescale device configuration
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciconfig NET_VENDOR_FREESCALE
762306a36Sopenharmony_ci	bool "Freescale devices"
862306a36Sopenharmony_ci	default y
962306a36Sopenharmony_ci	depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || PPC_MPC512x || \
1062306a36Sopenharmony_ci		   M523x || M527x || M5272 || M528x || M520x || M532x || \
1162306a36Sopenharmony_ci		   ARCH_MXC || ARCH_MXS || (PPC_MPC52xx && PPC_BESTCOMM) || \
1262306a36Sopenharmony_ci		   ARCH_LAYERSCAPE || ARCH_S32 || COMPILE_TEST
1362306a36Sopenharmony_ci	help
1462306a36Sopenharmony_ci	  If you have a network (Ethernet) card belonging to this class, say Y.
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci	  Note that the answer to this question doesn't directly affect the
1762306a36Sopenharmony_ci	  kernel: saying N will just cause the configurator to skip all
1862306a36Sopenharmony_ci	  the questions about Freescale devices. If you say Y, you will be
1962306a36Sopenharmony_ci	  asked for your specific card in the following questions.
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciif NET_VENDOR_FREESCALE
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ciconfig FEC
2462306a36Sopenharmony_ci	tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)"
2562306a36Sopenharmony_ci	depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \
2662306a36Sopenharmony_ci		   ARCH_MXC || ARCH_S32 || SOC_IMX28 || COMPILE_TEST)
2762306a36Sopenharmony_ci	default ARCH_MXC || SOC_IMX28 if ARM
2862306a36Sopenharmony_ci	depends on PTP_1588_CLOCK_OPTIONAL
2962306a36Sopenharmony_ci	select CRC32
3062306a36Sopenharmony_ci	select PHYLIB
3162306a36Sopenharmony_ci	select PAGE_POOL
3262306a36Sopenharmony_ci	imply PAGE_POOL_STATS
3362306a36Sopenharmony_ci	imply NET_SELFTESTS
3462306a36Sopenharmony_ci	help
3562306a36Sopenharmony_ci	  Say Y here if you want to use the built-in 10/100 Fast ethernet
3662306a36Sopenharmony_ci	  controller on some Motorola ColdFire and Freescale i.MX/S32 processors.
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciconfig FEC_MPC52xx
3962306a36Sopenharmony_ci	tristate "FEC MPC52xx driver"
4062306a36Sopenharmony_ci	depends on PPC_MPC52xx && PPC_BESTCOMM
4162306a36Sopenharmony_ci	select CRC32
4262306a36Sopenharmony_ci	select PHYLIB
4362306a36Sopenharmony_ci	select PPC_BESTCOMM_FEC
4462306a36Sopenharmony_ci	help
4562306a36Sopenharmony_ci	  This option enables support for the MPC5200's on-chip
4662306a36Sopenharmony_ci	  Fast Ethernet Controller
4762306a36Sopenharmony_ci	  If compiled as module, it will be called fec_mpc52xx.
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciconfig FEC_MPC52xx_MDIO
5062306a36Sopenharmony_ci	bool "FEC MPC52xx MDIO bus driver"
5162306a36Sopenharmony_ci	depends on FEC_MPC52xx
5262306a36Sopenharmony_ci	default y
5362306a36Sopenharmony_ci	help
5462306a36Sopenharmony_ci	  The MPC5200's FEC can connect to the Ethernet either with
5562306a36Sopenharmony_ci	  an external MII PHY chip or 10 Mbps 7-wire interface
5662306a36Sopenharmony_ci	  (Motorola? industry standard).
5762306a36Sopenharmony_ci	  If your board uses an external PHY connected to FEC, enable this.
5862306a36Sopenharmony_ci	  If not sure, enable.
5962306a36Sopenharmony_ci	  If compiled as module, it will be called fec_mpc52xx_phy.
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_cisource "drivers/net/ethernet/freescale/fs_enet/Kconfig"
6262306a36Sopenharmony_cisource "drivers/net/ethernet/freescale/fman/Kconfig"
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ciconfig FSL_PQ_MDIO
6562306a36Sopenharmony_ci	tristate "Freescale PQ MDIO"
6662306a36Sopenharmony_ci	select PHYLIB
6762306a36Sopenharmony_ci	help
6862306a36Sopenharmony_ci	  This driver supports the MDIO bus used by the gianfar and UCC drivers.
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ciconfig FSL_XGMAC_MDIO
7162306a36Sopenharmony_ci	tristate "Freescale XGMAC MDIO"
7262306a36Sopenharmony_ci	select PHYLIB
7362306a36Sopenharmony_ci	depends on OF
7462306a36Sopenharmony_ci	select MDIO_DEVRES
7562306a36Sopenharmony_ci	select OF_MDIO
7662306a36Sopenharmony_ci	help
7762306a36Sopenharmony_ci	  This driver supports the MDIO bus on the Fman 10G Ethernet MACs, and
7862306a36Sopenharmony_ci	  on the FMan mEMAC (which supports both Clauses 22 and 45)
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ciconfig UCC_GETH
8162306a36Sopenharmony_ci	tristate "Freescale QE Gigabit Ethernet"
8262306a36Sopenharmony_ci	depends on QUICC_ENGINE && PPC32
8362306a36Sopenharmony_ci	select FSL_PQ_MDIO
8462306a36Sopenharmony_ci	select PHYLIB
8562306a36Sopenharmony_ci	select FIXED_PHY
8662306a36Sopenharmony_ci	help
8762306a36Sopenharmony_ci	  This driver supports the Gigabit Ethernet mode of the QUICC Engine,
8862306a36Sopenharmony_ci	  which is available on some Freescale SOCs.
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ciconfig UGETH_TX_ON_DEMAND
9162306a36Sopenharmony_ci	bool "Transmit on Demand support"
9262306a36Sopenharmony_ci	depends on UCC_GETH
9362306a36Sopenharmony_ci
9462306a36Sopenharmony_ciconfig GIANFAR
9562306a36Sopenharmony_ci	tristate "Gianfar Ethernet"
9662306a36Sopenharmony_ci	depends on HAS_DMA
9762306a36Sopenharmony_ci	select FSL_PQ_MDIO
9862306a36Sopenharmony_ci	select PHYLIB
9962306a36Sopenharmony_ci	select FIXED_PHY
10062306a36Sopenharmony_ci	select CRC32
10162306a36Sopenharmony_ci	help
10262306a36Sopenharmony_ci	  This driver supports the Gigabit TSEC on the MPC83xx, MPC85xx,
10362306a36Sopenharmony_ci	  and MPC86xx family of chips, the eTSEC on LS1021A and the FEC
10462306a36Sopenharmony_ci	  on the 8540.
10562306a36Sopenharmony_ci
10662306a36Sopenharmony_cisource "drivers/net/ethernet/freescale/dpaa/Kconfig"
10762306a36Sopenharmony_cisource "drivers/net/ethernet/freescale/dpaa2/Kconfig"
10862306a36Sopenharmony_cisource "drivers/net/ethernet/freescale/enetc/Kconfig"
10962306a36Sopenharmony_ci
11062306a36Sopenharmony_ciendif # NET_VENDOR_FREESCALE
111