brcm63xx: 3.10: backport multi-board support
[openwrt.git] / target / linux / brcm63xx / patches-3.10 / 533-board_rta770bw.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -758,6 +758,55 @@ 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 +               .has_phy                = 1,
18 +               .phy_id                 = 0,
19 +               .force_speed_100        = 1,
20 +               .force_duplex_full      = 1,
21 +       },
22 +
23 +       .leds = {
24 +               {
25 +                       .name           = "RTA770BW:green:usb",
26 +                       .gpio           = 7,
27 +                       .active_low     = 1,
28 +               },
29 +               {
30 +                       .name           = "RTA770BW:green:adsl",
31 +                       .gpio           = 8,
32 +               },
33 +               {
34 +                       .name           = "RTA770BW:green:diag",
35 +                       .gpio           = 10,
36 +                       .active_low     = 1,
37 +               },
38 +               {
39 +                       .name           = "RTA770BW:green:wlan",
40 +                       .gpio           = 11,
41 +                       .active_low     = 1,
42 +               },
43 +       },
44 +
45 +       .buttons = {
46 +               {
47 +                       .desc           = "reset",
48 +                       .gpio           = 13,
49 +                       .type           = EV_KEY,
50 +                       .code           = KEY_RESTART,
51 +                       .active_low     = 1,
52 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
53 +               },
54 +       },
55 +};
56  #endif
57  
58  /*
59 @@ -3244,6 +3293,7 @@ static const struct board_info __initcon
60  #endif
61  #ifdef CONFIG_BCM63XX_CPU_6345
62         &board_96345gw2,
63 +       &board_rta770bw,
64  #endif
65  #ifdef CONFIG_BCM63XX_CPU_6348
66         &board_96348r,