brcm63xx: move buttons and leds to dts files
[openwrt.git] / target / linux / brcm63xx / patches-3.18 / 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 @@ -1834,6 +1834,43 @@ static struct board_info __initdata boar
10         .devs = nb6_devices,
11         .num_devs = ARRAY_SIZE(nb6_devices),
12  };
13 +
14 +static struct board_info __initdata board_fast2504n = {
15 +       .name                           = "F@ST2504n",
16 +       .expected_cpu_id                = 0x6362,
17 +
18 +       .has_uart0                      = 1,
19 +
20 +       .has_enetsw                     = 1,
21 +
22 +       .enetsw = {
23 +               .used_ports = {
24 +                       [0] = {
25 +                               .used   = 1,
26 +                               .phy_id = 1,
27 +                               .name   = "Port 1",
28 +                       },
29 +
30 +                       [1] = {
31 +                               .used   = 1,
32 +                               .phy_id = 2,
33 +                               .name   = "Port 2",
34 +                       },
35 +
36 +                       [2] = {
37 +                               .used   = 1,
38 +                               .phy_id = 3,
39 +                               .name   = "Port 3",
40 +                       },
41 +
42 +                       [3] = {
43 +                               .used   = 1,
44 +                               .phy_id = 4,
45 +                               .name   = "Port 4",
46 +                       },
47 +               },
48 +       },
49 +};
50  #endif /* CONFIG_BCM63XX_CPU_6362 */
51  
52  /*
53 @@ -1999,6 +2036,7 @@ static const struct board_info __initcon
54  
55  #ifdef CONFIG_BCM63XX_CPU_6362
56         &board_nb6,
57 +       &board_fast2504n,
58  #endif
59  
60  #ifdef CONFIG_BCM63XX_CPU_6368
61 @@ -2073,6 +2111,7 @@ static struct of_device_id const bcm963x
62         { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
63  #endif
64  #ifdef CONFIG_BCM63XX_CPU_6362
65 +       { .compatible = "sagem,f@st2504n", .data = &board_fast2504n, },
66         { .compatible = "sfr,nb6-ser-r0", .data = &board_nb6, },
67  #endif
68  #ifdef CONFIG_BCM63XX_CPU_6368