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