xref: /openbmc/linux/drivers/net/ethernet/ti/Kconfig (revision 7587cdef)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# TI device configuration
4#
5
6config NET_VENDOR_TI
7	bool "Texas Instruments (TI) devices"
8	default y
9	depends on PCI || EISA || AR7 || ARCH_DAVINCI || ARCH_OMAP2PLUS || ARCH_KEYSTONE || ARCH_K3
10	help
11	  If you have a network (Ethernet) card belonging to this class, say Y.
12
13	  Note that the answer to this question doesn't directly affect the
14	  kernel: saying N will just cause the configurator to skip all
15	  the questions about TI devices. If you say Y, you will be asked for
16	  your specific card in the following questions.
17
18if NET_VENDOR_TI
19
20config TI_DAVINCI_EMAC
21	tristate "TI DaVinci EMAC Support"
22	depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 ) || COMPILE_TEST
23	select TI_DAVINCI_MDIO
24	select PHYLIB
25	select GENERIC_ALLOCATOR
26	help
27	  This driver supports TI's DaVinci Ethernet .
28
29	  To compile this driver as a module, choose M here: the module
30	  will be called davinci_emac_driver.  This is recommended.
31
32config TI_DAVINCI_MDIO
33	tristate "TI DaVinci MDIO Support"
34	depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
35	select PHYLIB
36	select MDIO_BITBANG
37	help
38	  This driver supports TI's DaVinci MDIO module.
39
40	  To compile this driver as a module, choose M here: the module
41	  will be called davinci_mdio.  This is recommended.
42
43config TI_CPSW_PHY_SEL
44	bool "TI CPSW Phy mode Selection (DEPRECATED)"
45	default n
46	help
47	  This driver supports configuring of the phy mode connected to
48	  the CPSW. DEPRECATED: use PHY_TI_GMII_SEL.
49
50config TI_CPSW
51	tristate "TI CPSW Switch Support"
52	depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
53	depends on TI_CPTS || !TI_CPTS
54	select TI_DAVINCI_MDIO
55	select MFD_SYSCON
56	select PAGE_POOL
57	select REGMAP
58	imply PHY_TI_GMII_SEL
59	help
60	  This driver supports TI's CPSW Ethernet Switch.
61
62	  To compile this driver as a module, choose M here: the module
63	  will be called cpsw.
64
65config TI_CPSW_SWITCHDEV
66	tristate "TI CPSW Switch Support with switchdev"
67	depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
68	depends on NET_SWITCHDEV
69	depends on TI_CPTS || !TI_CPTS
70	select PAGE_POOL
71	select TI_DAVINCI_MDIO
72	select MFD_SYSCON
73	select REGMAP
74	select NET_DEVLINK
75	imply PHY_TI_GMII_SEL
76	help
77	  This driver supports TI's CPSW Ethernet Switch.
78
79	  To compile this driver as a module, choose M here: the module
80	  will be called cpsw_new.
81
82config TI_CPTS
83	tristate "TI Common Platform Time Sync (CPTS) Support"
84	depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST
85	depends on COMMON_CLK
86	depends on PTP_1588_CLOCK
87	help
88	  This driver supports the Common Platform Time Sync unit of
89	  the CPSW Ethernet Switch and Keystone 2 1g/10g Switch Subsystem.
90	  The unit can time stamp PTP UDP/IPv4 and Layer 2 packets, and the
91	  driver offers a PTP Hardware Clock.
92
93config TI_K3_AM65_CPSW_NUSS
94	tristate "TI K3 AM654x/J721E CPSW Ethernet driver"
95	depends on ARCH_K3 && OF && TI_K3_UDMA_GLUE_LAYER
96	select NET_DEVLINK
97	select TI_DAVINCI_MDIO
98	select PHYLINK
99	imply PHY_TI_GMII_SEL
100	depends on TI_K3_AM65_CPTS || !TI_K3_AM65_CPTS
101	help
102	  This driver supports TI K3 AM654/J721E CPSW2G Ethernet SubSystem.
103	  The two-port Gigabit Ethernet MAC (MCU_CPSW0) subsystem provides
104	  Ethernet packet communication for the device: One Ethernet port
105	  (port 1) with selectable RGMII and RMII interfaces and an internal
106	  Communications Port Programming Interface (CPPI) port (port 0).
107
108	  To compile this driver as a module, choose M here: the module
109	  will be called ti-am65-cpsw-nuss.
110
111config TI_K3_AM65_CPSW_SWITCHDEV
112	bool "TI K3 AM654x/J721E CPSW Switch mode support"
113	depends on TI_K3_AM65_CPSW_NUSS
114	depends on NET_SWITCHDEV
115	help
116	 This enables switchdev support for TI K3 CPSWxG Ethernet
117	 Switch. Enable this driver to support hardware switch support for AM65
118	 CPSW NUSS driver.
119
120config TI_K3_AM65_CPTS
121	tristate "TI K3 AM65x CPTS"
122	depends on ARCH_K3 && OF
123	depends on PTP_1588_CLOCK
124	help
125	  Say y here to support the TI K3 AM65x CPTS with 1588 features such as
126	  PTP hardware clock for each CPTS device and network packets
127	  timestamping where applicable.
128	  Depending on integration CPTS blocks enable compliance with
129	  the IEEE 1588-2008 standard for a precision clock synchronization
130	  protocol, Ethernet Enhanced Scheduled Traffic Operations (CPTS_ESTFn)
131	  and PCIe Subsystem Precision Time Measurement (PTM).
132
133config TI_AM65_CPSW_TAS
134	bool "Enable TAS offload in AM65 CPSW"
135	depends on TI_K3_AM65_CPSW_NUSS && NET_SCH_TAPRIO && TI_K3_AM65_CPTS
136	help
137	  Say y here to support Time Aware Shaper(TAS) offload in AM65 CPSW.
138	  AM65 CPSW hardware supports Enhanced Scheduled Traffic (EST)
139	  defined in IEEE 802.1Q 2018. The EST scheduler runs on CPTS and the
140	  TAS/EST schedule is updated in the Fetch RAM memory of the CPSW.
141
142config TI_KEYSTONE_NETCP
143	tristate "TI Keystone NETCP Core Support"
144	select TI_DAVINCI_MDIO
145	depends on OF
146	depends on KEYSTONE_NAVIGATOR_DMA && KEYSTONE_NAVIGATOR_QMSS
147	depends on TI_CPTS || !TI_CPTS
148	help
149	  This driver supports TI's Keystone NETCP Core.
150
151	  To compile this driver as a module, choose M here: the module
152	  will be called keystone_netcp.
153
154config TI_KEYSTONE_NETCP_ETHSS
155	depends on TI_KEYSTONE_NETCP
156	tristate "TI Keystone NETCP Ethernet subsystem Support"
157	help
158
159	  To compile this driver as a module, choose M here: the module
160	  will be called keystone_netcp_ethss.
161
162config TLAN
163	tristate "TI ThunderLAN support"
164	depends on (PCI || EISA)
165	help
166	  If you have a PCI Ethernet network card based on the ThunderLAN chip
167	  which is supported by this driver, say Y here.
168
169	  Devices currently supported by this driver are Compaq Netelligent,
170	  Compaq NetFlex and Olicom cards.  Please read the file
171	  <file:Documentation/networking/device_drivers/ethernet/ti/tlan.rst>
172	  for more details.
173
174	  To compile this driver as a module, choose M here. The module
175	  will be called tlan.
176
177	  Please email feedback to <torben.mathiasen@compaq.com>.
178
179config CPMAC
180	tristate "TI AR7 CPMAC Ethernet support"
181	depends on AR7
182	select PHYLIB
183	help
184	  TI AR7 CPMAC Ethernet support
185
186endif # NET_VENDOR_TI
187