Skip to content

Commit bcc9736

Browse files
author
Jeff Kirsher
committed
ks8*/ksz8*: Move the Micrel drivers
Move the Micrel drivers into drivers/net/ethernet/micrel/ and make the necessary Kconfig and Makefile changes. CC: Ben Dooks <ben@simtec.co.uk> CC: Tristram Ha <Tristram.Ha@micrel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 parent ec21e2e commit bcc9736

File tree

15 files changed

+75
-48
lines changed

15 files changed

+75
-48
lines changed

drivers/net/Kconfig

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -467,17 +467,6 @@ config ADAPTEC_STARFIRE
467467
To compile this driver as a module, choose M here: the module
468468
will be called starfire. This is recommended.
469469

470-
config KSZ884X_PCI
471-
tristate "Micrel KSZ8841/2 PCI"
472-
depends on NET_PCI && PCI
473-
select MII
474-
select CRC32
475-
help
476-
This PCI driver is for Micrel KSZ8841/KSZ8842 PCI Ethernet chip.
477-
478-
To compile this driver as a module, choose M here. The module
479-
will be called ksz884x.
480-
481470
config FORCEDETH
482471
tristate "nForce Ethernet support"
483472
depends on NET_PCI && PCI
@@ -550,30 +539,6 @@ config TLAN
550539

551540
Please email feedback to <torben.mathiasen@compaq.com>.
552541

553-
config KS8842
554-
tristate "Micrel KSZ8841/42 with generic bus interface"
555-
depends on HAS_IOMEM && DMA_ENGINE
556-
help
557-
This platform driver is for KSZ8841(1-port) / KS8842(2-port)
558-
ethernet switch chip (managed, VLAN, QoS) from Micrel or
559-
Timberdale(FPGA).
560-
561-
config KS8851
562-
tristate "Micrel KS8851 SPI"
563-
depends on SPI
564-
select MII
565-
select CRC32
566-
help
567-
SPI driver for Micrel KS8851 SPI attached network chip.
568-
569-
config KS8851_MLL
570-
tristate "Micrel KS8851 MLL"
571-
depends on HAS_IOMEM
572-
select MII
573-
help
574-
This platform driver is for Micrel KS8851 Address/data bus
575-
multiplexed network chip.
576-
577542
config CPMAC
578543
tristate "TI AR7 CPMAC Ethernet support (EXPERIMENTAL)"
579544
depends on NET_ETHERNET && EXPERIMENTAL && AR7

drivers/net/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o
3636
ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y)
3737
obj-$(CONFIG_TC35815) += tc35815.o
3838
obj-$(CONFIG_SKFP) += skfp/
39-
obj-$(CONFIG_KS8842) += ks8842.o
40-
obj-$(CONFIG_KS8851) += ks8851.o
41-
obj-$(CONFIG_KS8851_MLL) += ks8851_mll.o
42-
obj-$(CONFIG_KSZ884X_PCI) += ksz884x.o
4339
obj-$(CONFIG_ADAPTEC_STARFIRE) += starfire.o
4440
obj-$(CONFIG_RIONET) += rionet.o
4541
obj-$(CONFIG_SH_ETH) += sh_eth.o

drivers/net/arm/Kconfig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ config ARM_AT91_ETHER
1111
If you wish to compile a kernel for the AT91RM9200 and enable
1212
ethernet support, then you should always answer Y to this.
1313

14-
config ARM_KS8695_ETHER
15-
tristate "KS8695 Ethernet support"
16-
depends on ARM && ARCH_KS8695
17-
select MII
18-
help
19-
If you wish to compile a kernel for the KS8695 and want to
20-
use the internal ethernet then you should answer Y to this.
21-
2214
config EP93XX_ETH
2315
tristate "EP93xx Ethernet support"
2416
depends on ARM && ARCH_EP93XX

drivers/net/arm/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
#
55

66
obj-$(CONFIG_ARM_AT91_ETHER) += at91_ether.o
7-
obj-$(CONFIG_ARM_KS8695_ETHER) += ks8695net.o
87
obj-$(CONFIG_EP93XX_ETH) += ep93xx_eth.o
98
obj-$(CONFIG_W90P910_ETH) += w90p910_ether.o

drivers/net/ethernet/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ source "drivers/net/ethernet/i825xx/Kconfig"
3232
source "drivers/net/ethernet/xscale/Kconfig"
3333
source "drivers/net/ethernet/marvell/Kconfig"
3434
source "drivers/net/ethernet/mellanox/Kconfig"
35+
source "drivers/net/ethernet/micrel/Kconfig"
3536
source "drivers/net/ethernet/myricom/Kconfig"
3637
source "drivers/net/ethernet/natsemi/Kconfig"
3738
source "drivers/net/ethernet/8390/Kconfig"

drivers/net/ethernet/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ obj-$(CONFIG_NET_VENDOR_I825XX) += i825xx/
2424
obj-$(CONFIG_NET_VENDOR_XSCALE) += xscale/
2525
obj-$(CONFIG_NET_VENDOR_MARVELL) += marvell/
2626
obj-$(CONFIG_NET_VENDOR_MELLANOX) += mellanox/
27+
obj-$(CONFIG_NET_VENDOR_MICREL) += micrel/
2728
obj-$(CONFIG_NET_VENDOR_MYRI) += myricom/
2829
obj-$(CONFIG_NET_VENDOR_NATSEMI) += natsemi/
2930
obj-$(CONFIG_NET_VENDOR_OKI) += oki-semi/
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#
2+
# Micrel device configuration
3+
#
4+
5+
config NET_VENDOR_MICREL
6+
bool "Micrel devices"
7+
depends on (HAS_IOMEM && DMA_ENGINE) || SPI || PCI || HAS_IOMEM || \
8+
(ARM && ARCH_KS8695)
9+
---help---
10+
If you have a network (Ethernet) card belonging to this class, say Y
11+
and read the Ethernet-HOWTO, available from
12+
<http://www.tldp.org/docs.html#howto>.
13+
14+
Note that the answer to this question doesn't directly affect the
15+
kernel: saying N will just cause the configurator to skip all
16+
the questions about Micrel devices. If you say Y, you will be asked
17+
for your specific card in the following questions.
18+
19+
if NET_VENDOR_MICREL
20+
21+
config ARM_KS8695_ETHER
22+
tristate "KS8695 Ethernet support"
23+
depends on ARM && ARCH_KS8695
24+
select MII
25+
---help---
26+
If you wish to compile a kernel for the KS8695 and want to
27+
use the internal ethernet then you should answer Y to this.
28+
29+
config KS8842
30+
tristate "Micrel KSZ8841/42 with generic bus interface"
31+
depends on HAS_IOMEM && DMA_ENGINE
32+
---help---
33+
This platform driver is for KSZ8841(1-port) / KS8842(2-port)
34+
ethernet switch chip (managed, VLAN, QoS) from Micrel or
35+
Timberdale(FPGA).
36+
37+
config KS8851
38+
tristate "Micrel KS8851 SPI"
39+
depends on SPI
40+
select MII
41+
select CRC32
42+
---help---
43+
SPI driver for Micrel KS8851 SPI attached network chip.
44+
45+
config KS8851_MLL
46+
tristate "Micrel KS8851 MLL"
47+
depends on HAS_IOMEM
48+
select MII
49+
---help---
50+
This platform driver is for Micrel KS8851 Address/data bus
51+
multiplexed network chip.
52+
53+
config KSZ884X_PCI
54+
tristate "Micrel KSZ8841/2 PCI"
55+
depends on PCI
56+
select MII
57+
select CRC32
58+
---help---
59+
This PCI driver is for Micrel KSZ8841/KSZ8842 PCI Ethernet chip.
60+
61+
To compile this driver as a module, choose M here. The module
62+
will be called ksz884x.
63+
64+
endif # NET_VENDOR_MICREL
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Makefile for the Micrel network device drivers.
3+
#
4+
5+
obj-$(CONFIG_ARM_KS8695_ETHER) += ks8695net.o
6+
obj-$(CONFIG_KS8842) += ks8842.o
7+
obj-$(CONFIG_KS8851) += ks8851.o
8+
obj-$(CONFIG_KS8851_MLL) += ks8851_mll.o
9+
obj-$(CONFIG_KSZ884X_PCI) += ksz884x.o
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)