2019-05-19 20:07:45 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2011-06-15 03:56:50 +08:00
|
|
|
#
|
|
|
|
# TI device configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
config NET_VENDOR_TI
|
|
|
|
bool "Texas Instruments (TI) devices"
|
2011-08-23 16:29:52 +08:00
|
|
|
default y
|
2020-03-24 06:52:49 +08:00
|
|
|
depends on PCI || EISA || AR7 || ARCH_DAVINCI || ARCH_OMAP2PLUS || ARCH_KEYSTONE || ARCH_K3
|
2020-06-14 00:50:22 +08:00
|
|
|
help
|
2015-06-22 04:28:02 +08:00
|
|
|
If you have a network (Ethernet) card belonging to this class, say Y.
|
2011-06-15 03:56:50 +08:00
|
|
|
|
|
|
|
Note that the answer to this question doesn't directly affect the
|
|
|
|
kernel: saying N will just cause the configurator to skip all
|
|
|
|
the questions about TI devices. If you say Y, you will be asked for
|
|
|
|
your specific card in the following questions.
|
|
|
|
|
|
|
|
if NET_VENDOR_TI
|
|
|
|
|
|
|
|
config TI_DAVINCI_EMAC
|
|
|
|
tristate "TI DaVinci EMAC Support"
|
2018-05-18 04:07:43 +08:00
|
|
|
depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 ) || COMPILE_TEST
|
2011-06-15 03:56:50 +08:00
|
|
|
select TI_DAVINCI_MDIO
|
|
|
|
select PHYLIB
|
2019-11-12 14:33:58 +08:00
|
|
|
select GENERIC_ALLOCATOR
|
2020-06-14 00:50:22 +08:00
|
|
|
help
|
2011-06-15 03:56:50 +08:00
|
|
|
This driver supports TI's DaVinci Ethernet .
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called davinci_emac_driver. This is recommended.
|
|
|
|
|
|
|
|
config TI_DAVINCI_MDIO
|
|
|
|
tristate "TI DaVinci MDIO Support"
|
2020-03-24 06:52:49 +08:00
|
|
|
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
|
2011-06-15 03:56:50 +08:00
|
|
|
select PHYLIB
|
2020-06-14 00:50:22 +08:00
|
|
|
help
|
2011-06-15 03:56:50 +08:00
|
|
|
This driver supports TI's DaVinci MDIO module.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called davinci_mdio. This is recommended.
|
|
|
|
|
2013-09-21 03:20:39 +08:00
|
|
|
config TI_CPSW_PHY_SEL
|
2019-02-20 23:25:19 +08:00
|
|
|
bool "TI CPSW Phy mode Selection (DEPRECATED)"
|
|
|
|
default n
|
2020-06-14 00:50:22 +08:00
|
|
|
help
|
2013-09-21 03:20:39 +08:00
|
|
|
This driver supports configuring of the phy mode connected to
|
2019-02-20 23:25:19 +08:00
|
|
|
the CPSW. DEPRECATED: use PHY_TI_GMII_SEL.
|
2013-09-21 03:20:39 +08:00
|
|
|
|
2012-03-19 04:17:54 +08:00
|
|
|
config TI_CPSW
|
|
|
|
tristate "TI CPSW Switch Support"
|
2018-05-18 04:07:43 +08:00
|
|
|
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
|
2020-05-12 18:02:30 +08:00
|
|
|
depends on TI_CPTS || !TI_CPTS
|
2012-03-19 04:17:54 +08:00
|
|
|
select TI_DAVINCI_MDIO
|
2014-09-29 14:53:17 +08:00
|
|
|
select MFD_SYSCON
|
net: ethernet: ti: cpsw: add XDP support
Add XDP support based on rx page_pool allocator, one frame per page.
Page pool allocator is used with assumption that only one rx_handler
is running simultaneously. DMA map/unmap is reused from page pool
despite there is no need to map whole page.
Due to specific of cpsw, the same TX/RX handler can be used by 2
network devices, so special fields in buffer are added to identify
an interface the frame is destined to. Thus XDP works for both
interfaces, that allows to test xdp redirect between two interfaces
easily. Also, each rx queue have own page pools, but common for both
netdevs.
XDP prog is common for all channels till appropriate changes are added
in XDP infrastructure. Also, once page_pool recycling becomes part of
skb netstack some simplifications can be added, like removing
page_pool_release_page() before skb receive.
In order to keep rx_dev while redirect, that can be somehow used in
future, do flush in rx_handler, that allows to keep rx dev the same
while redirect. It allows to conform with tracing rx_dev pointed
by Jesper.
Also, there is probability, that XDP generic code can be extended to
support multi ndev drivers like this one, using same rx queue for
several ndevs, based on switchdev for instance or else. In this case,
driver can be modified like exposed here:
https://lkml.org/lkml/2019/7/3/243
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-09 05:34:32 +08:00
|
|
|
select PAGE_POOL
|
2014-09-29 14:53:17 +08:00
|
|
|
select REGMAP
|
2020-03-24 06:52:44 +08:00
|
|
|
imply PHY_TI_GMII_SEL
|
2020-06-14 00:50:22 +08:00
|
|
|
help
|
2012-03-19 04:17:54 +08:00
|
|
|
This driver supports TI's CPSW Ethernet Switch.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called cpsw.
|
|
|
|
|
2019-11-20 06:19:19 +08:00
|
|
|
config TI_CPSW_SWITCHDEV
|
|
|
|
tristate "TI CPSW Switch Support with switchdev"
|
|
|
|
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
|
2019-12-05 01:45:32 +08:00
|
|
|
depends on NET_SWITCHDEV
|
2020-05-12 18:02:30 +08:00
|
|
|
depends on TI_CPTS || !TI_CPTS
|
2019-12-11 20:56:09 +08:00
|
|
|
select PAGE_POOL
|
2019-11-20 06:19:19 +08:00
|
|
|
select TI_DAVINCI_MDIO
|
|
|
|
select MFD_SYSCON
|
|
|
|
select REGMAP
|
|
|
|
select NET_DEVLINK
|
|
|
|
imply PHY_TI_GMII_SEL
|
|
|
|
help
|
|
|
|
This driver supports TI's CPSW Ethernet Switch.
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called cpsw_new.
|
|
|
|
|
2012-10-29 16:45:16 +08:00
|
|
|
config TI_CPTS
|
2020-05-12 18:02:30 +08:00
|
|
|
tristate "TI Common Platform Time Sync (CPTS) Support"
|
|
|
|
depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST
|
2019-06-11 19:16:32 +08:00
|
|
|
depends on COMMON_CLK
|
2020-05-12 18:02:30 +08:00
|
|
|
depends on PTP_1588_CLOCK
|
2020-06-14 00:50:22 +08:00
|
|
|
help
|
2012-10-29 16:45:16 +08:00
|
|
|
This driver supports the Common Platform Time Sync unit of
|
2016-12-09 06:21:56 +08:00
|
|
|
the CPSW Ethernet Switch and Keystone 2 1g/10g Switch Subsystem.
|
|
|
|
The unit can time stamp PTP UDP/IPv4 and Layer 2 packets, and the
|
|
|
|
driver offers a PTP Hardware Clock.
|
2012-10-29 16:45:16 +08:00
|
|
|
|
2020-03-24 06:52:49 +08:00
|
|
|
config TI_K3_AM65_CPSW_NUSS
|
|
|
|
tristate "TI K3 AM654x/J721E CPSW Ethernet driver"
|
|
|
|
depends on ARCH_K3 && OF && TI_K3_UDMA_GLUE_LAYER
|
2021-02-11 18:56:41 +08:00
|
|
|
select NET_DEVLINK
|
2020-03-24 06:52:49 +08:00
|
|
|
select TI_DAVINCI_MDIO
|
|
|
|
imply PHY_TI_GMII_SEL
|
2020-05-06 00:21:23 +08:00
|
|
|
depends on TI_K3_AM65_CPTS || !TI_K3_AM65_CPTS
|
2020-03-24 06:52:49 +08:00
|
|
|
help
|
|
|
|
This driver supports TI K3 AM654/J721E CPSW2G Ethernet SubSystem.
|
|
|
|
The two-port Gigabit Ethernet MAC (MCU_CPSW0) subsystem provides
|
|
|
|
Ethernet packet communication for the device: One Ethernet port
|
|
|
|
(port 1) with selectable RGMII and RMII interfaces and an internal
|
|
|
|
Communications Port Programming Interface (CPPI) port (port 0).
|
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called ti-am65-cpsw-nuss.
|
|
|
|
|
2021-02-11 18:56:41 +08:00
|
|
|
config TI_K3_AM65_CPSW_SWITCHDEV
|
|
|
|
bool "TI K3 AM654x/J721E CPSW Switch mode support"
|
|
|
|
depends on TI_K3_AM65_CPSW_NUSS
|
|
|
|
depends on NET_SWITCHDEV
|
|
|
|
help
|
|
|
|
This enables switchdev support for TI K3 CPSWxG Ethernet
|
|
|
|
Switch. Enable this driver to support hardware switch support for AM65
|
|
|
|
CPSW NUSS driver.
|
|
|
|
|
2020-05-02 04:50:06 +08:00
|
|
|
config TI_K3_AM65_CPTS
|
|
|
|
tristate "TI K3 AM65x CPTS"
|
2020-05-06 00:21:23 +08:00
|
|
|
depends on ARCH_K3 && OF
|
2020-05-02 04:50:06 +08:00
|
|
|
depends on PTP_1588_CLOCK
|
|
|
|
help
|
|
|
|
Say y here to support the TI K3 AM65x CPTS with 1588 features such as
|
|
|
|
PTP hardware clock for each CPTS device and network packets
|
|
|
|
timestamping where applicable.
|
|
|
|
Depending on integration CPTS blocks enable compliance with
|
|
|
|
the IEEE 1588-2008 standard for a precision clock synchronization
|
|
|
|
protocol, Ethernet Enhanced Scheduled Traffic Operations (CPTS_ESTFn)
|
|
|
|
and PCIe Subsystem Precision Time Measurement (PTM).
|
|
|
|
|
2020-05-13 21:26:15 +08:00
|
|
|
config TI_AM65_CPSW_TAS
|
|
|
|
bool "Enable TAS offload in AM65 CPSW"
|
|
|
|
depends on TI_K3_AM65_CPSW_NUSS && NET_SCH_TAPRIO && TI_K3_AM65_CPTS
|
|
|
|
help
|
|
|
|
Say y here to support Time Aware Shaper(TAS) offload in AM65 CPSW.
|
|
|
|
AM65 CPSW hardware supports Enhanced Scheduled Traffic (EST)
|
|
|
|
defined in IEEE 802.1Q 2018. The EST scheduler runs on CPTS and the
|
|
|
|
TAS/EST schedule is updated in the Fetch RAM memory of the CPSW.
|
|
|
|
|
2015-01-16 08:12:50 +08:00
|
|
|
config TI_KEYSTONE_NETCP
|
2015-01-30 07:15:51 +08:00
|
|
|
tristate "TI Keystone NETCP Core Support"
|
2015-03-21 04:11:23 +08:00
|
|
|
select TI_DAVINCI_MDIO
|
2015-01-16 08:12:50 +08:00
|
|
|
depends on OF
|
|
|
|
depends on KEYSTONE_NAVIGATOR_DMA && KEYSTONE_NAVIGATOR_QMSS
|
2020-05-12 18:02:30 +08:00
|
|
|
depends on TI_CPTS || !TI_CPTS
|
2020-06-14 00:50:22 +08:00
|
|
|
help
|
2015-01-30 07:15:51 +08:00
|
|
|
This driver supports TI's Keystone NETCP Core.
|
2015-01-16 08:12:50 +08:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called keystone_netcp.
|
|
|
|
|
2015-01-30 07:15:51 +08:00
|
|
|
config TI_KEYSTONE_NETCP_ETHSS
|
|
|
|
depends on TI_KEYSTONE_NETCP
|
|
|
|
tristate "TI Keystone NETCP Ethernet subsystem Support"
|
2020-06-14 00:50:22 +08:00
|
|
|
help
|
2015-01-30 07:15:51 +08:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here: the module
|
|
|
|
will be called keystone_netcp_ethss.
|
|
|
|
|
2011-06-15 03:56:50 +08:00
|
|
|
config TLAN
|
|
|
|
tristate "TI ThunderLAN support"
|
|
|
|
depends on (PCI || EISA)
|
2020-06-14 00:50:22 +08:00
|
|
|
help
|
2011-06-15 03:56:50 +08:00
|
|
|
If you have a PCI Ethernet network card based on the ThunderLAN chip
|
2015-06-22 04:28:02 +08:00
|
|
|
which is supported by this driver, say Y here.
|
2011-06-15 03:56:50 +08:00
|
|
|
|
|
|
|
Devices currently supported by this driver are Compaq Netelligent,
|
|
|
|
Compaq NetFlex and Olicom cards. Please read the file
|
2020-06-27 01:27:24 +08:00
|
|
|
<file:Documentation/networking/device_drivers/ethernet/ti/tlan.rst>
|
2018-12-04 09:43:28 +08:00
|
|
|
for more details.
|
2011-06-15 03:56:50 +08:00
|
|
|
|
|
|
|
To compile this driver as a module, choose M here. The module
|
|
|
|
will be called tlan.
|
|
|
|
|
|
|
|
Please email feedback to <torben.mathiasen@compaq.com>.
|
|
|
|
|
|
|
|
config CPMAC
|
2012-10-03 02:18:24 +08:00
|
|
|
tristate "TI AR7 CPMAC Ethernet support"
|
|
|
|
depends on AR7
|
2011-06-15 03:56:50 +08:00
|
|
|
select PHYLIB
|
2020-06-14 00:50:22 +08:00
|
|
|
help
|
2011-06-15 03:56:50 +08:00
|
|
|
TI AR7 CPMAC Ethernet support
|
|
|
|
|
|
|
|
endif # NET_VENDOR_TI
|