xref: /openbmc/linux/drivers/net/ethernet/wiznet/Kconfig (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
29899b81eSMike Sinkovsky#
39899b81eSMike Sinkovsky# WIZnet devices configuration
49899b81eSMike Sinkovsky#
59899b81eSMike Sinkovsky
69899b81eSMike Sinkovskyconfig NET_VENDOR_WIZNET
79899b81eSMike Sinkovsky	bool "WIZnet devices"
89fafbd4dSfrank.blaschka@de.ibm.com	depends on HAS_IOMEM
99899b81eSMike Sinkovsky	default y
10*a7f7f624SMasahiro Yamada	help
11138b15edSPaul Gortmaker	  If you have a network (Ethernet) card belonging to this class, say Y.
129899b81eSMike Sinkovsky
139899b81eSMike Sinkovsky	  Note that the answer to this question doesn't directly affect the
149899b81eSMike Sinkovsky	  kernel: saying N will just cause the configurator to skip all
159899b81eSMike Sinkovsky	  the questions about WIZnet devices. If you say Y, you will be asked
169899b81eSMike Sinkovsky	  for your specific card in the following questions.
179899b81eSMike Sinkovsky
189899b81eSMike Sinkovskyif NET_VENDOR_WIZNET
199899b81eSMike Sinkovsky
208b1467a3SMike Sinkovskyconfig WIZNET_W5100
218b1467a3SMike Sinkovsky	tristate "WIZnet W5100 Ethernet support"
2232ed53b8SDavid S. Miller	depends on HAS_IOMEM
23*a7f7f624SMasahiro Yamada	help
248b1467a3SMike Sinkovsky	  Support for WIZnet W5100 chips.
258b1467a3SMike Sinkovsky
268b1467a3SMike Sinkovsky	  W5100 is a single chip with integrated 10/100 Ethernet MAC,
278b1467a3SMike Sinkovsky	  PHY and hardware TCP/IP stack, but this driver is limited to
288b1467a3SMike Sinkovsky	  the MAC and PHY functions only, onchip TCP/IP is unused.
298b1467a3SMike Sinkovsky
308b1467a3SMike Sinkovsky	  To compile this driver as a module, choose M here: the module
318b1467a3SMike Sinkovsky	  will be called w5100.
328b1467a3SMike Sinkovsky
339899b81eSMike Sinkovskyconfig WIZNET_W5300
349899b81eSMike Sinkovsky	tristate "WIZnet W5300 Ethernet support"
3532ed53b8SDavid S. Miller	depends on HAS_IOMEM
36*a7f7f624SMasahiro Yamada	help
379899b81eSMike Sinkovsky	  Support for WIZnet W5300 chips.
389899b81eSMike Sinkovsky
399899b81eSMike Sinkovsky	  W5300 is a single chip with integrated 10/100 Ethernet MAC,
409899b81eSMike Sinkovsky	  PHY and hardware TCP/IP stack, but this driver is limited to
419899b81eSMike Sinkovsky	  the MAC and PHY functions only, onchip TCP/IP is unused.
429899b81eSMike Sinkovsky
439899b81eSMike Sinkovsky	  To compile this driver as a module, choose M here: the module
449899b81eSMike Sinkovsky	  will be called w5300.
459899b81eSMike Sinkovsky
469899b81eSMike Sinkovskychoice
479899b81eSMike Sinkovsky	prompt "WIZnet interface mode"
4832ed53b8SDavid S. Miller	depends on WIZNET_W5100 || WIZNET_W5300
499899b81eSMike Sinkovsky	default WIZNET_BUS_ANY
509899b81eSMike Sinkovsky
519899b81eSMike Sinkovskyconfig WIZNET_BUS_DIRECT
529899b81eSMike Sinkovsky	bool "Direct address bus mode"
53*a7f7f624SMasahiro Yamada	help
549899b81eSMike Sinkovsky	  In direct address mode host system can directly access all registers
559899b81eSMike Sinkovsky	  after mapping to Memory-Mapped I/O space.
569899b81eSMike Sinkovsky
579899b81eSMike Sinkovskyconfig WIZNET_BUS_INDIRECT
589899b81eSMike Sinkovsky	bool "Indirect address bus mode"
59*a7f7f624SMasahiro Yamada	help
609899b81eSMike Sinkovsky	  In indirect address mode host system indirectly accesses registers
619899b81eSMike Sinkovsky	  using Indirect Mode Address Register and Indirect Mode Data Register,
629899b81eSMike Sinkovsky	  which are directly mapped to Memory-Mapped I/O space.
639899b81eSMike Sinkovsky
649899b81eSMike Sinkovskyconfig WIZNET_BUS_ANY
659899b81eSMike Sinkovsky	bool "Select interface mode in runtime"
66*a7f7f624SMasahiro Yamada	help
679899b81eSMike Sinkovsky	  If interface mode is unknown in compile time, it can be selected
689899b81eSMike Sinkovsky	  in runtime from board/platform resources configuration.
699899b81eSMike Sinkovsky
709899b81eSMike Sinkovsky	  Performance may decrease compared to explicitly selected bus mode.
719899b81eSMike Sinkovskyendchoice
729899b81eSMike Sinkovsky
73630cf097SAkinobu Mitaconfig WIZNET_W5100_SPI
7435ef7d68SAkinobu Mita	tristate "WIZnet W5100/W5200/W5500 Ethernet support for SPI mode"
75b67d1df5SArnd Bergmann	depends on WIZNET_BUS_ANY && WIZNET_W5100
76630cf097SAkinobu Mita	depends on SPI
77*a7f7f624SMasahiro Yamada	help
78630cf097SAkinobu Mita	  In SPI mode host system accesses registers using SPI protocol
79630cf097SAkinobu Mita	  (mode 0) on the SPI bus.
80630cf097SAkinobu Mita
81630cf097SAkinobu Mita	  Performance decreases compared to other bus interface mode.
82630cf097SAkinobu Mita	  In W5100 SPI mode, burst READ/WRITE processing are not provided.
83630cf097SAkinobu Mita
84630cf097SAkinobu Mita	  To compile this driver as a module, choose M here: the module
85630cf097SAkinobu Mita	  will be called w5100-spi.
86630cf097SAkinobu Mita
879899b81eSMike Sinkovskyendif # NET_VENDOR_WIZNET
88