Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only
0002 #
0003 # WIZnet devices configuration
0004 #
0005 
0006 config NET_VENDOR_WIZNET
0007         bool "WIZnet devices"
0008         depends on HAS_IOMEM
0009         default y
0010         help
0011           If you have a network (Ethernet) card belonging to this class, say Y.
0012 
0013           Note that the answer to this question doesn't directly affect the
0014           kernel: saying N will just cause the configurator to skip all
0015           the questions about WIZnet devices. If you say Y, you will be asked
0016           for your specific card in the following questions.
0017 
0018 if NET_VENDOR_WIZNET
0019 
0020 config WIZNET_W5100
0021         tristate "WIZnet W5100 Ethernet support"
0022         depends on HAS_IOMEM
0023         help
0024           Support for WIZnet W5100 chips.
0025 
0026           W5100 is a single chip with integrated 10/100 Ethernet MAC,
0027           PHY and hardware TCP/IP stack, but this driver is limited to
0028           the MAC and PHY functions only, onchip TCP/IP is unused.
0029 
0030           To compile this driver as a module, choose M here: the module
0031           will be called w5100.
0032 
0033 config WIZNET_W5300
0034         tristate "WIZnet W5300 Ethernet support"
0035         depends on HAS_IOMEM
0036         help
0037           Support for WIZnet W5300 chips.
0038 
0039           W5300 is a single chip with integrated 10/100 Ethernet MAC,
0040           PHY and hardware TCP/IP stack, but this driver is limited to
0041           the MAC and PHY functions only, onchip TCP/IP is unused.
0042 
0043           To compile this driver as a module, choose M here: the module
0044           will be called w5300.
0045 
0046 choice
0047         prompt "WIZnet interface mode"
0048         depends on WIZNET_W5100 || WIZNET_W5300
0049         default WIZNET_BUS_ANY
0050 
0051 config WIZNET_BUS_DIRECT
0052         bool "Direct address bus mode"
0053         help
0054           In direct address mode host system can directly access all registers
0055           after mapping to Memory-Mapped I/O space.
0056 
0057 config WIZNET_BUS_INDIRECT
0058         bool "Indirect address bus mode"
0059         help
0060           In indirect address mode host system indirectly accesses registers
0061           using Indirect Mode Address Register and Indirect Mode Data Register,
0062           which are directly mapped to Memory-Mapped I/O space.
0063 
0064 config WIZNET_BUS_ANY
0065         bool "Select interface mode in runtime"
0066         help
0067           If interface mode is unknown in compile time, it can be selected
0068           in runtime from board/platform resources configuration.
0069 
0070           Performance may decrease compared to explicitly selected bus mode.
0071 endchoice
0072 
0073 config WIZNET_W5100_SPI
0074         tristate "WIZnet W5100/W5200/W5500 Ethernet support for SPI mode"
0075         depends on WIZNET_BUS_ANY && WIZNET_W5100
0076         depends on SPI
0077         help
0078           In SPI mode host system accesses registers using SPI protocol
0079           (mode 0) on the SPI bus.
0080 
0081           Performance decreases compared to other bus interface mode.
0082           In W5100 SPI mode, burst READ/WRITE processing are not provided.
0083 
0084           To compile this driver as a module, choose M here: the module
0085           will be called w5100-spi.
0086 
0087 endif # NET_VENDOR_WIZNET