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