blob: e04e1c5cb0133c48899c53db79a2c9a7124a5673 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Jeff Kirsherec21e2e2011-06-11 02:29:36 -07002#
3# Freescale device configuration
4#
5
6config NET_VENDOR_FREESCALE
7 bool "Freescale devices"
Jeff Kirsher88f07482011-08-23 01:29:52 -07008 default y
Jeff Kirsherec21e2e2011-06-11 02:29:36 -07009 depends on FSL_SOC || QUICC_ENGINE || CPM1 || CPM2 || PPC_MPC512x || \
10 M523x || M527x || M5272 || M528x || M520x || M532x || \
Shaohui Xiefe761bc2015-11-20 11:54:08 +080011 ARCH_MXC || ARCH_MXS || (PPC_MPC52xx && PPC_BESTCOMM) || \
Florian Fainelli0827be22016-11-17 11:19:11 -080012 ARCH_LAYERSCAPE || COMPILE_TEST
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090013 help
Paul Gortmaker138b15e2015-06-21 16:28:02 -040014 If you have a network (Ethernet) card belonging to this class, say Y.
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070015
16 Note that the answer to this question doesn't directly affect the
17 kernel: saying N will just cause the configurator to skip all
Shawn Guo230dec62011-09-23 02:12:48 +000018 the questions about Freescale devices. If you say Y, you will be
19 asked for your specific card in the following questions.
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070020
21if NET_VENDOR_FREESCALE
22
23config FEC
Lothar Waßmann26cf8202011-12-07 21:59:32 +000024 tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)"
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070025 depends on (M523x || M527x || M5272 || M528x || M520x || M532x || \
Florian Fainelli78cc6e72018-05-17 13:07:44 -070026 ARCH_MXC || SOC_IMX28 || COMPILE_TEST)
Wolfram Sang0d903242012-01-03 03:46:47 +000027 default ARCH_MXC || SOC_IMX28 if ARM
Arnd Bergmanne5f31552021-08-12 20:33:58 +020028 depends on PTP_1588_CLOCK_OPTIONAL
Arnd Bergmann0b32e912020-12-04 00:20:37 +010029 select CRC32
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070030 select PHYLIB
Oleksij Rempel4a52dd82021-04-28 15:09:46 +020031 imply NET_SELFTESTS
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090032 help
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070033 Say Y here if you want to use the built-in 10/100 Fast ethernet
34 controller on some Motorola ColdFire and Freescale i.MX processors.
35
36config FEC_MPC52xx
37 tristate "FEC MPC52xx driver"
38 depends on PPC_MPC52xx && PPC_BESTCOMM
39 select CRC32
40 select PHYLIB
41 select PPC_BESTCOMM_FEC
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090042 help
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070043 This option enables support for the MPC5200's on-chip
44 Fast Ethernet Controller
45 If compiled as module, it will be called fec_mpc52xx.
46
47config FEC_MPC52xx_MDIO
48 bool "FEC MPC52xx MDIO bus driver"
49 depends on FEC_MPC52xx
50 default y
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090051 help
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070052 The MPC5200's FEC can connect to the Ethernet either with
53 an external MII PHY chip or 10 Mbps 7-wire interface
54 (Motorola? industry standard).
55 If your board uses an external PHY connected to FEC, enable this.
56 If not sure, enable.
57 If compiled as module, it will be called fec_mpc52xx_phy.
58
59source "drivers/net/ethernet/freescale/fs_enet/Kconfig"
Igal Liberman5adae512015-12-21 02:21:25 +020060source "drivers/net/ethernet/freescale/fman/Kconfig"
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070061
62config FSL_PQ_MDIO
63 tristate "Freescale PQ MDIO"
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070064 select PHYLIB
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090065 help
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070066 This driver supports the MDIO bus used by the gianfar and UCC drivers.
67
Timur Tabi9f35a732012-08-20 09:26:39 +000068config FSL_XGMAC_MDIO
69 tristate "Freescale XGMAC MDIO"
Timur Tabi9f35a732012-08-20 09:26:39 +000070 select PHYLIB
Florian Fainelli0827be22016-11-17 11:19:11 -080071 depends on OF
Andy Fleming39f33362014-06-11 13:48:17 -050072 select OF_MDIO
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090073 help
Andy Fleming1fcf77c2015-01-04 17:36:02 +080074 This driver supports the MDIO bus on the Fman 10G Ethernet MACs, and
75 on the FMan mEMAC (which supports both Clauses 22 and 45)
Timur Tabi9f35a732012-08-20 09:26:39 +000076
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070077config UCC_GETH
78 tristate "Freescale QE Gigabit Ethernet"
Rasmus Villemoes114724b2019-11-28 15:55:52 +010079 depends on QUICC_ENGINE && PPC32
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070080 select FSL_PQ_MDIO
81 select PHYLIB
Arnd Bergmann99352c72020-05-09 14:04:52 +020082 select FIXED_PHY
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090083 help
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070084 This driver supports the Gigabit Ethernet mode of the QUICC Engine,
85 which is available on some Freescale SOCs.
86
87config UGETH_TX_ON_DEMAND
88 bool "Transmit on Demand support"
89 depends on UCC_GETH
90
91config GIANFAR
92 tristate "Gianfar Ethernet"
Florian Fainelli0827be22016-11-17 11:19:11 -080093 depends on HAS_DMA
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070094 select FSL_PQ_MDIO
95 select PHYLIB
Arnd Bergmann99352c72020-05-09 14:04:52 +020096 select FIXED_PHY
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070097 select CRC32
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090098 help
Jeff Kirsherec21e2e2011-06-11 02:29:36 -070099 This driver supports the Gigabit TSEC on the MPC83xx, MPC85xx,
Alison Wangbbc65bf2015-06-25 11:34:38 +0800100 and MPC86xx family of chips, the eTSEC on LS1021A and the FEC
101 on the 8540.
Jeff Kirsherec21e2e2011-06-11 02:29:36 -0700102
Madalin Bucur9ad1a372016-11-15 10:41:02 +0200103source "drivers/net/ethernet/freescale/dpaa/Kconfig"
Yangbo Lu0a006a22018-10-08 15:44:25 +0800104source "drivers/net/ethernet/freescale/dpaa2/Kconfig"
Claudiu Manoild4fd04042019-01-22 15:29:54 +0200105source "drivers/net/ethernet/freescale/enetc/Kconfig"
Ioana Radulescu34ff6842018-08-29 04:42:40 -0500106
Jeff Kirsherec21e2e2011-06-11 02:29:36 -0700107endif # NET_VENDOR_FREESCALE