aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-07-24 19:12:37 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-08-13 02:47:09 -0400
commit580416e6e4a886512ba692f245a9cb87f75afac7 (patch)
tree846fd01e43b5de123515bc2248260d51440eaf5b /drivers/net
parent1fe003fd4247edf0d1ccf32061b046b90492a954 (diff)
enc28j60: Move the Microchip driver
Move the Microchip driver into drivers/net/ethernet/microchip/ and make the necessary Kconfig and Makefile changes. CC: Claudio Lanconelli <lanconelli.claudio@eptar.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/Kconfig17
-rw-r--r--drivers/net/Makefile1
-rw-r--r--drivers/net/ethernet/Kconfig1
-rw-r--r--drivers/net/ethernet/Makefile1
-rw-r--r--drivers/net/ethernet/microchip/Kconfig37
-rw-r--r--drivers/net/ethernet/microchip/Makefile5
-rw-r--r--drivers/net/ethernet/microchip/enc28j60.c (renamed from drivers/net/enc28j60.c)0
-rw-r--r--drivers/net/ethernet/microchip/enc28j60_hw.h (renamed from drivers/net/enc28j60_hw.h)0
8 files changed, 44 insertions, 18 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 75ca0da52ea2..e83f559a2c46 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -274,23 +274,6 @@ config DM9000_FORCE_SIMPLE_PHY_POLL
274 costly MII PHY reads. Note, this will not work if the chip is 274 costly MII PHY reads. Note, this will not work if the chip is
275 operating with an external PHY. 275 operating with an external PHY.
276 276
277config ENC28J60
278 tristate "ENC28J60 support"
279 depends on EXPERIMENTAL && SPI && NET_ETHERNET
280 select CRC32
281 ---help---
282 Support for the Microchip EN28J60 ethernet chip.
283
284 To compile this driver as a module, choose M here. The module will be
285 called enc28j60.
286
287config ENC28J60_WRITEVERIFY
288 bool "Enable write verify"
289 depends on ENC28J60
290 ---help---
291 Enable the verify after the buffer write useful for debugging purpose.
292 If unsure, say N.
293
294config NET_PCI 277config NET_PCI
295 bool "EISA, VLB, PCI and on board controllers" 278 bool "EISA, VLB, PCI and on board controllers"
296 depends on ISA || EISA || PCI 279 depends on ISA || EISA || PCI
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index e2f1f554dd73..08ee56fc607e 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -53,7 +53,6 @@ obj-$(CONFIG_TUN) += tun.o
53obj-$(CONFIG_VETH) += veth.o 53obj-$(CONFIG_VETH) += veth.o
54obj-$(CONFIG_NET_NETX) += netx-eth.o 54obj-$(CONFIG_NET_NETX) += netx-eth.o
55obj-$(CONFIG_DM9000) += dm9000.o 55obj-$(CONFIG_DM9000) += dm9000.o
56obj-$(CONFIG_ENC28J60) += enc28j60.o
57 56
58obj-$(CONFIG_DEV_APPLETALK) += appletalk/ 57obj-$(CONFIG_DEV_APPLETALK) += appletalk/
59obj-$(CONFIG_ETHERNET) += ethernet/ 58obj-$(CONFIG_ETHERNET) += ethernet/
diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig
index 32561c71040d..0cec25cbf36b 100644
--- a/drivers/net/ethernet/Kconfig
+++ b/drivers/net/ethernet/Kconfig
@@ -78,6 +78,7 @@ config LANTIQ_ETOP
78source "drivers/net/ethernet/marvell/Kconfig" 78source "drivers/net/ethernet/marvell/Kconfig"
79source "drivers/net/ethernet/mellanox/Kconfig" 79source "drivers/net/ethernet/mellanox/Kconfig"
80source "drivers/net/ethernet/micrel/Kconfig" 80source "drivers/net/ethernet/micrel/Kconfig"
81source "drivers/net/ethernet/microchip/Kconfig"
81 82
82config MIPS_SIM_NET 83config MIPS_SIM_NET
83 tristate "MIPS simulator Network device" 84 tristate "MIPS simulator Network device"
diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile
index 94f1be8e822b..ebe8aee3f839 100644
--- a/drivers/net/ethernet/Makefile
+++ b/drivers/net/ethernet/Makefile
@@ -36,6 +36,7 @@ obj-$(CONFIG_LANTIQ_ETOP) += lantiq_etop.o
36obj-$(CONFIG_NET_VENDOR_MARVELL) += marvell/ 36obj-$(CONFIG_NET_VENDOR_MARVELL) += marvell/
37obj-$(CONFIG_NET_VENDOR_MELLANOX) += mellanox/ 37obj-$(CONFIG_NET_VENDOR_MELLANOX) += mellanox/
38obj-$(CONFIG_NET_VENDOR_MICREL) += micrel/ 38obj-$(CONFIG_NET_VENDOR_MICREL) += micrel/
39obj-$(CONFIG_NET_VENDOR_MICROCHIP) += microchip/
39obj-$(CONFIG_MIPS_SIM_NET) += mipsnet.o 40obj-$(CONFIG_MIPS_SIM_NET) += mipsnet.o
40obj-$(CONFIG_NET_VENDOR_MYRI) += myricom/ 41obj-$(CONFIG_NET_VENDOR_MYRI) += myricom/
41obj-$(CONFIG_FEALNX) += fealnx.o 42obj-$(CONFIG_FEALNX) += fealnx.o
diff --git a/drivers/net/ethernet/microchip/Kconfig b/drivers/net/ethernet/microchip/Kconfig
new file mode 100644
index 000000000000..53b0b04935a3
--- /dev/null
+++ b/drivers/net/ethernet/microchip/Kconfig
@@ -0,0 +1,37 @@
1#
2# Microchip network device configuration
3#
4
5config NET_VENDOR_MICROCHIP
6 bool "Microchip devices"
7 depends on SPI && EXPERIMENTAL
8 ---help---
9 If you have a network (Ethernet) card belonging to this class, say Y
10 and read the Ethernet-HOWTO, available from
11 <http://www.tldp.org/docs.html#howto>.
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 Microchip cards. If you say Y, you will be asked
16 for your specific card in the following questions.
17
18if NET_VENDOR_MICROCHIP
19
20config ENC28J60
21 tristate "ENC28J60 support"
22 depends on SPI && EXPERIMENTAL
23 select CRC32
24 ---help---
25 Support for the Microchip EN28J60 ethernet chip.
26
27 To compile this driver as a module, choose M here. The module will be
28 called enc28j60.
29
30config ENC28J60_WRITEVERIFY
31 bool "Enable write verify"
32 depends on ENC28J60
33 ---help---
34 Enable the verify after the buffer write useful for debugging purpose.
35 If unsure, say N.
36
37endif # NET_VENDOR_MICROCHIP
diff --git a/drivers/net/ethernet/microchip/Makefile b/drivers/net/ethernet/microchip/Makefile
new file mode 100644
index 000000000000..573d4292b9ea
--- /dev/null
+++ b/drivers/net/ethernet/microchip/Makefile
@@ -0,0 +1,5 @@
1#
2# Makefile for the Microchip network device drivers.
3#
4
5obj-$(CONFIG_ENC28J60) += enc28j60.o
diff --git a/drivers/net/enc28j60.c b/drivers/net/ethernet/microchip/enc28j60.c
index 2837ce209cd7..2837ce209cd7 100644
--- a/drivers/net/enc28j60.c
+++ b/drivers/net/ethernet/microchip/enc28j60.c
diff --git a/drivers/net/enc28j60_hw.h b/drivers/net/ethernet/microchip/enc28j60_hw.h
index 25b41de49f0e..25b41de49f0e 100644
--- a/drivers/net/enc28j60_hw.h
+++ b/drivers/net/ethernet/microchip/enc28j60_hw.h