Root/target/linux/brcm63xx/patches-3.3/522-MIPS-BCM63XX-add-96328avng-reference-board.patch

1From c93c2bbf0cc96da5a47d77f01daf6c983cfe4216 Mon Sep 17 00:00:00 2001
2From: Jonas Gorski <jonas.gorski@gmail.com>
3Date: Tue, 29 May 2012 10:52:25 +0200
4Subject: [PATCH] MIPS: BCM63XX: add 96328avng reference board
5
6---
7 arch/mips/bcm63xx/boards/board_bcm963xx.c | 77 +++++++++++++++++++++++++++++
8 1 files changed, 77 insertions(+), 0 deletions(-)
9
10--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
11+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
12@@ -54,6 +54,80 @@
13 static struct board_info board;
14 
15 /*
16+ * known 6328 boards
17+ */
18+#ifdef CONFIG_BCM63XX_CPU_6328
19+static struct board_info __initdata board_96328avng = {
20+ .name = "96328avng",
21+ .expected_cpu_id = 0x6328,
22+
23+ .has_uart0 = 1,
24+ .has_pci = 1,
25+
26+ .has_enetsw = 1,
27+
28+ .enetsw = {
29+ .used_ports = {
30+ [0] = {
31+ .used = 1,
32+ .phy_id = 1,
33+ .name = "Port 1",
34+ },
35+ [1] = {
36+ .used = 1,
37+ .phy_id = 2,
38+ .name = "Port 2",
39+ },
40+ [2] = {
41+ .used = 1,
42+ .phy_id = 3,
43+ .name = "Port 3",
44+ },
45+ [3] = {
46+ .used = 1,
47+ .phy_id = 4,
48+ .name = "Port 4",
49+ },
50+ },
51+ },
52+
53+ .leds = {
54+ {
55+ .name = "96328avng::internet-fail",
56+ .gpio = 2,
57+ .active_low = 1,
58+ },
59+ {
60+ .name = "96328avng::dsl",
61+ .gpio = 3,
62+ .active_low = 1,
63+ },
64+ {
65+ .name = "96328avng::power",
66+ .gpio = 4,
67+ .active_low = 1,
68+ .default_trigger = "default-on",
69+ },
70+ {
71+ .name = "96328avng::power-fail",
72+ .gpio = 8,
73+ .active_low = 1,
74+ },
75+ {
76+ .name = "96328avng::wps",
77+ .gpio = 9,
78+ .active_low = 1,
79+ },
80+ {
81+ .name = "96328avng::internet",
82+ .gpio = 11,
83+ .active_low = 1,
84+ },
85+ },
86+};
87+#endif
88+
89+/*
90  * known 6338 boards
91  */
92 #ifdef CONFIG_BCM63XX_CPU_6338
93@@ -2246,6 +2320,9 @@ static struct board_info __initdata boar
94  * all boards
95  */
96 static const struct board_info __initdata *bcm963xx_boards[] = {
97+#ifdef CONFIG_BCM63XX_CPU_6328
98+ &board_96328avng,
99+#endif
100 #ifdef CONFIG_BCM63XX_CPU_6338
101     &board_96338gw,
102     &board_96338w,
103

Archive Download this file



interactive