summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/patches-2.6.28/009-add_integrated_ethernet_mac_support.patch
blob: 780e978da5f01f4706ad05146e52d3ca0a722344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From 49aa7ffcd9bd2d9a0af99fced7b8511160dbf345 Mon Sep 17 00:00:00 2001
From: Maxime Bizon <mbizon@freebox.fr>
Date: Sun, 21 Sep 2008 03:43:26 +0200
Subject: [PATCH] [MIPS] BCM63XX: Add integrated ethernet mac support.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
---
 arch/mips/bcm63xx/Makefile                       |    1 +
 arch/mips/bcm63xx/dev-enet.c                     |  158 ++
 drivers/net/Kconfig                              |    9 +
 drivers/net/Makefile                             |    1 +
 drivers/net/bcm63xx_enet.c                       | 1894 ++++++++++++++++++++++
 drivers/net/bcm63xx_enet.h                       |  294 ++++
 include/asm-mips/mach-bcm63xx/bcm63xx_dev_enet.h |   45 +
 7 files changed, 2402 insertions(+), 0 deletions(-)
 create mode 100644 arch/mips/bcm63xx/dev-enet.c
 create mode 100644 drivers/net/bcm63xx_enet.c
 create mode 100644 drivers/net/bcm63xx_enet.h
 create mode 100644 include/asm-mips/mach-bcm63xx/bcm63xx_dev_enet.h

--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -1987,6 +1987,15 @@ config ATL2
 	  To compile this driver as a module, choose M here.  The module
 	  will be called atl2.
 
+config BCM63XX_ENET
+	tristate "Broadcom 63xx internal mac support"
+	depends on BCM63XX
+	select MII
+	select PHYLIB
+	help
+	  This driver supports the ethernet MACs in the Broadcom 63xx
+	  MIPS chipset family (BCM63XX).
+
 source "drivers/net/fs_enet/Kconfig"
 
 endif # NET_ETHERNET
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -126,6 +126,7 @@ obj-$(CONFIG_SB1250_MAC) += sb1250-mac.o
 obj-$(CONFIG_B44) += b44.o
 obj-$(CONFIG_FORCEDETH) += forcedeth.o
 obj-$(CONFIG_NE_H8300) += ne-h8300.o
+obj-$(CONFIG_BCM63XX_ENET) += bcm63xx_enet.o
 obj-$(CONFIG_AX88796) += ax88796.o
 
 obj-$(CONFIG_TSI108_ETH) += tsi108_eth.o