brcm63xx: move buttons and leds to dts files
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 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 | 71 +++++++++++++++++++++++++++++
8 1 files changed, 71 insertions(+), 0 deletions(-)
9
10 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
11 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
12 @@ -137,6 +137,41 @@ 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 + .has_enetsw = 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 #endif /* CONFIG_BCM63XX_CPU_6328 */
52
53 /*
54 @@ -1298,6 +1333,7 @@ static const struct board_info __initcon
55 #endif
56 #ifdef CONFIG_BCM63XX_CPU_6328
57 &board_96328avng,
58 + &board_963281TAN,
59 #endif
60 #ifdef CONFIG_BCM63XX_CPU_6338
61 &board_96338gw,
62 @@ -1354,6 +1390,7 @@ static struct of_device_id const bcm963x
63 { .compatible = "netgear,cvg834g", .data = &board_cvg834g, },
64 #endif
65 #ifdef CONFIG_BCM63XX_CPU_6328
66 + { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
67 { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
68 #endif
69 #ifdef CONFIG_BCM63XX_CPU_6338