bcm63xx: refactor board patches
[openwrt/staging/wigyori.git] / target / linux / bcm63xx / patches-5.4 / 535-board_fast2504n.patch
1 From: Max Staudt <openwrt.max@enpas.org>
2 Date: Wed, 15 Jan 2014 18:51:13 +0000
3 Subject: [PATCH] bcm63xx: F@ST2504n board support (Linux-3.10.26)
4
5 Signed-off-by: Max Staudt <openwrt.max@enpas.org>
6 ---
7 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
8 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
9 @@ -1308,6 +1308,37 @@ static struct board_info __initdata boar
10 },
11 },
12 };
13 +
14 +static struct board_info __initdata board_fast2504n = {
15 + .name = "F@ST2504n",
16 + .expected_cpu_id = 0x6362,
17 +
18 + .has_enetsw = 1,
19 + .enetsw = {
20 + .used_ports = {
21 + [0] = {
22 + .used = 1,
23 + .phy_id = 1,
24 + .name = "Port 1",
25 + },
26 + [1] = {
27 + .used = 1,
28 + .phy_id = 2,
29 + .name = "Port 2",
30 + },
31 + [2] = {
32 + .used = 1,
33 + .phy_id = 3,
34 + .name = "Port 3",
35 + },
36 + [3] = {
37 + .used = 1,
38 + .phy_id = 4,
39 + .name = "Port 4",
40 + },
41 + },
42 + },
43 +};
44 #endif /* CONFIG_BCM63XX_CPU_6362 */
45
46 /*
47 @@ -1459,6 +1490,7 @@ static const struct board_info __initcon
48 #endif /* CONFIG_BCM63XX_CPU_6358 */
49 #ifdef CONFIG_BCM63XX_CPU_6362
50 &board_nb6,
51 + &board_fast2504n,
52 #endif /* CONFIG_BCM63XX_CPU_6362 */
53 #ifdef CONFIG_BCM63XX_CPU_6368
54 &board_96368mvwg,
55 @@ -1539,6 +1571,7 @@ static struct of_device_id const bcm963x
56 { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
57 #endif
58 #ifdef CONFIG_BCM63XX_CPU_6362
59 + { .compatible = "sagem,fast-2504n", .data = &board_fast2504n, },
60 { .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
61 #endif
62 #ifdef CONFIG_BCM63XX_CPU_6368