xref: /openbmc/linux/drivers/net/ethernet/ti/Kconfig (revision 4ec575b7)
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
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 || COMPILE_TEST
35	select PHYLIB
36	---help---
37	  This driver supports TI's DaVinci MDIO module.
38
39	  To compile this driver as a module, choose M here: the module
40	  will be called davinci_mdio.  This is recommended.
41
42config TI_CPSW_PHY_SEL
43	bool "TI CPSW Phy mode Selection (DEPRECATED)"
44	default n
45	---help---
46	  This driver supports configuring of the phy mode connected to
47	  the CPSW. DEPRECATED: use PHY_TI_GMII_SEL.
48
49config TI_CPSW
50	tristate "TI CPSW Switch Support"
51	depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
52	select TI_DAVINCI_MDIO
53	select MFD_SYSCON
54	select PAGE_POOL
55	select REGMAP
56	---help---
57	  This driver supports TI's CPSW Ethernet Switch.
58
59	  To compile this driver as a module, choose M here: the module
60	  will be called cpsw.
61
62config TI_CPSW_SWITCHDEV
63	tristate "TI CPSW Switch Support with switchdev"
64	depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
65	depends on NET_SWITCHDEV
66	select PAGE_POOL
67	select TI_DAVINCI_MDIO
68	select MFD_SYSCON
69	select REGMAP
70	select NET_DEVLINK
71	imply PHY_TI_GMII_SEL
72	help
73	  This driver supports TI's CPSW Ethernet Switch.
74
75	  To compile this driver as a module, choose M here: the module
76	  will be called cpsw_new.
77
78config TI_CPTS
79	bool "TI Common Platform Time Sync (CPTS) Support"
80	depends on TI_CPSW || TI_KEYSTONE_NETCP || TI_CPSW_SWITCHDEV || COMPILE_TEST
81	depends on COMMON_CLK
82	depends on POSIX_TIMERS
83	---help---
84	  This driver supports the Common Platform Time Sync unit of
85	  the CPSW Ethernet Switch and Keystone 2 1g/10g Switch Subsystem.
86	  The unit can time stamp PTP UDP/IPv4 and Layer 2 packets, and the
87	  driver offers a PTP Hardware Clock.
88
89config TI_CPTS_MOD
90	tristate
91	depends on TI_CPTS
92	default y if TI_CPSW=y || TI_KEYSTONE_NETCP=y || TI_CPSW_SWITCHDEV=y
93	select NET_PTP_CLASSIFY
94	imply PTP_1588_CLOCK
95	default m
96
97config TI_KEYSTONE_NETCP
98	tristate "TI Keystone NETCP Core Support"
99	select TI_DAVINCI_MDIO
100	depends on OF
101	depends on KEYSTONE_NAVIGATOR_DMA && KEYSTONE_NAVIGATOR_QMSS
102	---help---
103	  This driver supports TI's Keystone NETCP Core.
104
105	  To compile this driver as a module, choose M here: the module
106	  will be called keystone_netcp.
107
108config TI_KEYSTONE_NETCP_ETHSS
109	depends on TI_KEYSTONE_NETCP
110	tristate "TI Keystone NETCP Ethernet subsystem Support"
111	---help---
112
113	  To compile this driver as a module, choose M here: the module
114	  will be called keystone_netcp_ethss.
115
116config TLAN
117	tristate "TI ThunderLAN support"
118	depends on (PCI || EISA)
119	---help---
120	  If you have a PCI Ethernet network card based on the ThunderLAN chip
121	  which is supported by this driver, say Y here.
122
123	  Devices currently supported by this driver are Compaq Netelligent,
124	  Compaq NetFlex and Olicom cards.  Please read the file
125	  <file:Documentation/networking/device_drivers/ti/tlan.txt>
126	  for more details.
127
128	  To compile this driver as a module, choose M here. The module
129	  will be called tlan.
130
131	  Please email feedback to <torben.mathiasen@compaq.com>.
132
133config CPMAC
134	tristate "TI AR7 CPMAC Ethernet support"
135	depends on AR7
136	select PHYLIB
137	---help---
138	  TI AR7 CPMAC Ethernet support
139
140endif # NET_VENDOR_TI
141