2019-05-19 15:07:45 +03:00
# SPDX-License-Identifier: GPL-2.0-only
2011-06-14 23:56:50 +04:00
#
# TI device configuration
#
config NET_VENDOR_TI
bool "Texas Instruments (TI) devices"
2011-08-23 12:29:52 +04:00
default y
2020-03-24 01:52:49 +03:00
depends on PCI || EISA || AR7 || ARCH_DAVINCI || ARCH_OMAP2PLUS || ARCH_KEYSTONE || ARCH_K3
2020-06-13 19:50:22 +03:00
help
2015-06-21 23:28:02 +03:00
If you have a network (Ethernet) card belonging to this class, say Y.
2011-06-14 23:56:50 +04: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-17 23:07:43 +03:00
depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 ) || COMPILE_TEST
2011-06-14 23:56:50 +04:00
select TI_DAVINCI_MDIO
select PHYLIB
2019-11-12 09:33:58 +03:00
select GENERIC_ALLOCATOR
2020-06-13 19:50:22 +03:00
help
2011-06-14 23:56:50 +04: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 01:52:49 +03:00
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
2011-06-14 23:56:50 +04:00
select PHYLIB
2020-06-13 19:50:22 +03:00
help
2011-06-14 23:56:50 +04: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-20 23:20:39 +04:00
config TI_CPSW_PHY_SEL
2019-02-20 18:25:19 +03:00
bool "TI CPSW Phy mode Selection (DEPRECATED)"
default n
2020-06-13 19:50:22 +03:00
help
2013-09-20 23:20:39 +04:00
This driver supports configuring of the phy mode connected to
2019-02-20 18:25:19 +03:00
the CPSW. DEPRECATED: use PHY_TI_GMII_SEL.
2013-09-20 23:20:39 +04:00
2012-03-19 00:17:54 +04:00
config TI_CPSW
tristate "TI CPSW Switch Support"
2018-05-17 23:07:43 +03:00
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
2020-05-12 13:02:30 +03:00
depends on TI_CPTS || !TI_CPTS
2012-03-19 00:17:54 +04:00
select TI_DAVINCI_MDIO
2014-09-29 10:53:17 +04: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 00:34:32 +03:00
select PAGE_POOL
2014-09-29 10:53:17 +04:00
select REGMAP
2020-03-24 01:52:44 +03:00
imply PHY_TI_GMII_SEL
2020-06-13 19:50:22 +03:00
help
2012-03-19 00:17:54 +04: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 01:19:19 +03:00
config TI_CPSW_SWITCHDEV
tristate "TI CPSW Switch Support with switchdev"
depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST
2019-12-04 20:45:32 +03:00
depends on NET_SWITCHDEV
2020-05-12 13:02:30 +03:00
depends on TI_CPTS || !TI_CPTS
2019-12-11 15:56:09 +03:00
select PAGE_POOL
2019-11-20 01:19:19 +03: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 12:45:16 +04:00
config TI_CPTS
2020-05-12 13:02:30 +03:00
tristate "TI Common Platform Time Sync (CPTS) Support"
depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST
2019-06-11 14:16:32 +03:00
depends on COMMON_CLK
2020-05-12 13:02:30 +03:00
depends on PTP_1588_CLOCK
2020-06-13 19:50:22 +03:00
help
2012-10-29 12:45:16 +04:00
This driver supports the Common Platform Time Sync unit of
2016-12-09 01:21:56 +03: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 12:45:16 +04:00
2020-03-24 01:52:49 +03: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
select TI_DAVINCI_MDIO
imply PHY_TI_GMII_SEL
2020-05-05 19:21:23 +03:00
depends on TI_K3_AM65_CPTS || !TI_K3_AM65_CPTS
2020-03-24 01:52:49 +03: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.
2020-05-01 23:50:06 +03:00
config TI_K3_AM65_CPTS
tristate "TI K3 AM65x CPTS"
2020-05-05 19:21:23 +03:00
depends on ARCH_K3 && OF
2020-05-01 23:50:06 +03: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 16:26:15 +03: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 03:12:50 +03:00
config TI_KEYSTONE_NETCP
2015-01-30 02:15:51 +03:00
tristate "TI Keystone NETCP Core Support"
2015-03-20 23:11:23 +03:00
select TI_DAVINCI_MDIO
2015-01-16 03:12:50 +03:00
depends on OF
depends on KEYSTONE_NAVIGATOR_DMA && KEYSTONE_NAVIGATOR_QMSS
2020-05-12 13:02:30 +03:00
depends on TI_CPTS || !TI_CPTS
2020-06-13 19:50:22 +03:00
help
2015-01-30 02:15:51 +03:00
This driver supports TI's Keystone NETCP Core.
2015-01-16 03:12:50 +03:00
To compile this driver as a module, choose M here: the module
will be called keystone_netcp.
2015-01-30 02:15:51 +03:00
config TI_KEYSTONE_NETCP_ETHSS
depends on TI_KEYSTONE_NETCP
tristate "TI Keystone NETCP Ethernet subsystem Support"
2020-06-13 19:50:22 +03:00
help
2015-01-30 02:15:51 +03:00
To compile this driver as a module, choose M here: the module
will be called keystone_netcp_ethss.
2011-06-14 23:56:50 +04:00
config TLAN
tristate "TI ThunderLAN support"
depends on (PCI || EISA)
2020-06-13 19:50:22 +03:00
help
2011-06-14 23:56:50 +04:00
If you have a PCI Ethernet network card based on the ThunderLAN chip
2015-06-21 23:28:02 +03:00
which is supported by this driver, say Y here.
2011-06-14 23:56:50 +04:00
Devices currently supported by this driver are Compaq Netelligent,
Compaq NetFlex and Olicom cards. Please read the file
2020-05-01 17:44:56 +03:00
<file:Documentation/networking/device_drivers/ti/tlan.rst>
2018-12-04 04:43:28 +03:00
for more details.
2011-06-14 23:56:50 +04: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-02 22:18:24 +04:00
tristate "TI AR7 CPMAC Ethernet support"
depends on AR7
2011-06-14 23:56:50 +04:00
select PHYLIB
2020-06-13 19:50:22 +03:00
help
2011-06-14 23:56:50 +04:00
TI AR7 CPMAC Ethernet support
endif # NET_VENDOR_TI