2012-04-06 17:49:35 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 17:49:35 +02:00
|
|
|
#
|
2013-09-17 18:52:23 +02:00
|
|
|
|
2020-02-15 14:38:35 +01:00
|
|
|
menuconfig NETDEVICES
|
|
|
|
bool "Network Device/PHY Support"
|
2022-09-30 06:19:11 +02:00
|
|
|
default y
|
2020-02-15 14:38:35 +01:00
|
|
|
depends on NET
|
|
|
|
---help---
|
|
|
|
Network interface driver and PHY selections. This options enables
|
|
|
|
selection of drivers for external Ethernet MAC chips. The majority
|
|
|
|
of MCUs, however, have built-in, internal Ethernet MAC peripherals
|
|
|
|
and that Ethernet support is selected in the MCU-specific
|
|
|
|
configuration menus.
|
|
|
|
|
|
|
|
Most Ethernet MAC drivers, whether internal or external, will
|
|
|
|
require configuration of an external PHY device. That external PHY
|
|
|
|
device is also selected via this menu.
|
|
|
|
|
2020-02-08 08:30:09 +01:00
|
|
|
if NETDEVICES
|
|
|
|
|
2023-01-17 09:49:28 +01:00
|
|
|
comment "Upper-half Network Device Driver Options"
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Netdev poll worker"
|
|
|
|
|
|
|
|
config NETDEV_LPWORK_THREAD
|
|
|
|
bool "Use low-priority worker thread to do netdev poll"
|
|
|
|
depends on SCHED_LPWORK
|
|
|
|
|
|
|
|
config NETDEV_HPWORK_THREAD
|
|
|
|
bool "Use high-priority worker thread to do netdev poll"
|
|
|
|
depends on SCHED_HPWORK
|
|
|
|
|
|
|
|
config NETDEV_WORK_THREAD
|
|
|
|
bool "Use a dedicated work thread to do netdev poll"
|
|
|
|
|
|
|
|
endchoice # Netdev poll worker
|
|
|
|
|
2024-07-01 14:54:39 +02:00
|
|
|
config NETDEV_WORK_THREAD_POLLING_PERIOD
|
|
|
|
int "Polling period, the units are microseconds"
|
|
|
|
default 0
|
|
|
|
depends on NETDEV_WORK_THREAD
|
|
|
|
---help---
|
|
|
|
Disable the txdone and rxready interrupt and use polling
|
|
|
|
period to receive packets when the value is not 0.
|
|
|
|
|
2023-01-17 09:49:28 +01:00
|
|
|
config NETDEV_WORK_THREAD_PRIORITY
|
|
|
|
int "Priority of work poll thread"
|
|
|
|
default 100
|
|
|
|
depends on NETDEV_WORK_THREAD
|
|
|
|
---help---
|
|
|
|
The priority of work poll thread in netdev.
|
|
|
|
|
2023-05-19 09:25:57 +02:00
|
|
|
config NETDEV_WIRELESS_HANDLER
|
|
|
|
bool "Support wireless handler in upper-half driver"
|
|
|
|
default y
|
2023-06-26 13:18:32 +02:00
|
|
|
depends on NETDEV_WIRELESS_IOCTL
|
2023-05-19 09:25:57 +02:00
|
|
|
---help---
|
|
|
|
Enable the wireless handler support in upper-half driver.
|
|
|
|
|
2024-05-16 04:08:16 +02:00
|
|
|
config NETDEV_RSS
|
|
|
|
bool "Using hardware RSS (Receive Side Scaling) with network card"
|
|
|
|
default n
|
|
|
|
depends on SMP && NETDEV_IOCTL && NETDEV_WORK_THREAD
|
2024-06-12 04:50:15 +02:00
|
|
|
---help---
|
|
|
|
When the hardware supports RSS/aRFS function, provide the
|
|
|
|
hash value and CPU ID to the hardware driver.
|
2024-05-16 04:08:16 +02:00
|
|
|
|
2013-09-25 19:50:05 +02:00
|
|
|
comment "General Ethernet MAC Driver Options"
|
|
|
|
|
2019-11-02 18:30:33 +01:00
|
|
|
config NET_RPMSG_DRV
|
|
|
|
bool "RPMSG net driver"
|
2024-02-04 07:30:39 +01:00
|
|
|
depends on RPMSG
|
2019-11-02 18:30:33 +01:00
|
|
|
select ARCH_HAVE_NETDEV_STATISTICS
|
|
|
|
---help---
|
2023-10-27 12:56:33 +02:00
|
|
|
Use the RPMSG as net device, transfer packet between remoteproc.
|
2019-11-02 18:30:33 +01:00
|
|
|
|
|
|
|
if NET_RPMSG_DRV
|
|
|
|
|
|
|
|
config NET_RPMSG_PRIORITY
|
|
|
|
int "net prmsg priority"
|
|
|
|
default 100
|
|
|
|
---help---
|
|
|
|
The priority for net rmpsg task.
|
|
|
|
|
|
|
|
config NET_RPMSG_STACKSIZE
|
2023-10-27 12:56:33 +02:00
|
|
|
int "net RPMSG stack size"
|
2020-03-27 02:51:03 +01:00
|
|
|
default DEFAULT_TASK_STACKSIZE
|
2019-11-02 18:30:33 +01:00
|
|
|
---help---
|
2023-10-27 12:56:33 +02:00
|
|
|
The stack size allocated for the net RPMSG task.
|
2019-11-02 18:30:33 +01:00
|
|
|
|
|
|
|
endif # NET_RPMSG_DRV
|
|
|
|
|
2015-12-07 16:26:57 +01:00
|
|
|
config NETDEV_TELNET
|
|
|
|
bool "Telnet driver"
|
|
|
|
default n
|
|
|
|
depends on NET && NET_TCP
|
|
|
|
---help---
|
|
|
|
The Telnet driver generates a character driver instance to support a
|
|
|
|
Telnet session. This driver is used by the Telnet daemon. The
|
2018-07-09 02:24:45 +02:00
|
|
|
Telnet daemon will instantiate a new Telnet driver to support
|
2015-12-07 16:26:57 +01:00
|
|
|
standard I/O on the new Telnet session.
|
|
|
|
|
|
|
|
if NETDEV_TELNET
|
|
|
|
|
|
|
|
config TELNET_RXBUFFER_SIZE
|
|
|
|
int "Telnet RX buffer size"
|
|
|
|
default 256
|
|
|
|
|
|
|
|
config TELNET_TXBUFFER_SIZE
|
|
|
|
int "Telnet TX buffer size"
|
|
|
|
default 256
|
|
|
|
|
2019-05-21 17:57:46 +02:00
|
|
|
config TELNET_MAXLCLIENTS
|
|
|
|
int "Maximum Telnet clients"
|
|
|
|
default 8
|
|
|
|
---help---
|
|
|
|
The maximum number of Telnet clients tasks is limited by this
|
|
|
|
number. This limitation is somewhat artificial since it only
|
|
|
|
determines the size of a fixed-size, preallocated, internal array.
|
2015-12-07 16:26:57 +01:00
|
|
|
|
2019-01-05 19:14:05 +01:00
|
|
|
config TELNET_SUPPORT_NAWS
|
|
|
|
bool "Support NAWS (Negotiate About Window Size)"
|
|
|
|
default n
|
|
|
|
|
2019-05-21 17:57:46 +02:00
|
|
|
config TELNET_DUMPBUFFER
|
|
|
|
bool "Dump Telnet buffers"
|
|
|
|
default n
|
|
|
|
depends on DEBUG_NET
|
|
|
|
|
2015-12-07 16:26:57 +01:00
|
|
|
endif # NETDEV_TELNET
|
|
|
|
|
2015-11-26 19:08:09 +01:00
|
|
|
config NETDEV_STATISTICS
|
|
|
|
bool "Network device driver statistics"
|
|
|
|
depends on NET_STATISTICS && ARCH_HAVE_NETDEV_STATISTICS
|
|
|
|
---help---
|
|
|
|
Enable to collect statistics from the network drivers (if supported
|
|
|
|
by the network driver).
|
|
|
|
|
net/netdev: Add periodic log for netdev statistics
Work for every network device using `CONFIG_NETDEV_STATISTICS`.
Log style:
<interface>:T{done}/{total},R({v4}+{v6})/{total} {Protocol}:T{tx},R{rx},D{drop}
Example:
wlan0:T10/10,R(10+20)/31 TCP:T0,R0,D0 UDP:T0,R10,D0 ICMP:T0,R0,D0 ICMP6:T0,R0,D0
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-08-14 12:22:12 +02:00
|
|
|
config NETDEV_STATISTICS_LOG_PERIOD
|
|
|
|
int "Network device statistics log period"
|
|
|
|
default 0
|
|
|
|
depends on NETDEV_STATISTICS && DEBUG_FEATURES
|
|
|
|
---help---
|
|
|
|
Period in seconds to log network device statistics. Zero means
|
|
|
|
disable logging.
|
|
|
|
|
2013-09-25 19:50:05 +02:00
|
|
|
config NET_DUMPPACKET
|
|
|
|
bool "Enable packet dumping"
|
2016-06-11 22:14:08 +02:00
|
|
|
depends on DEBUG_FEATURES
|
2013-09-25 19:50:05 +02:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Some Ethernet MAC drivers supporting dumping of received and
|
|
|
|
transmitted packets as a debug option. This setting enables that
|
2016-06-11 22:14:08 +02:00
|
|
|
debug option. Also needs CONFIG_DEBUG_FEATURES.
|
2013-09-25 19:50:05 +02:00
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
comment "External Ethernet MAC Device Support"
|
|
|
|
|
2015-08-06 22:32:12 +02:00
|
|
|
menuconfig NET_DM90x0
|
2012-04-13 16:27:44 +02:00
|
|
|
bool "Davicom dm9000/dm9010 support"
|
|
|
|
default n
|
2015-11-26 19:08:09 +01:00
|
|
|
select ARCH_HAVE_NETDEV_STATISTICS
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
References: Davicom data sheets (DM9000-DS-F03-041906.pdf,
|
|
|
|
DM9010-DS-F01-103006.pdf) and looking at lots of other DM90x0
|
|
|
|
drivers.
|
|
|
|
|
2014-03-05 19:16:02 +01:00
|
|
|
if NET_DM90x0
|
|
|
|
|
|
|
|
config DM9X_BASE
|
|
|
|
hex "DM90x0 base address"
|
|
|
|
default 0x0
|
|
|
|
|
|
|
|
config DM9X_IRQ
|
|
|
|
int "DM90x0 IRQ number"
|
|
|
|
default 0
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "DM90x0 bus width"
|
|
|
|
default DM9X_BUSWIDTH16
|
|
|
|
|
|
|
|
config DM9X_BUSWIDTH8
|
|
|
|
bool "8-bits"
|
|
|
|
|
|
|
|
config DM9X_BUSWIDTH16
|
|
|
|
bool "16-bits"
|
|
|
|
|
|
|
|
config DM9X_BUSWIDTH32
|
|
|
|
bool "32-bits"
|
|
|
|
|
|
|
|
endchoice # DM90x0 bus width
|
|
|
|
|
|
|
|
config DM9X_CHECKSUM
|
|
|
|
bool "Checksum enable"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config DM9X_ETRANS
|
|
|
|
bool "TX poll"
|
|
|
|
default n
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "DM90x0 mode"
|
|
|
|
default DM9X_MODE_AUTO
|
|
|
|
|
|
|
|
config DM9X_MODE_AUTO
|
2018-07-09 02:24:45 +02:00
|
|
|
bool "Autonegotiation"
|
2014-03-05 19:16:02 +01:00
|
|
|
|
|
|
|
config DM9X_MODE_10MHD
|
|
|
|
bool "10BaseT half duplex"
|
|
|
|
|
|
|
|
config DM9X_MODE_10MFD
|
|
|
|
bool "10BaseT full duplex"
|
|
|
|
|
|
|
|
config DM9X_MODE_100MHD
|
|
|
|
bool "100BaseT half duplex"
|
|
|
|
|
|
|
|
config DM9X_MODE_100MFD
|
|
|
|
bool "100BaseT full duplex"
|
|
|
|
|
|
|
|
endchoice # DM90x0 mode
|
|
|
|
|
|
|
|
config DM9X_NINTERFACES
|
2018-07-09 02:24:45 +02:00
|
|
|
int "Number of DM90x0 interfaces"
|
2014-03-05 19:16:02 +01:00
|
|
|
default 1
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
|
2015-11-26 19:08:09 +01:00
|
|
|
endif # NET_DM90x0
|
2014-03-05 19:16:02 +01:00
|
|
|
|
2015-08-06 22:32:12 +02:00
|
|
|
menuconfig ENC28J60
|
2012-04-13 16:27:44 +02:00
|
|
|
bool "Microchip ENC28J60 support"
|
|
|
|
default n
|
|
|
|
select SPI
|
2015-11-26 19:08:09 +01:00
|
|
|
select ARCH_HAVE_NETDEV_STATISTICS
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
References:
|
|
|
|
ENC28J60 Data Sheet, Stand-Alone Ethernet Controller with SPI Interface,
|
|
|
|
DS39662C, 2008 Microchip Technology Inc.
|
2012-09-17 20:35:37 +02:00
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
if ENC28J60
|
2015-08-06 22:32:12 +02:00
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
config ENC28J60_NINTERFACES
|
|
|
|
int "Number of physical ENC28J60"
|
|
|
|
default 1
|
2017-10-06 23:14:09 +02:00
|
|
|
range 1 1
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
Specifies the number of physical ENC28J60
|
|
|
|
devices that will be supported.
|
|
|
|
|
|
|
|
config ENC28J60_SPIMODE
|
|
|
|
int "SPI mode"
|
2012-09-12 16:07:13 +02:00
|
|
|
default 0
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
2012-09-12 16:07:13 +02:00
|
|
|
Controls the SPI mode. The ENC28J60 spec says that it supports SPI
|
|
|
|
mode 0,0 only: "The implementation used on this device supports SPI
|
|
|
|
mode 0,0 only. In addition, the SPI port requires that SCK be at Idle
|
|
|
|
in a low state; selectable clock polarity is not supported."
|
|
|
|
However, sometimes you need to tinker with these things.
|
2012-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
config ENC28J60_FREQUENCY
|
|
|
|
int "SPI frequency"
|
|
|
|
default 20000000
|
|
|
|
---help---
|
|
|
|
Define to use a different bus frequency
|
|
|
|
|
|
|
|
config ENC28J60_HALFDUPPLEX
|
|
|
|
bool "Enable half dupplex"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Default is full duplex
|
2012-09-17 20:35:37 +02:00
|
|
|
|
|
|
|
config ENC28J60_DUMPPACKET
|
|
|
|
bool "Dump Packets"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
If selected, the ENC28J60 driver will dump the contents of each
|
|
|
|
packet to the console.
|
|
|
|
|
2012-09-18 01:02:58 +02:00
|
|
|
config ENC28J60_REGDEBUG
|
|
|
|
bool "Register-Level Debug"
|
|
|
|
default n
|
2016-06-11 22:14:08 +02:00
|
|
|
depends on DEBUG_FEATURES && DEBUG_NET
|
2012-09-18 01:02:58 +02:00
|
|
|
---help---
|
2016-06-11 22:14:08 +02:00
|
|
|
Enable very low-level register access debug. Depends on
|
|
|
|
CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_NET.
|
2012-09-18 01:02:58 +02:00
|
|
|
|
2015-08-06 22:32:12 +02:00
|
|
|
endif # ENC28J60
|
2012-09-18 01:02:58 +02:00
|
|
|
|
2015-08-06 22:32:12 +02:00
|
|
|
menuconfig ENCX24J600
|
2013-08-25 19:21:54 +02:00
|
|
|
bool "Microchip ENCX24J600 support"
|
|
|
|
default n
|
|
|
|
select SPI
|
2015-11-26 19:08:09 +01:00
|
|
|
select ARCH_HAVE_NETDEV_STATISTICS
|
2013-08-25 19:21:54 +02:00
|
|
|
---help---
|
|
|
|
References:
|
|
|
|
ENC424J600/624J600 Data Sheet Stand-Alone 10/100 Ethernet Controller
|
|
|
|
with SPI or Parallel Interface DS39935B, 2009 Microchip Technology Inc.
|
|
|
|
|
|
|
|
if ENCX24J600
|
2015-08-06 22:32:12 +02:00
|
|
|
|
2022-08-04 19:47:53 +02:00
|
|
|
config ENCX24J600_NINTERFACES
|
2013-08-25 19:21:54 +02:00
|
|
|
int "Number of physical ENCX24J600"
|
|
|
|
default 1
|
2017-10-06 23:14:09 +02:00
|
|
|
range 1 1
|
2013-08-25 19:21:54 +02:00
|
|
|
---help---
|
|
|
|
Specifies the number of physical ENCX24J600
|
|
|
|
devices that will be supported.
|
|
|
|
|
|
|
|
config ENCX24J600_SPIMODE
|
|
|
|
int "SPI mode"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
Controls the SPI mode. The ENCX24J600 spec says that it supports SPI
|
|
|
|
mode 0,0 only: "The implementation used on this device supports SPI
|
|
|
|
mode 0,0 only. In addition, the SPI port requires that SCK be at Idle
|
|
|
|
in a low state; selectable clock polarity is not supported."
|
|
|
|
However, sometimes you need to tinker with these things.
|
|
|
|
|
|
|
|
config ENCX24J600_FREQUENCY
|
|
|
|
int "SPI frequency"
|
|
|
|
default 14000000
|
|
|
|
---help---
|
|
|
|
Define to use a different bus frequency
|
|
|
|
|
2013-10-11 18:57:58 +02:00
|
|
|
config ENCX24J600_NRXDESCR
|
2013-09-24 17:03:16 +02:00
|
|
|
int "Descriptor Count"
|
2013-10-11 18:57:58 +02:00
|
|
|
default 8
|
2013-09-24 17:03:16 +02:00
|
|
|
---help---
|
|
|
|
Defines how many descriptors are preallocated for the
|
|
|
|
transmission and reception queues.
|
|
|
|
The ENC has a relative large packet buffer of 24kB which can
|
2020-02-23 09:50:23 +01:00
|
|
|
be used to buffer multiple packets simultaneously
|
2013-09-24 17:03:16 +02:00
|
|
|
|
2013-08-25 19:21:54 +02:00
|
|
|
config ENCX24J600_DUMPPACKET
|
|
|
|
bool "Dump Packets"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
If selected, the ENCX24J600 driver will dump the contents of each
|
|
|
|
packet to the console.
|
|
|
|
|
|
|
|
config ENCX24J600_REGDEBUG
|
|
|
|
bool "Register-Level Debug"
|
|
|
|
default n
|
2016-06-11 22:14:08 +02:00
|
|
|
depends on DEBUG_FEATURES && DEBUG_NET
|
2013-08-25 19:21:54 +02:00
|
|
|
---help---
|
2016-06-11 22:14:08 +02:00
|
|
|
Enable very low-level register access debug. Depends on
|
|
|
|
CONFIG_DEBUG_FEATURES and CONFIG_DEBUG_NET.
|
2013-08-25 19:21:54 +02:00
|
|
|
|
2015-08-06 22:32:12 +02:00
|
|
|
endif # ENCX24J600
|
2013-08-25 19:21:54 +02:00
|
|
|
|
2015-08-06 22:32:12 +02:00
|
|
|
menuconfig NET_FTMAC100
|
2015-07-29 23:57:58 +02:00
|
|
|
bool "Faraday 10/100 Ethernet"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Faraday 10/100 Ethernet support.
|
|
|
|
|
|
|
|
if NET_FTMAC100
|
|
|
|
|
|
|
|
config FTMAC100_BASE
|
|
|
|
hex "FTMAC100 base address"
|
|
|
|
default 0x0
|
|
|
|
|
|
|
|
config FTMAC100_IRQ
|
|
|
|
int "FTMAC100 IRQ number"
|
|
|
|
default 0
|
|
|
|
|
|
|
|
config FTMAC100_RX_DESC
|
|
|
|
int "Number of RX descriptors"
|
|
|
|
default 64
|
|
|
|
|
|
|
|
config FTMAC100_TX_DESC
|
|
|
|
int "Number of TX descriptors"
|
|
|
|
default 32
|
|
|
|
|
|
|
|
config FTMAC100_MAC0_ENV_ADDR
|
|
|
|
hex "MAC0 address location"
|
|
|
|
default 0
|
|
|
|
|
|
|
|
endif # NET_FTMAC100
|
|
|
|
|
2018-08-24 19:07:07 +02:00
|
|
|
menuconfig NET_LAN91C111
|
|
|
|
bool "Microchip LAN91C111 Support"
|
|
|
|
select ARCH_HAVE_NETDEV_STATISTICS
|
|
|
|
---help---
|
|
|
|
References:
|
|
|
|
LAN91C111 Data Sheet, 10/100 Non-PCI Ethernet Single Chip MAC + PHY
|
|
|
|
DS00002276A, 2016 Microchip Technology Inc.
|
|
|
|
|
|
|
|
if NET_LAN91C111
|
|
|
|
endif # NET_LAN91C111
|
|
|
|
|
2022-10-07 01:57:38 +02:00
|
|
|
menuconfig NET_SKELETON
|
|
|
|
bool "Skeleton network support"
|
|
|
|
default n
|
|
|
|
select ARCH_HAVE_NETDEV_STATISTICS
|
|
|
|
---help---
|
|
|
|
NuttX skeleton network driver
|
|
|
|
|
|
|
|
if NET_SKELETON
|
|
|
|
config NET_SKELETON_IRQ
|
|
|
|
int "Skeleton IRQ number"
|
|
|
|
default 0
|
|
|
|
|
|
|
|
config NET_SKELETON_NINTERFACES
|
|
|
|
int "Number of physical skeleton devices"
|
|
|
|
default 1
|
|
|
|
endif
|
|
|
|
|
2022-05-31 12:46:49 +02:00
|
|
|
menuconfig NET_W5500
|
|
|
|
bool "WIZnet W5500 Support"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
select ARCH_HAVE_NETDEV_STATISTICS
|
|
|
|
---help---
|
|
|
|
References:
|
|
|
|
W5500 Datasheet, Version 1.0.9, 2013 WIZnet Co., Ltd.
|
|
|
|
|
2023-12-19 14:20:48 +01:00
|
|
|
if NET_W5500
|
|
|
|
|
|
|
|
config NET_W5500_NINTERFACES
|
|
|
|
int "Number of physical W5500 devices"
|
|
|
|
default 1
|
|
|
|
range 1 1
|
|
|
|
---help---
|
|
|
|
Specifies the number of physical WIZnet W5500
|
|
|
|
devices that will be supported.
|
|
|
|
|
|
|
|
endif # W5500
|
|
|
|
|
2023-08-31 13:28:59 +02:00
|
|
|
config NET_KSZ9477
|
|
|
|
bool "Management interface for ksz9477 ethernet switch"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Support for Microchip/Micrel KSZ9477 managed switch. To use this,
|
|
|
|
one must also select the management interface (I2C / SPI) and
|
|
|
|
call the driver's init from board initialization code or from the
|
|
|
|
ethernet driver.
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Management bus for the kzs9477 switch"
|
|
|
|
default NET_KSZ9477_I2C
|
|
|
|
depends on NET_KSZ9477
|
|
|
|
---help---
|
|
|
|
Select the used management interface
|
|
|
|
|
|
|
|
config NET_KSZ9477_I2C
|
|
|
|
bool "Use I2C management interface"
|
|
|
|
|
|
|
|
config NET_KSZ9477_SPI
|
|
|
|
bool "Use SPI management interface"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2023-12-19 14:20:48 +01:00
|
|
|
config NET_KSZ9477_PORT_VLAN
|
|
|
|
bool "Use simple port-based VLAN configuration by default"
|
|
|
|
depends on NET_KSZ9477
|
|
|
|
default n
|
2022-05-31 12:46:49 +02:00
|
|
|
---help---
|
2023-12-19 14:20:48 +01:00
|
|
|
Set connections between switch ports by default at switch init.
|
|
|
|
For each port, set a bit mask indicating to which ports it is allowed
|
|
|
|
to forward packets. Bit 0 is for PHY1 port, bit 1 for PHY2 port etc.
|
|
|
|
|
|
|
|
config NET_KSZ9477_PORT_VLAN_PHY1
|
|
|
|
hex "Bitmask for PHY1 port connections"
|
|
|
|
depends on NET_KSZ9477_PORT_VLAN
|
|
|
|
default 0x1f
|
|
|
|
|
|
|
|
config NET_KSZ9477_PORT_VLAN_PHY2
|
|
|
|
hex "Bitmask for PHY2 port connections"
|
|
|
|
depends on NET_KSZ9477_PORT_VLAN
|
|
|
|
default 0x1f
|
|
|
|
|
|
|
|
config NET_KSZ9477_PORT_VLAN_PHY3
|
|
|
|
hex "Bitmask for PHY3 port connections"
|
|
|
|
depends on NET_KSZ9477_PORT_VLAN
|
|
|
|
default 0x1f
|
|
|
|
|
|
|
|
config NET_KSZ9477_PORT_VLAN_PHY4
|
|
|
|
hex "Bitmask for PHY4 port connections"
|
|
|
|
depends on NET_KSZ9477_PORT_VLAN
|
|
|
|
default 0x1f
|
|
|
|
|
|
|
|
config NET_KSZ9477_PORT_VLAN_PHY5
|
|
|
|
hex "Bitmask for PHY4 port connections"
|
|
|
|
depends on NET_KSZ9477_PORT_VLAN
|
|
|
|
default 0x1f
|
|
|
|
|
|
|
|
config NET_KSZ9477_PORT_VLAN_RMII
|
|
|
|
hex "Bitmask for RMII port connections"
|
|
|
|
depends on NET_KSZ9477_PORT_VLAN
|
|
|
|
default 0x1f
|
|
|
|
|
|
|
|
config NET_KSZ9477_PORT_VLAN_SGMII
|
|
|
|
hex "Bitmask for SGMII port connections"
|
|
|
|
depends on NET_KSZ9477_PORT_VLAN
|
|
|
|
default 0x1f
|
2022-05-31 12:46:49 +02:00
|
|
|
|
2024-06-25 07:44:03 +02:00
|
|
|
config NET_KSZ9477_PORT_SNIFF
|
|
|
|
bool "Enable support for the port mirroring and snooping"
|
|
|
|
depends on NET_KSZ9477
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enables possibility to set rx/tx mirroring and sniffer port.
|
|
|
|
All the packets received on port A and/or transmitted on port B
|
|
|
|
can be mirrored on the sniffer port.
|
|
|
|
|
2023-10-26 10:42:51 +02:00
|
|
|
menuconfig NET_LAN9250
|
|
|
|
bool "Microchip LAN9250 support"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
select ARCH_HAVE_NETDEV_STATISTICS
|
|
|
|
---help---
|
|
|
|
Enable LAN9250 SPI Ethernet driver.
|
|
|
|
|
|
|
|
if NET_LAN9250
|
|
|
|
|
|
|
|
choice LAN9250_INTERFACE
|
|
|
|
prompt "Select interface"
|
|
|
|
default LAN9250_SPI
|
|
|
|
---help---
|
|
|
|
Select LAN9250 interface: SPI(4-line) or SQI(6-line).
|
|
|
|
|
|
|
|
config LAN9250_SPI
|
|
|
|
bool "SPI"
|
|
|
|
|
|
|
|
config LAN9250_SQI
|
|
|
|
bool "SQI"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config LAN9250_SPI_EXCLUSIVE
|
|
|
|
bool "SPI Exclusive"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
The SPI is exclusive for LAN9250.
|
|
|
|
|
|
|
|
config LAN9250_SPIMODE
|
|
|
|
int "SPI mode"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
Controls the SPI mode.
|
|
|
|
|
|
|
|
config LAN9250_FREQUENCY
|
|
|
|
int "SPI frequency"
|
|
|
|
default 10000000
|
|
|
|
---help---
|
|
|
|
Define to use a different bus frequency.
|
|
|
|
|
|
|
|
config LAN9250_HALFDUPPLEX
|
|
|
|
bool "Enable half duplex"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Default is full duplex.
|
|
|
|
|
|
|
|
config LAN9250_DUMPPACKET
|
|
|
|
bool "Dump Packets"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
If selected, the LAN9250 driver will dump the contents of each
|
|
|
|
packet to the console.
|
|
|
|
|
|
|
|
config LAN9250_REGDEBUG
|
|
|
|
bool "Register-Level Debug"
|
|
|
|
default n
|
|
|
|
depends on DEBUG_FEATURES && DEBUG_NET
|
|
|
|
---help---
|
|
|
|
Enable very low-level register access debug.
|
|
|
|
|
|
|
|
endif # NET_LAN9250
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
if ARCH_HAVE_PHY
|
|
|
|
|
|
|
|
comment "External Ethernet PHY Device Support"
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Board PHY Selection (ETH0)"
|
|
|
|
default ETH0_PHY_NONE
|
|
|
|
---help---
|
|
|
|
Identify the PHY on your board. This setting is not used by all Ethernet
|
|
|
|
drivers nor do all Ethernet drivers support all PHYs.
|
|
|
|
|
|
|
|
config ETH0_PHY_NONE
|
|
|
|
bool "No PHY support"
|
|
|
|
|
net:Add support for multi PHY
Support runtime phy selection based on a list
supplied by board.h
For Example:
#define BOARD_ETH0_PHY_LIST \
{ \
"LAN8742A", \
MII_PHYID1_LAN8742A, \
MII_PHYID2_LAN8742A, \
MII_LAN8740_SCSR, \
0, \
0xffff, \
MII_LAN8720_SPSCR_10MBPS, \
MII_LAN8720_SPSCR_100MBPS, \
MII_LAN8720_SPSCR_DUPLEX, \
22, \
}, \
{ \
"TJA1103", \
MII_PHYID1_TJA1103, \
MII_PHYID2_TJA1103, \
0xffff, \
18, \
0xffff, \
0, \
MII_LAN8720_SPSCR_100MBPS, \
MII_LAN8720_SPSCR_DUPLEX, \
45, \
}, \
2024-01-03 21:10:22 +01:00
|
|
|
config ETH0_PHY_MULTI
|
|
|
|
bool "Multiple PHYs are supported"
|
|
|
|
---help---
|
|
|
|
The Board will provide a list of PHYs to probe for.
|
|
|
|
The first one found on the bpard will be used.
|
|
|
|
This setting is not supported by all Ethernet drivers.
|
|
|
|
|
2014-03-03 18:40:29 +01:00
|
|
|
config ETH0_PHY_AM79C874
|
|
|
|
bool "AMD Am79C874 PHY"
|
|
|
|
|
2023-04-17 03:27:03 +02:00
|
|
|
config ETH0_PHY_AR8031
|
|
|
|
bool "Atheros AR8031 PHY"
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
config ETH0_PHY_KS8721
|
|
|
|
bool "Micrel KS8721 PHY"
|
|
|
|
|
2015-06-04 01:34:36 +02:00
|
|
|
config ETH0_PHY_KSZ8041
|
|
|
|
bool "Micrel KSZ8041 PHY"
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
config ETH0_PHY_KSZ8051
|
|
|
|
bool "Micrel KSZ8051 PHY"
|
|
|
|
|
2015-03-16 20:51:37 +01:00
|
|
|
config ETH0_PHY_KSZ8061
|
|
|
|
bool "Micrel KSZ8061 PHY"
|
|
|
|
|
2014-06-11 20:23:31 +02:00
|
|
|
config ETH0_PHY_KSZ8081
|
|
|
|
bool "Micrel KSZ8081 PHY"
|
|
|
|
|
2013-09-26 23:55:21 +02:00
|
|
|
config ETH0_PHY_KSZ90x1
|
|
|
|
bool "Micrel KSZ9021/31 PHY"
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
config ETH0_PHY_DP83848C
|
2017-03-01 12:56:15 +01:00
|
|
|
bool "National Semiconductor DP83848C PHY"
|
2013-09-17 18:52:23 +02:00
|
|
|
|
2020-11-20 22:57:13 +01:00
|
|
|
config ETH0_PHY_DP83825I
|
|
|
|
bool "Texas Instruments DP83825I PHY"
|
|
|
|
|
2019-10-30 19:29:54 +01:00
|
|
|
config ETH0_PHY_TJA1100
|
|
|
|
bool "NXP TJA1100 PHY"
|
2020-02-07 10:04:48 +01:00
|
|
|
select ARCH_PHY_100BASE_T1
|
2020-02-09 01:55:41 +01:00
|
|
|
|
2020-02-07 10:04:48 +01:00
|
|
|
config ETH0_PHY_TJA1101
|
|
|
|
bool "NXP TJA1101 PHY"
|
|
|
|
select ARCH_PHY_100BASE_T1
|
2019-10-30 19:29:54 +01:00
|
|
|
|
2022-11-04 19:39:39 +01:00
|
|
|
config ETH0_PHY_TJA1103
|
|
|
|
bool "NXP TJA1103 PHY"
|
|
|
|
select ARCH_PHY_100BASE_T1
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
config ETH0_PHY_LAN8720
|
|
|
|
bool "SMSC LAN8720 PHY"
|
|
|
|
|
2015-03-23 22:34:10 +01:00
|
|
|
config ETH0_PHY_LAN8740
|
|
|
|
bool "SMSC LAN8740 PHY"
|
|
|
|
|
2015-03-29 15:05:30 +02:00
|
|
|
config ETH0_PHY_LAN8740A
|
|
|
|
bool "SMSC LAN8740A PHY"
|
|
|
|
|
2015-07-19 21:09:48 +02:00
|
|
|
config ETH0_PHY_LAN8742A
|
|
|
|
bool "SMSC LAN8742A PHY"
|
|
|
|
|
2024-04-23 15:31:52 +02:00
|
|
|
config ETH0_PHY_RTL8211F
|
|
|
|
bool "Realtek RTL8211F PHY"
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
config ETH0_PHY_DM9161
|
|
|
|
bool "Davicom DM9161 PHY"
|
|
|
|
|
2023-06-08 09:44:02 +02:00
|
|
|
config ETH0_PHY_YT8512
|
|
|
|
bool "Motorcomm YT8512 PHY"
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Board PHY Selection (ETH1)"
|
|
|
|
default ETH1_PHY_NONE
|
|
|
|
---help---
|
|
|
|
Identify the PHY on your board. This setting is not used by all Ethernet
|
|
|
|
drivers nor do all Ethernet drivers support all PHYs.
|
|
|
|
|
|
|
|
config ETH1_PHY_NONE
|
|
|
|
bool "No PHY support"
|
|
|
|
|
2014-03-03 18:40:29 +01:00
|
|
|
config ETH1_PHY_AM79C874
|
2019-10-06 05:39:12 +02:00
|
|
|
bool "AMD Am79C874 PHY"
|
2014-03-03 18:40:29 +01:00
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
config ETH1_PHY_KS8721
|
|
|
|
bool "Micrel KS8721 PHY"
|
|
|
|
|
2015-06-04 01:34:36 +02:00
|
|
|
config ETH1_PHY_KSZ8041
|
|
|
|
bool "Micrel KSZ8041 PHY"
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
config ETH1_PHY_KSZ8051
|
|
|
|
bool "Micrel KSZ8051 PHY"
|
|
|
|
|
2014-06-11 20:23:31 +02:00
|
|
|
config ETH1_PHY_KSZ8081
|
|
|
|
bool "Micrel KSZ8081 PHY"
|
|
|
|
|
2013-09-26 23:55:21 +02:00
|
|
|
config ETH1_PHY_KSZ90x1
|
|
|
|
bool "Micrel KSZ9021/31 PHY"
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
config ETH1_PHY_DP83848C
|
2017-03-01 12:56:15 +01:00
|
|
|
bool "National Semiconductor DP83848C PHY"
|
2013-09-17 18:52:23 +02:00
|
|
|
|
2020-11-20 22:57:13 +01:00
|
|
|
config ETH1_PHY_DP83825I
|
|
|
|
bool "Texas Instruments DP83825I PHY"
|
|
|
|
|
2019-10-30 19:29:54 +01:00
|
|
|
config ETH1_PHY_TJA1100
|
|
|
|
bool "NXP TJA1100 PHY"
|
2020-02-07 10:04:48 +01:00
|
|
|
select ARCH_PHY_100BASE_T1
|
2020-02-09 01:55:41 +01:00
|
|
|
|
2020-02-07 10:04:48 +01:00
|
|
|
config ETH1_PHY_TJA1101
|
|
|
|
bool "NXP TJA1101 PHY"
|
|
|
|
select ARCH_PHY_100BASE_T1
|
2019-10-30 19:29:54 +01:00
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
config ETH1_PHY_LAN8720
|
|
|
|
bool "SMSC LAN8720 PHY"
|
|
|
|
|
2024-04-23 15:31:52 +02:00
|
|
|
config ETH1_PHY_RTL8211F
|
|
|
|
bool "Realtek RTL8211F PHY"
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
config ETH1_PHY_DM9161
|
|
|
|
bool "Davicom DM9161 PHY"
|
|
|
|
|
2023-06-08 09:44:02 +02:00
|
|
|
config ETH1_PHY_YT8512
|
|
|
|
bool "Motorcomm YT8512 PHY"
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
endchoice
|
2014-08-17 22:07:53 +02:00
|
|
|
|
2020-02-07 10:04:48 +01:00
|
|
|
config ARCH_PHY_100BASE_T1
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
if (ARCH_PHY_100BASE_T1)
|
2019-10-30 19:29:54 +01:00
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Automotive Ethernet 100BASE-T1 master/slave mode"
|
|
|
|
default PHY_100BASE_T1_SLAVE
|
2021-12-14 08:52:49 +01:00
|
|
|
---help---
|
2019-10-30 19:29:54 +01:00
|
|
|
Automotive Ethernet 100BASE-T1 requires the PHY to be configured
|
|
|
|
in either master or slave mode.
|
|
|
|
|
|
|
|
config PHY_100BASE_T1_MASTER
|
|
|
|
bool "Master"
|
|
|
|
|
|
|
|
config PHY_100BASE_T1_SLAVE
|
|
|
|
bool "Slave"
|
|
|
|
|
|
|
|
endchoice # 100BASE-T1 master/slave mode
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2014-08-17 22:07:53 +02:00
|
|
|
config NETDEV_PHY_DEBUG
|
|
|
|
bool "PHY debug"
|
|
|
|
default n
|
2016-06-11 22:14:08 +02:00
|
|
|
depends on DEBUG_FEATURES
|
2014-08-17 22:07:53 +02:00
|
|
|
---help---
|
|
|
|
Normally debug output is controlled by DEBUG_NET. However, that
|
2016-06-11 19:50:18 +02:00
|
|
|
may generate a LOT of debug output, especially if CONFIG_DEBUG_INFO is
|
2014-08-17 22:07:53 +02:00
|
|
|
also selected. This option is intended to force VERVOSE debug
|
2016-06-11 19:50:18 +02:00
|
|
|
output from certain PHY-related even if DEBUG_NET or CONFIG_DEBUG_INFO
|
2014-08-17 22:07:53 +02:00
|
|
|
are not selected. This allows for focused, unit-level debug of
|
|
|
|
the NSH network initialization logic.
|
|
|
|
|
2013-09-17 18:52:23 +02:00
|
|
|
endif # ARCH_HAVE_PHY
|
2020-02-08 08:30:09 +01:00
|
|
|
|
2023-10-23 08:06:12 +02:00
|
|
|
config DRIVERS_WIFI_SIM
|
|
|
|
bool "WiFi SIM support"
|
|
|
|
depends on NETDEV_WIRELESS_IOCTL
|
|
|
|
default n
|
|
|
|
|
|
|
|
config WIFI_SIM_CONFDIR
|
|
|
|
string "Virt WiFi configuration directory"
|
|
|
|
default "/etc/wifi"
|
|
|
|
depends on DRIVERS_WIFI_SIM
|
|
|
|
---help---
|
|
|
|
Provides the full path to location in the file system where WiFi-SIM
|
|
|
|
BSS configuration will be accessed. This is a string and should not
|
|
|
|
include any trailing '/'.
|
|
|
|
|
2024-03-28 13:14:10 +01:00
|
|
|
config WIFI_SIM_NUMBER
|
|
|
|
int "Number of Simulated WiFi Device"
|
|
|
|
default 0
|
|
|
|
depends on DRIVERS_WIFI_SIM
|
|
|
|
---help---
|
|
|
|
The number of simulated wifi network devices.
|
|
|
|
|
2024-04-02 18:23:59 +02:00
|
|
|
menuconfig NET_E1000
|
|
|
|
bool "Intel E1000 support"
|
|
|
|
default n
|
|
|
|
depends on PCI
|
|
|
|
---help---
|
|
|
|
Enable E1000 PCI Ethernet driver.
|
|
|
|
|
|
|
|
if NET_E1000
|
|
|
|
|
|
|
|
config NET_E1000_RXSPARE
|
|
|
|
int "Intel E1000 spare RX buffers"
|
|
|
|
default 8
|
|
|
|
|
|
|
|
config NET_E1000_I219
|
|
|
|
bool "Intel I219"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable Intel I219 Ethernet driver.
|
|
|
|
|
|
|
|
config NET_E1000_82540EM
|
|
|
|
bool "Intel 82540EM"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable Intel 82540EM Ethernet driver (-device e1000 on QEMU).
|
|
|
|
|
|
|
|
config NET_E1000_82574L
|
|
|
|
bool "Intel 82574L"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable Intel 82574L Ethernet driver (-device e1000e on QEMU).
|
|
|
|
|
|
|
|
endif # NET_E1000
|
|
|
|
|
2024-09-12 12:31:22 +02:00
|
|
|
menuconfig NET_IGC
|
|
|
|
bool "Intel IGC support"
|
|
|
|
default n
|
|
|
|
depends on PCI && PCI_MSIX
|
|
|
|
---help---
|
|
|
|
Enable IGC PCI Ethernet driver.
|
|
|
|
|
|
|
|
if NET_IGC
|
|
|
|
|
|
|
|
config NET_IGC_RXSPARE
|
|
|
|
int "Intel IGC spare RX buffers"
|
|
|
|
default 8
|
|
|
|
|
|
|
|
config NET_IGC_I225LM
|
|
|
|
bool "Intel I225LM"
|
|
|
|
default n
|
|
|
|
|
|
|
|
endif # NET_IGC
|
|
|
|
|
2020-02-08 08:30:09 +01:00
|
|
|
endif # NETDEVICES
|