blob: 0422775e16592a1c9ccd1936f862ddb58f862d74 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Mike Sinkovsky9899b812012-04-04 19:33:53 +00002#
3# WIZnet devices configuration
4#
5
6config NET_VENDOR_WIZNET
7 bool "WIZnet devices"
frank.blaschka@de.ibm.com9fafbd42012-07-24 22:34:27 +00008 depends on HAS_IOMEM
Mike Sinkovsky9899b812012-04-04 19:33:53 +00009 default y
10 ---help---
Paul Gortmaker138b15e2015-06-21 16:28:02 -040011 If you have a network (Ethernet) card belonging to this class, say Y.
Mike Sinkovsky9899b812012-04-04 19:33:53 +000012
13 Note that the answer to this question doesn't directly affect the
14 kernel: saying N will just cause the configurator to skip all
15 the questions about WIZnet devices. If you say Y, you will be asked
16 for your specific card in the following questions.
17
18if NET_VENDOR_WIZNET
19
Mike Sinkovsky8b1467a2012-04-04 19:33:54 +000020config WIZNET_W5100
21 tristate "WIZnet W5100 Ethernet support"
David S. Miller32ed53b2012-04-10 09:25:46 -040022 depends on HAS_IOMEM
Mike Sinkovsky8b1467a2012-04-04 19:33:54 +000023 ---help---
24 Support for WIZnet W5100 chips.
25
26 W5100 is a single chip with integrated 10/100 Ethernet MAC,
27 PHY and hardware TCP/IP stack, but this driver is limited to
28 the MAC and PHY functions only, onchip TCP/IP is unused.
29
30 To compile this driver as a module, choose M here: the module
31 will be called w5100.
32
Mike Sinkovsky9899b812012-04-04 19:33:53 +000033config WIZNET_W5300
34 tristate "WIZnet W5300 Ethernet support"
David S. Miller32ed53b2012-04-10 09:25:46 -040035 depends on HAS_IOMEM
Mike Sinkovsky9899b812012-04-04 19:33:53 +000036 ---help---
37 Support for WIZnet W5300 chips.
38
39 W5300 is a single chip with integrated 10/100 Ethernet MAC,
40 PHY and hardware TCP/IP stack, but this driver is limited to
41 the MAC and PHY functions only, onchip TCP/IP is unused.
42
43 To compile this driver as a module, choose M here: the module
44 will be called w5300.
45
46choice
47 prompt "WIZnet interface mode"
David S. Miller32ed53b2012-04-10 09:25:46 -040048 depends on WIZNET_W5100 || WIZNET_W5300
Mike Sinkovsky9899b812012-04-04 19:33:53 +000049 default WIZNET_BUS_ANY
50
51config WIZNET_BUS_DIRECT
52 bool "Direct address bus mode"
53 ---help---
54 In direct address mode host system can directly access all registers
55 after mapping to Memory-Mapped I/O space.
56
57config WIZNET_BUS_INDIRECT
58 bool "Indirect address bus mode"
59 ---help---
60 In indirect address mode host system indirectly accesses registers
61 using Indirect Mode Address Register and Indirect Mode Data Register,
62 which are directly mapped to Memory-Mapped I/O space.
63
64config WIZNET_BUS_ANY
65 bool "Select interface mode in runtime"
66 ---help---
67 If interface mode is unknown in compile time, it can be selected
68 in runtime from board/platform resources configuration.
69
70 Performance may decrease compared to explicitly selected bus mode.
71endchoice
72
Akinobu Mita630cf092016-04-15 00:11:32 +090073config WIZNET_W5100_SPI
Akinobu Mita35ef7d62016-04-27 05:43:48 +090074 tristate "WIZnet W5100/W5200/W5500 Ethernet support for SPI mode"
Arnd Bergmannb67d1df2016-04-18 23:58:30 +020075 depends on WIZNET_BUS_ANY && WIZNET_W5100
Akinobu Mita630cf092016-04-15 00:11:32 +090076 depends on SPI
77 ---help---
78 In SPI mode host system accesses registers using SPI protocol
79 (mode 0) on the SPI bus.
80
81 Performance decreases compared to other bus interface mode.
82 In W5100 SPI mode, burst READ/WRITE processing are not provided.
83
84 To compile this driver as a module, choose M here: the module
85 will be called w5100-spi.
86
Mike Sinkovsky9899b812012-04-04 19:33:53 +000087endif # NET_VENDOR_WIZNET