brcm63xx: move buttons and leds to dts files
[openwrt.git] / target / linux / brcm63xx / patches-3.18 / 524-board_dsl_274xb_rev_f.patch
1 From 66808f706b3dcd83a9f5157997ff478a880a2906 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Mon, 30 Apr 2012 09:10:51 +0200
4 Subject: [PATCH 70/79] MIPS: BCM63XX: Add board definition for D-Link
5  DSL-274xB rev F1
6
7 ---
8  arch/mips/bcm63xx/boards/board_bcm963xx.c |  104 +++++++++++++++++++++++++++++
9  1 files changed, 104 insertions(+), 0 deletions(-)
10
11 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
12 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
13 @@ -172,6 +172,51 @@ static struct board_info __initdata boar
14                 },
15         },
16  };
17 +
18 +static struct board_info __initdata board_dsl_274xb_f1 = {
19 +       .name                           = "AW4339U",
20 +       .expected_cpu_id                = 0x6328,
21 +
22 +       .has_uart0                      = 1,
23 +       .has_pci                        = 1,
24 +
25 +       .has_caldata                    = 1,
26 +       .caldata = {
27 +               {
28 +                       .vendor         = PCI_VENDOR_ID_ATHEROS,
29 +                       .caldata_offset = 0x7d1000,
30 +                       .slot           = 0,
31 +                       .led_pin        = -1,
32 +               },
33 +       },
34 +
35 +       .has_enetsw                     = 1,
36 +
37 +       .enetsw = {
38 +               .used_ports = {
39 +                       [0] = {
40 +                               .used   = 1,
41 +                               .phy_id = 1,
42 +                               .name   = "Port 4",
43 +                       },
44 +                       [1] = {
45 +                               .used   = 1,
46 +                               .phy_id = 2,
47 +                               .name   = "Port 3",
48 +                       },
49 +                       [2] = {
50 +                               .used   = 1,
51 +                               .phy_id = 3,
52 +                               .name   = "Port 2",
53 +                       },
54 +                       [3] = {
55 +                               .used   = 1,
56 +                               .phy_id = 4,
57 +                               .name   = "Port 1",
58 +                       },
59 +               },
60 +       },
61 +};
62  #endif /* CONFIG_BCM63XX_CPU_6328 */
63  
64  /*
65 @@ -1334,6 +1379,7 @@ static const struct board_info __initcon
66  #ifdef CONFIG_BCM63XX_CPU_6328
67         &board_96328avng,
68         &board_963281TAN,
69 +       &board_dsl_274xb_f1,
70  #endif
71  #ifdef CONFIG_BCM63XX_CPU_6338
72         &board_96338gw,
73 @@ -1392,6 +1438,7 @@ static struct of_device_id const bcm963x
74  #ifdef CONFIG_BCM63XX_CPU_6328
75         { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
76         { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
77 +       { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
78  #endif
79  #ifdef CONFIG_BCM63XX_CPU_6338
80         { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },