1# SPDX-License-Identifier: GPL-2.0-only
2#
3# WIZnet devices configuration
4#
5
6config NET_VENDOR_WIZNET
7	bool "WIZnet devices"
8	depends on HAS_IOMEM
9	default y
10	---help---
11	  If you have a network (Ethernet) card belonging to this class, say Y.
12
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
20config WIZNET_W5100
21	tristate "WIZnet W5100 Ethernet support"
22	depends on HAS_IOMEM
23	---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
33config WIZNET_W5300
34	tristate "WIZnet W5300 Ethernet support"
35	depends on HAS_IOMEM
36	---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"
48	depends on WIZNET_W5100 || WIZNET_W5300
49	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
73config WIZNET_W5100_SPI
74	tristate "WIZnet W5100/W5200/W5500 Ethernet support for SPI mode"
75	depends on WIZNET_BUS_ANY && WIZNET_W5100
76	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
87endif # NET_VENDOR_WIZNET
88