bcm63xx: build images for 6328 reference boards with various flash sizes
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 522-MIPS-BCM63XX-add-96328avng-reference-board.patch
1 From c93c2bbf0cc96da5a47d77f01daf6c983cfe4216 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Tue, 29 May 2012 10:52:25 +0200
4 Subject: [PATCH] MIPS: BCM63XX: add 96328avng reference board
5
6 ---
7 arch/mips/bcm63xx/boards/board_bcm963xx.c | 75 +++++++++++++++++++++++++++++
8 1 files changed, 75 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,78 @@
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 + .enetsw = {
27 + .used_ports = {
28 + [0] = {
29 + .used = 1,
30 + .phy_id = 1,
31 + .name = "Port 1",
32 + },
33 + [1] = {
34 + .used = 1,
35 + .phy_id = 2,
36 + .name = "Port 2",
37 + },
38 + [2] = {
39 + .used = 1,
40 + .phy_id = 3,
41 + .name = "Port 3",
42 + },
43 + [3] = {
44 + .used = 1,
45 + .phy_id = 4,
46 + .name = "Port 4",
47 + },
48 + },
49 + },
50 +
51 + .leds = {
52 + {
53 + .name = "96328avng::internet-fail",
54 + .gpio = 2,
55 + .active_low = 1,
56 + },
57 + {
58 + .name = "96328avng::dsl",
59 + .gpio = 3,
60 + .active_low = 1,
61 + },
62 + {
63 + .name = "96328avng::power",
64 + .gpio = 4,
65 + .active_low = 1,
66 + .default_trigger = "default-on",
67 + },
68 + {
69 + .name = "96328avng::power-fail",
70 + .gpio = 8,
71 + .active_low = 1,
72 + },
73 + {
74 + .name = "96328avng::wps",
75 + .gpio = 9,
76 + .active_low = 1,
77 + },
78 + {
79 + .name = "96328avng::internet",
80 + .gpio = 11,
81 + .active_low = 1,
82 + },
83 + },
84 +};
85 +#endif
86 +
87 +/*
88 * known 6338 boards
89 */
90 #ifdef CONFIG_BCM63XX_CPU_6338
91 @@ -2160,6 +2232,9 @@ static struct board_info __initdata boar
92 * all boards
93 */
94 static const struct board_info __initdata *bcm963xx_boards[] = {
95 +#ifdef CONFIG_BCM63XX_CPU_6328
96 + &board_96328avng,
97 +#endif
98 #ifdef CONFIG_BCM63XX_CPU_6338
99 &board_96338gw,
100 &board_96338w,