summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/patches-2.6.27/009-add_integrated_ethernet_mac_support.patch
blob: fcb045bcb0a077f7e21f8721084faa82e1d0aca7 (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
@@ -1963,6 +1963,15 @@ config NE_H8300
 	  Say Y here if you want to use the NE2000 compatible
 	  controller on the Renesas H8/300 processor.
 
+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
@@ -123,6 +123,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