[brcm63xx] add support for the Dynalink RTA770BW board
[openwrt.git] / target / linux / brcm63xx / patches-3.3 / 553-board_rta770bw.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -735,6 +735,53 @@ static struct board_info __initdata boar
4  
5         .has_uart0                      = 1,
6  };
7 +
8 +static struct board_info __initdata board_rta770bw = {
9 +       .name                           = "RTA770BW",
10 +       .expected_cpu_id                = 0x6345,
11 +
12 +       .has_uart0                      = 1,
13 +
14 +       .has_enet0                      = 1,
15 +
16 +       .enet0 = {
17 +               .force_speed_100        = 1,
18 +               .force_duplex_full      = 1,
19 +       },
20 +
21 +       .leds = {
22 +               {
23 +                       .name           = "RTA770BW:green:usb",
24 +                       .gpio           = 7,
25 +                       .active_low     = 1,
26 +               },
27 +               {
28 +                       .name           = "RTA770BW:green:adsl",
29 +                       .gpio           = 8,
30 +               },
31 +               {
32 +                       .name           = "RTA770BW:green:diag",
33 +                       .gpio           = 10,
34 +                       .active_low     = 1,
35 +               },
36 +               {
37 +                       .name           = "RTA770BW:green:wlan",
38 +                       .gpio           = 11,
39 +                       .active_low     = 1,
40 +               },
41 +       },
42 +
43 +       .buttons = {
44 +               {
45 +                       .desc           = "reset",
46 +                       .gpio           = 13,
47 +                       .type           = EV_KEY,
48 +                       .code           = KEY_RESTART,
49 +                       .active_low     = 1,
50 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
51 +               },
52 +       },
53 +};
54  #endif
55  
56  /*
57 @@ -3260,6 +3307,7 @@ static const struct board_info __initdat
58  #endif
59  #ifdef CONFIG_BCM63XX_CPU_6345
60         &board_96345gw2,
61 +       &board_rta770bw,
62  #endif
63  #ifdef CONFIG_BCM63XX_CPU_6348
64         &board_96348r,