brcm63xx: convert RTA1320 to dts
[openwrt.git] / target / linux / brcm63xx / patches-3.18 / 509-board_rta1320_16m.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -245,6 +245,45 @@ static struct board_info __initdata boar
4                 },
5         },
6  };
7 +
8 +static struct board_info __initdata board_rta1320_16m = {
9 +       .name                           = "RTA1320_16M",
10 +       .expected_cpu_id                = 0x6338,
11 +
12 +       .has_uart0                      = 1,
13 +       .has_enet0                      = 1,
14 +
15 +       .enet0 = {
16 +               .has_phy                = 1,
17 +               .phy_id                 = 0,
18 +               .force_speed_100        = 1,
19 +               .force_duplex_full      = 1,
20 +       },
21 +
22 +               .leds = {
23 +               {
24 +                       .name           = "RTA1320_16M:green:adsl",
25 +                       .gpio           = 3,
26 +                       .active_low     = 1,
27 +               },
28 +               {
29 +                       .name           = "RTA1320_16M:green:ppp",
30 +                       .gpio           = 4,
31 +                       .active_low     = 1,
32 +               },
33 +               {
34 +                       .name           = "RTA1320_16M:green:power",
35 +                       .gpio           = 0,
36 +                       .active_low     = 1,
37 +                       .default_trigger = "default-on",
38 +               },
39 +               {
40 +                       .name           = "RTA1320_16M:green:stop",
41 +                       .gpio           = 1,
42 +                       .active_low     = 1,
43 +               },
44 +       },
45 +};
46  #endif /* CONFIG_BCM63XX_CPU_6338 */
47  
48  /*
49 @@ -1551,6 +1590,7 @@ static const struct board_info __initcon
50         &board_96338gw,
51         &board_96338w,
52         &board_96338w2_e7t,
53 +       &board_rta1320_16m,
54  #endif
55  #ifdef CONFIG_BCM63XX_CPU_6345
56         &board_96345gw2,
57 @@ -1595,6 +1635,7 @@ static struct of_device_id const bcm963x
58  #ifdef CONFIG_BCM63XX_CPU_6338
59         { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },
60         { .compatible = "brcm,bcm96338w", .data = &board_96338w, },
61 +       { .compatible = "dynalink,rta1320", .data = &board_rta1320_16m, },
62  #endif
63  #ifdef CONFIG_BCM63XX_CPU_6345
64         { .compatible = "brcm,bcm96345gw2", .data = &board_96345gw2, },