diff options
author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-06-18 03:01:26 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-08-12 15:38:13 -0400 |
commit | 7b35f03338a8557122e62ea1a011f1628b978e8d (patch) | |
tree | 3dc66cadbfa8f86c43bd19fac73c954f9b762b24 /drivers/net | |
parent | ae7668d03c4de78dd0be79278f410a1415786e67 (diff) |
bfin_mac: Move the Analog Devices Inc driver
Move the Analog Devices Inc driver into drivers/net/ethernet/adi/ and
make the necessary Kconfig and Makefile changes.
CC: <uclinux-dist-devel@blackfin.uclinux.org>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Acked-by: Bob Liu <bob.liu@analog.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/Kconfig | 46 | ||||
-rw-r--r-- | drivers/net/Makefile | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/Kconfig | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/Makefile | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/adi/Kconfig | 68 | ||||
-rw-r--r-- | drivers/net/ethernet/adi/Makefile | 5 | ||||
-rw-r--r-- | drivers/net/ethernet/adi/bfin_mac.c (renamed from drivers/net/bfin_mac.c) | 0 | ||||
-rw-r--r-- | drivers/net/ethernet/adi/bfin_mac.h (renamed from drivers/net/bfin_mac.h) | 0 |
8 files changed, 75 insertions, 47 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index fd333803be8c..10c25b5bb2fe 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig | |||
@@ -252,52 +252,6 @@ config SH_ETH | |||
252 | This driver supporting CPUs are: | 252 | This driver supporting CPUs are: |
253 | - SH7710, SH7712, SH7763, SH7619, SH7724, and SH7757. | 253 | - SH7710, SH7712, SH7763, SH7619, SH7724, and SH7757. |
254 | 254 | ||
255 | config BFIN_MAC | ||
256 | tristate "Blackfin on-chip MAC support" | ||
257 | depends on NET_ETHERNET && (BF516 || BF518 || BF526 || BF527 || BF536 || BF537) | ||
258 | select CRC32 | ||
259 | select MII | ||
260 | select PHYLIB | ||
261 | select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE | ||
262 | help | ||
263 | This is the driver for Blackfin on-chip mac device. Say Y if you want it | ||
264 | compiled into the kernel. This driver is also available as a module | ||
265 | ( = code which can be inserted in and removed from the running kernel | ||
266 | whenever you want). The module will be called bfin_mac. | ||
267 | |||
268 | config BFIN_MAC_USE_L1 | ||
269 | bool "Use L1 memory for rx/tx packets" | ||
270 | depends on BFIN_MAC && (BF527 || BF537) | ||
271 | default y | ||
272 | help | ||
273 | To get maximum network performance, you should use L1 memory as rx/tx buffers. | ||
274 | Say N here if you want to reserve L1 memory for other uses. | ||
275 | |||
276 | config BFIN_TX_DESC_NUM | ||
277 | int "Number of transmit buffer packets" | ||
278 | depends on BFIN_MAC | ||
279 | range 6 10 if BFIN_MAC_USE_L1 | ||
280 | range 10 100 | ||
281 | default "10" | ||
282 | help | ||
283 | Set the number of buffer packets used in driver. | ||
284 | |||
285 | config BFIN_RX_DESC_NUM | ||
286 | int "Number of receive buffer packets" | ||
287 | depends on BFIN_MAC | ||
288 | range 20 100 if BFIN_MAC_USE_L1 | ||
289 | range 20 800 | ||
290 | default "20" | ||
291 | help | ||
292 | Set the number of buffer packets used in driver. | ||
293 | |||
294 | config BFIN_MAC_USE_HWSTAMP | ||
295 | bool "Use IEEE 1588 hwstamp" | ||
296 | depends on BFIN_MAC && BF518 | ||
297 | default y | ||
298 | help | ||
299 | To support the IEEE 1588 Precision Time Protocol (PTP), select y here | ||
300 | |||
301 | config NET_NETX | 255 | config NET_NETX |
302 | tristate "NetX Ethernet support" | 256 | tristate "NetX Ethernet support" |
303 | select MII | 257 | select MII |
diff --git a/drivers/net/Makefile b/drivers/net/Makefile index 8e6dbd741206..d249d76ce2f9 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile | |||
@@ -57,7 +57,6 @@ obj-$(CONFIG_EQUALIZER) += eql.o | |||
57 | obj-$(CONFIG_TUN) += tun.o | 57 | obj-$(CONFIG_TUN) += tun.o |
58 | obj-$(CONFIG_VETH) += veth.o | 58 | obj-$(CONFIG_VETH) += veth.o |
59 | obj-$(CONFIG_NET_NETX) += netx-eth.o | 59 | obj-$(CONFIG_NET_NETX) += netx-eth.o |
60 | obj-$(CONFIG_BFIN_MAC) += bfin_mac.o | ||
61 | obj-$(CONFIG_DM9000) += dm9000.o | 60 | obj-$(CONFIG_DM9000) += dm9000.o |
62 | obj-$(CONFIG_ENC28J60) += enc28j60.o | 61 | obj-$(CONFIG_ENC28J60) += enc28j60.o |
63 | obj-$(CONFIG_ETHOC) += ethoc.o | 62 | obj-$(CONFIG_ETHOC) += ethoc.o |
diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig index 6b3b3dc172e7..e087337f92b5 100644 --- a/drivers/net/ethernet/Kconfig +++ b/drivers/net/ethernet/Kconfig | |||
@@ -15,6 +15,7 @@ source "drivers/net/ethernet/3com/Kconfig" | |||
15 | source "drivers/net/ethernet/amd/Kconfig" | 15 | source "drivers/net/ethernet/amd/Kconfig" |
16 | source "drivers/net/ethernet/apple/Kconfig" | 16 | source "drivers/net/ethernet/apple/Kconfig" |
17 | source "drivers/net/ethernet/atheros/Kconfig" | 17 | source "drivers/net/ethernet/atheros/Kconfig" |
18 | source "drivers/net/ethernet/adi/Kconfig" | ||
18 | source "drivers/net/ethernet/broadcom/Kconfig" | 19 | source "drivers/net/ethernet/broadcom/Kconfig" |
19 | source "drivers/net/ethernet/brocade/Kconfig" | 20 | source "drivers/net/ethernet/brocade/Kconfig" |
20 | source "drivers/net/ethernet/chelsio/Kconfig" | 21 | source "drivers/net/ethernet/chelsio/Kconfig" |
diff --git a/drivers/net/ethernet/Makefile b/drivers/net/ethernet/Makefile index 2a1cbce02789..826db27564af 100644 --- a/drivers/net/ethernet/Makefile +++ b/drivers/net/ethernet/Makefile | |||
@@ -7,6 +7,7 @@ obj-$(CONFIG_NET_VENDOR_8390) += 8390/ | |||
7 | obj-$(CONFIG_NET_VENDOR_AMD) += amd/ | 7 | obj-$(CONFIG_NET_VENDOR_AMD) += amd/ |
8 | obj-$(CONFIG_NET_VENDOR_APPLE) += apple/ | 8 | obj-$(CONFIG_NET_VENDOR_APPLE) += apple/ |
9 | obj-$(CONFIG_NET_VENDOR_ATHEROS) += atheros/ | 9 | obj-$(CONFIG_NET_VENDOR_ATHEROS) += atheros/ |
10 | obj-$(CONFIG_NET_BFIN) += adi/ | ||
10 | obj-$(CONFIG_NET_VENDOR_BROADCOM) += broadcom/ | 11 | obj-$(CONFIG_NET_VENDOR_BROADCOM) += broadcom/ |
11 | obj-$(CONFIG_NET_VENDOR_BROCADE) += brocade/ | 12 | obj-$(CONFIG_NET_VENDOR_BROCADE) += brocade/ |
12 | obj-$(CONFIG_NET_VENDOR_CHELSIO) += chelsio/ | 13 | obj-$(CONFIG_NET_VENDOR_CHELSIO) += chelsio/ |
diff --git a/drivers/net/ethernet/adi/Kconfig b/drivers/net/ethernet/adi/Kconfig new file mode 100644 index 000000000000..6de9851045cb --- /dev/null +++ b/drivers/net/ethernet/adi/Kconfig | |||
@@ -0,0 +1,68 @@ | |||
1 | # | ||
2 | # Blackfin device configuration | ||
3 | # | ||
4 | |||
5 | config NET_BFIN | ||
6 | bool "Blackfin devices" | ||
7 | depends on BF516 || BF518 || BF526 || BF527 || BF536 || BF537 | ||
8 | ---help--- | ||
9 | If you have a network (Ethernet) card belonging to this class, say Y. | ||
10 | Make sure you know the name of your card. Read the Ethernet-HOWTO, | ||
11 | available from <http://www.tldp.org/docs.html#howto>. | ||
12 | |||
13 | If unsure, say Y. | ||
14 | |||
15 | Note that the answer to this question doesn't directly affect the | ||
16 | kernel: saying N will just cause the configurator to skip all | ||
17 | the remaining Blackfin card questions. If you say Y, you will be | ||
18 | asked for your specific card in the following questions. | ||
19 | |||
20 | if NET_BFIN | ||
21 | |||
22 | config BFIN_MAC | ||
23 | tristate "Blackfin on-chip MAC support" | ||
24 | depends on (BF516 || BF518 || BF526 || BF527 || BF536 || BF537) | ||
25 | select CRC32 | ||
26 | select MII | ||
27 | select PHYLIB | ||
28 | select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE | ||
29 | ---help--- | ||
30 | This is the driver for Blackfin on-chip mac device. Say Y if you want | ||
31 | it compiled into the kernel. This driver is also available as a | ||
32 | module ( = code which can be inserted in and removed from the running | ||
33 | kernel whenever you want). The module will be called bfin_mac. | ||
34 | |||
35 | config BFIN_MAC_USE_L1 | ||
36 | bool "Use L1 memory for rx/tx packets" | ||
37 | depends on BFIN_MAC && (BF527 || BF537) | ||
38 | default y | ||
39 | ---help--- | ||
40 | To get maximum network performance, you should use L1 memory as rx/tx | ||
41 | buffers. Say N here if you want to reserve L1 memory for other uses. | ||
42 | |||
43 | config BFIN_TX_DESC_NUM | ||
44 | int "Number of transmit buffer packets" | ||
45 | depends on BFIN_MAC | ||
46 | range 6 10 if BFIN_MAC_USE_L1 | ||
47 | range 10 100 | ||
48 | default "10" | ||
49 | ---help--- | ||
50 | Set the number of buffer packets used in driver. | ||
51 | |||
52 | config BFIN_RX_DESC_NUM | ||
53 | int "Number of receive buffer packets" | ||
54 | depends on BFIN_MAC | ||
55 | range 20 100 if BFIN_MAC_USE_L1 | ||
56 | range 20 800 | ||
57 | default "20" | ||
58 | ---help--- | ||
59 | Set the number of buffer packets used in driver. | ||
60 | |||
61 | config BFIN_MAC_USE_HWSTAMP | ||
62 | bool "Use IEEE 1588 hwstamp" | ||
63 | depends on BFIN_MAC && BF518 | ||
64 | default y | ||
65 | ---help--- | ||
66 | To support the IEEE 1588 Precision Time Protocol (PTP), select y here | ||
67 | |||
68 | endif # NET_BFIN | ||
diff --git a/drivers/net/ethernet/adi/Makefile b/drivers/net/ethernet/adi/Makefile new file mode 100644 index 000000000000..b1fbe195d0e8 --- /dev/null +++ b/drivers/net/ethernet/adi/Makefile | |||
@@ -0,0 +1,5 @@ | |||
1 | # | ||
2 | # Makefile for the Blackfin device drivers. | ||
3 | # | ||
4 | |||
5 | obj-$(CONFIG_BFIN_MAC) += bfin_mac.o | ||
diff --git a/drivers/net/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c index 6c019e148546..6c019e148546 100644 --- a/drivers/net/bfin_mac.c +++ b/drivers/net/ethernet/adi/bfin_mac.c | |||
diff --git a/drivers/net/bfin_mac.h b/drivers/net/ethernet/adi/bfin_mac.h index f8559ac9a403..f8559ac9a403 100644 --- a/drivers/net/bfin_mac.h +++ b/drivers/net/ethernet/adi/bfin_mac.h | |||