brcm63xx: replace CFEFIXUP usage with dtb based detection
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 504-board_dsl_274xb_rev_c.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -907,6 +907,62 @@ static struct board_info __initdata boar
4         .has_ohci0                      = 1,
5  };
6  
7 +/* D-Link DSL-274xB revison C2/C3 */
8 +static struct board_info __initdata board_dsl_274xb_rev_c = {
9 +       .name                           = "AW4139",
10 +       .of_board_id                    = "d-link,dsl-274xb-c2",
11 +       .expected_cpu_id                = 0x6358,
12 +
13 +       .has_uart0                      = 1,
14 +       .has_enet1                      = 1,
15 +       .has_pci                        = 1,
16 +
17 +       .enet1 = {
18 +               .has_phy                = 1,
19 +               .phy_id                 = 0,
20 +               .force_speed_100        = 1,
21 +               .force_duplex_full      = 1,
22 +       },
23 +
24 +       .leds = {
25 +               {
26 +                       .name           = "dsl-274xb:green:power",
27 +                       .gpio           = 5,
28 +                       .active_low     = 1,
29 +                       .default_trigger = "default-on",
30 +               },
31 +               {
32 +                       .name           = "dsl-274xb:red:power",
33 +                       .gpio           = 4,
34 +                       .active_low     = 1,
35 +               },
36 +               {
37 +                       .name           = "dsl-274xb:green:adsl",
38 +                       .gpio           = 9,
39 +                       .active_low     = 1,
40 +               },
41 +               {
42 +                       .name           = "dsl-274xb:green:internet",
43 +                       .gpio           = 2,
44 +               },
45 +               {
46 +                       .name           = "dsl-274xb:red:internet",
47 +                       .gpio           = 10,
48 +               },
49 +       },
50 +
51 +       .buttons = {
52 +               {
53 +                       .desc           = "reset",
54 +                       .gpio           = 34,
55 +                       .active_low     = 1,
56 +                       .type           = EV_KEY,
57 +                       .code           = KEY_RESTART,
58 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
59 +               },
60 +       },
61 +};
62 +
63  struct spi_gpio_platform_data nb4_spi_gpio_data = {
64         .sck            = NB4_SPI_GPIO_CLK,
65         .mosi           = NB4_SPI_GPIO_MOSI,
66 @@ -1543,6 +1599,7 @@ static const struct board_info __initcon
67         &board_AGPFS0,
68         &board_CPVA642,
69         &board_DWVS0,
70 +       &board_dsl_274xb_rev_c,
71         &board_nb4_ser_r0,
72         &board_nb4_ser_r1,
73         &board_nb4_ser_r2,