aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-06-18 04:52:36 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-08-12 15:38:26 -0400
commit9f2f381f813858755f5b6ef7af316feda0726ef3 (patch)
treed92fe910d8a8ef2c06ddeeb88ecd786d315f713e
parent7b35f03338a8557122e62ea1a011f1628b978e8d (diff)
macb: Move the Atmel driver
Move the Atmel driver into drivers/net/ethernet/cadence/ and make the necessary Kconfig and Makefile changes. CC: Nicolas Ferre <nicolas.ferre@atmel.com> CC: Jamie Iles <jamie@jamieiles.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Acked-by: Jamie Iles <jamie@jamieiles.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r--MAINTAINERS2
-rw-r--r--drivers/net/Kconfig16
-rw-r--r--drivers/net/Makefile3
-rw-r--r--drivers/net/arm/Kconfig12
-rw-r--r--drivers/net/arm/Makefile6
-rw-r--r--drivers/net/ethernet/Kconfig1
-rw-r--r--drivers/net/ethernet/Makefile1
-rw-r--r--drivers/net/ethernet/cadence/Kconfig44
-rw-r--r--drivers/net/ethernet/cadence/Makefile6
-rw-r--r--drivers/net/ethernet/cadence/at91_ether.c (renamed from drivers/net/arm/at91_ether.c)0
-rw-r--r--drivers/net/ethernet/cadence/at91_ether.h (renamed from drivers/net/arm/at91_ether.h)0
-rw-r--r--drivers/net/ethernet/cadence/macb.c (renamed from drivers/net/macb.c)0
-rw-r--r--drivers/net/ethernet/cadence/macb.h (renamed from drivers/net/macb.h)0
13 files changed, 53 insertions, 38 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index 15d70213be53..ae60f8c7c65d 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1323,7 +1323,7 @@ F: include/video/atmel_lcdc.h
1323ATMEL MACB ETHERNET DRIVER 1323ATMEL MACB ETHERNET DRIVER
1324M: Nicolas Ferre <nicolas.ferre@atmel.com> 1324M: Nicolas Ferre <nicolas.ferre@atmel.com>
1325S: Supported 1325S: Supported
1326F: drivers/net/macb.* 1326F: drivers/net/ethernet/cadence/
1327 1327
1328ATMEL SPI DRIVER 1328ATMEL SPI DRIVER
1329M: Nicolas Ferre <nicolas.ferre@atmel.com> 1329M: Nicolas Ferre <nicolas.ferre@atmel.com>
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 10c25b5bb2fe..3f6622c3f806 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -2,9 +2,6 @@
2# Network device configuration 2# Network device configuration
3# 3#
4 4
5config HAVE_NET_MACB
6 bool
7
8menuconfig NETDEVICES 5menuconfig NETDEVICES
9 default y if UML 6 default y if UML
10 depends on NET 7 depends on NET
@@ -224,19 +221,6 @@ menuconfig NET_ETHERNET
224 221
225if NET_ETHERNET 222if NET_ETHERNET
226 223
227config MACB
228 tristate "Atmel MACB support"
229 depends on HAVE_NET_MACB
230 select PHYLIB
231 help
232 The Atmel MACB ethernet interface is found on many AT32 and AT91
233 parts. Say Y to include support for the MACB chip.
234
235 To compile this driver as a module, choose M here: the module
236 will be called macb.
237
238source "drivers/net/arm/Kconfig"
239
240config SH_ETH 224config SH_ETH
241 tristate "Renesas SuperH Ethernet support" 225 tristate "Renesas SuperH Ethernet support"
242 depends on SUPERH && \ 226 depends on SUPERH && \
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index d249d76ce2f9..d7873bad9ddd 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -63,9 +63,6 @@ obj-$(CONFIG_ETHOC) += ethoc.o
63obj-$(CONFIG_GRETH) += greth.o 63obj-$(CONFIG_GRETH) += greth.o
64 64
65obj-$(CONFIG_DNET) += dnet.o 65obj-$(CONFIG_DNET) += dnet.o
66obj-$(CONFIG_MACB) += macb.o
67
68obj-$(CONFIG_ARM) += arm/
69obj-$(CONFIG_DEV_APPLETALK) += appletalk/ 66obj-$(CONFIG_DEV_APPLETALK) += appletalk/
70obj-$(CONFIG_ETHERNET) += ethernet/ 67obj-$(CONFIG_ETHERNET) += ethernet/
71obj-$(CONFIG_TR) += tokenring/ 68obj-$(CONFIG_TR) += tokenring/
diff --git a/drivers/net/arm/Kconfig b/drivers/net/arm/Kconfig
deleted file mode 100644
index 57d16b91d102..000000000000
--- a/drivers/net/arm/Kconfig
+++ /dev/null
@@ -1,12 +0,0 @@
1#
2# Acorn Network device configuration
3# These are for Acorn's Expansion card network interfaces
4#
5
6config ARM_AT91_ETHER
7 tristate "AT91RM9200 Ethernet support"
8 depends on ARM && ARCH_AT91RM9200
9 select MII
10 help
11 If you wish to compile a kernel for the AT91RM9200 and enable
12 ethernet support, then you should always answer Y to this.
diff --git a/drivers/net/arm/Makefile b/drivers/net/arm/Makefile
deleted file mode 100644
index fc0f85c53a7e..000000000000
--- a/drivers/net/arm/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
1# File: drivers/net/arm/Makefile
2#
3# Makefile for the ARM network device drivers
4#
5
6obj-$(CONFIG_ARM_AT91_ETHER) += at91_ether.o
diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig
index e087337f92b5..68a31b9d7acc 100644
--- a/drivers/net/ethernet/Kconfig
+++ b/drivers/net/ethernet/Kconfig
@@ -15,6 +15,7 @@ source "drivers/net/ethernet/3com/Kconfig"
15source "drivers/net/ethernet/amd/Kconfig" 15source "drivers/net/ethernet/amd/Kconfig"
16source "drivers/net/ethernet/apple/Kconfig" 16source "drivers/net/ethernet/apple/Kconfig"
17source "drivers/net/ethernet/atheros/Kconfig" 17source "drivers/net/ethernet/atheros/Kconfig"
18source "drivers/net/ethernet/cadence/Kconfig"
18source "drivers/net/ethernet/adi/Kconfig" 19source "drivers/net/ethernet/adi/Kconfig"
19source "drivers/net/ethernet/broadcom/Kconfig" 20source "drivers/net/ethernet/broadcom/Kconfig"
20source "drivers/net/ethernet/brocade/Kconfig" 21source "drivers/net/ethernet/brocade/Kconfig"
diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile
index 826db27564af..0e91c4db9117 100644
--- a/drivers/net/ethernet/Makefile
+++ b/drivers/net/ethernet/Makefile
@@ -7,6 +7,7 @@ obj-$(CONFIG_NET_VENDOR_8390) += 8390/
7obj-$(CONFIG_NET_VENDOR_AMD) += amd/ 7obj-$(CONFIG_NET_VENDOR_AMD) += amd/
8obj-$(CONFIG_NET_VENDOR_APPLE) += apple/ 8obj-$(CONFIG_NET_VENDOR_APPLE) += apple/
9obj-$(CONFIG_NET_VENDOR_ATHEROS) += atheros/ 9obj-$(CONFIG_NET_VENDOR_ATHEROS) += atheros/
10obj-$(CONFIG_NET_ATMEL) += cadence/
10obj-$(CONFIG_NET_BFIN) += adi/ 11obj-$(CONFIG_NET_BFIN) += adi/
11obj-$(CONFIG_NET_VENDOR_BROADCOM) += broadcom/ 12obj-$(CONFIG_NET_VENDOR_BROADCOM) += broadcom/
12obj-$(CONFIG_NET_VENDOR_BROCADE) += brocade/ 13obj-$(CONFIG_NET_VENDOR_BROCADE) += brocade/
diff --git a/drivers/net/ethernet/cadence/Kconfig b/drivers/net/ethernet/cadence/Kconfig
new file mode 100644
index 000000000000..c00e706ab58a
--- /dev/null
+++ b/drivers/net/ethernet/cadence/Kconfig
@@ -0,0 +1,44 @@
1#
2# Atmel device configuration
3#
4
5config HAVE_NET_MACB
6 bool
7
8config NET_ATMEL
9 bool "Atmel devices"
10 depends on HAVE_NET_MACB || (ARM && ARCH_AT91RM9200)
11 ---help---
12 If you have a network (Ethernet) card belonging to this class, say Y.
13 Make sure you know the name of your card. Read the Ethernet-HOWTO,
14 available from <http://www.tldp.org/docs.html#howto>.
15
16 If unsure, say Y.
17
18 Note that the answer to this question doesn't directly affect the
19 kernel: saying N will just cause the configurator to skip all
20 the remaining Atmel network card questions. If you say Y, you will be
21 asked for your specific card in the following questions.
22
23if NET_ATMEL
24
25config ARM_AT91_ETHER
26 tristate "AT91RM9200 Ethernet support"
27 depends on ARM && ARCH_AT91RM9200
28 select MII
29 ---help---
30 If you wish to compile a kernel for the AT91RM9200 and enable
31 ethernet support, then you should always answer Y to this.
32
33config MACB
34 tristate "Atmel MACB support"
35 depends on HAVE_NET_MACB
36 select PHYLIB
37 ---help---
38 The Atmel MACB ethernet interface is found on many AT32 and AT91
39 parts. Say Y to include support for the MACB chip.
40
41 To compile this driver as a module, choose M here: the module
42 will be called macb.
43
44endif # NET_ATMEL
diff --git a/drivers/net/ethernet/cadence/Makefile b/drivers/net/ethernet/cadence/Makefile
new file mode 100644
index 000000000000..9068b8331ed1
--- /dev/null
+++ b/drivers/net/ethernet/cadence/Makefile
@@ -0,0 +1,6 @@
1#
2# Makefile for the Atmel network device drivers.
3#
4
5obj-$(CONFIG_ARM_AT91_ETHER) += at91_ether.o
6obj-$(CONFIG_MACB) += macb.o
diff --git a/drivers/net/arm/at91_ether.c b/drivers/net/ethernet/cadence/at91_ether.c
index 29dc43523cec..29dc43523cec 100644
--- a/drivers/net/arm/at91_ether.c
+++ b/drivers/net/ethernet/cadence/at91_ether.c
diff --git a/drivers/net/arm/at91_ether.h b/drivers/net/ethernet/cadence/at91_ether.h
index 353f4dab62be..353f4dab62be 100644
--- a/drivers/net/arm/at91_ether.h
+++ b/drivers/net/ethernet/cadence/at91_ether.h
diff --git a/drivers/net/macb.c b/drivers/net/ethernet/cadence/macb.c
index dc4e305a1087..dc4e305a1087 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
diff --git a/drivers/net/macb.h b/drivers/net/ethernet/cadence/macb.h
index d3212f6db703..d3212f6db703 100644
--- a/drivers/net/macb.h
+++ b/drivers/net/ethernet/cadence/macb.h