Root/target/linux/lantiq/patches-2.6.32/0012-MIPS-Lantiq-Add-etop-board-support.patch

1From 72a9b536ef81f06bb8042abee0410458f5df93d2 Mon Sep 17 00:00:00 2001
2From: John Crispin <blogic@openwrt.org>
3Date: Fri, 6 May 2011 00:10:02 +0200
4Subject: [PATCH 12/13] MIPS: Lantiq: Add etop board support
5
6Register the etop platform device inside the machtype specific init code.
7
8Signed-off-by: John Crispin <blogic@openwrt.org>
9Signed-off-by: Ralph Hempel <ralph.hempel@lantiq.com>
10Signed-off-by: David Daney <ddaney@caviumnetworks.com>
11Cc: linux-mips@linux-mips.org
12Patchwork: https://patchwork.linux-mips.org/patch/2356/
13Patchwork: https://patchwork.linux-mips.org/patch/2370/
14Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
15---
16 arch/mips/lantiq/xway/mach-easy50712.c | 6 ++++++
17 1 files changed, 6 insertions(+), 0 deletions(-)
18
19diff --git a/arch/mips/lantiq/xway/mach-easy50712.c b/arch/mips/lantiq/xway/mach-easy50712.c
20index e5e7e09..ea5027b 100644
21--- a/arch/mips/lantiq/xway/mach-easy50712.c
22+++ b/arch/mips/lantiq/xway/mach-easy50712.c
23@@ -12,6 +12,7 @@
24 #include <linux/mtd/partitions.h>
25 #include <linux/mtd/physmap.h>
26 #include <linux/input.h>
27+#include <linux/phy.h>
28 
29 #include <lantiq_soc.h>
30 #include <irq.h>
31@@ -55,11 +56,16 @@ static struct ltq_pci_data ltq_pci_data = {
32     },
33 };
34 
35+static struct ltq_eth_data ltq_eth_data = {
36+ .mii_mode = PHY_INTERFACE_MODE_MII,
37+};
38+
39 static void __init easy50712_init(void)
40 {
41     ltq_register_gpio_stp();
42     ltq_register_nor(&easy50712_flash_data);
43     ltq_register_pci(&ltq_pci_data);
44+ ltq_register_etop(&ltq_eth_data);
45 }
46 
47 MIPS_MACHINE(LTQ_MACH_EASY50712,
48--
491.7.2.3
50
51

Archive Download this file



interactive