brcm63xx: DVA-G3810BN/TL: Fix the WAN ethernet port
[oweals/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 537-board_fast2504n.patch
1 From: Max Staudt <openwrt.max@enpas.org>
2 Date: Wed, 15 Jan 2014 18:51:13 +0000
3 Subject: [PATCH] brcm63xx: 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 @@ -1332,6 +1332,41 @@ 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 +
20 +       .enetsw = {
21 +               .used_ports = {
22 +                       [0] = {
23 +                               .used   = 1,
24 +                               .phy_id = 1,
25 +                               .name   = "Port 1",
26 +                       },
27 +
28 +                       [1] = {
29 +                               .used   = 1,
30 +                               .phy_id = 2,
31 +                               .name   = "Port 2",
32 +                       },
33 +
34 +                       [2] = {
35 +                               .used   = 1,
36 +                               .phy_id = 3,
37 +                               .name   = "Port 3",
38 +                       },
39 +
40 +                       [3] = {
41 +                               .used   = 1,
42 +                               .phy_id = 4,
43 +                               .name   = "Port 4",
44 +                       },
45 +               },
46 +       },
47 +};
48  #endif /* CONFIG_BCM63XX_CPU_6362 */
49  
50  /*
51 @@ -1495,6 +1530,7 @@ static const struct board_info __initcon
52  
53  #ifdef CONFIG_BCM63XX_CPU_6362
54         &board_nb6,
55 +       &board_fast2504n,
56  #endif
57  
58  #ifdef CONFIG_BCM63XX_CPU_6368
59 @@ -1576,6 +1612,7 @@ static struct of_device_id const bcm963x
60         { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
61  #endif
62  #ifdef CONFIG_BCM63XX_CPU_6362
63 +       { .compatible = "sagem,f@st2504n", .data = &board_fast2504n, },
64         { .compatible = "sfr,nb6-ser-r0", .data = &board_nb6, },
65  #endif
66  #ifdef CONFIG_BCM63XX_CPU_6368