a6f4a843368b910e5b0f33d708dc79cd29340de9
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 522-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 @@ -348,6 +348,39 @@ 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_pci = 1,
22 +
23 + .has_enetsw = 1,
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 #endif /* CONFIG_BCM63XX_CPU_6328 */
50
51 /*
52 @@ -702,6 +735,7 @@ static const struct board_info __initcon
53 #endif /* CONFIG_BCM63XX_CPU_6318 */
54 #ifdef CONFIG_BCM63XX_CPU_6328
55 &board_96328avng,
56 + &board_963281TAN,
57 #endif /* CONFIG_BCM63XX_CPU_6328 */
58 #ifdef CONFIG_BCM63XX_CPU_6338
59 &board_96338gw,
60 @@ -741,6 +775,7 @@ static struct of_device_id const bcm963x
61 { .compatible = "sagem,fast-2704n", .data = &board_FAST2704N, },
62 #endif /* CONFIG_BCM63XX_CPU_6318 */
63 #ifdef CONFIG_BCM63XX_CPU_6328
64 + { .compatible = "brcm,bcm963281tan", .data = &board_963281TAN, },
65 { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
66 #endif /* CONFIG_BCM63XX_CPU_6328 */
67 #ifdef CONFIG_BCM63XX_CPU_6338