[brcm63xx] add preliminary support for 3.6 kernel
[openwrt.git] / target / linux / brcm63xx / patches-3.6 / 508-board_hw553.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1708,6 +1708,80 @@ static struct board_info __initdata boar
4         .spis = nb4_spi_devices,
5         .num_spis = ARRAY_SIZE(nb4_spi_devices),
6  };
7 +
8 +static struct board_info __initdata board_HW553 = {
9 +       .name                           = "HW553",
10 +       .expected_cpu_id                = 0x6358,
11 +
12 +       .has_uart0                      = 1,
13 +
14 +       .has_enet0                      = 1,
15 +       .has_enet1                      = 1,
16 +       .has_pci                        = 1,
17 +
18 +       .enet0 = {
19 +               .has_phy                = 1,
20 +               .use_internal_phy       = 1,
21 +       },
22 +
23 +       .enet1 = {
24 +               .force_speed_100        = 1,
25 +               .force_duplex_full      = 1,
26 +       },
27 +
28 +       .has_ohci0 = 1,
29 +       .has_ehci0 = 1,
30 +
31 +       .leds = {
32 +               {
33 +                       .name           = "HW553:red:lan",
34 +                       .gpio           = 34,
35 +                       .active_low     = 1,
36 +               },
37 +               {
38 +                       .name           = "HW553:blue:lan",
39 +                       .gpio           = 35,
40 +                       .active_low     = 1,
41 +               },
42 +               {
43 +                       .name           = "HW553:red:adsl",
44 +                       .gpio           = 22,
45 +                       .active_low     = 1,
46 +               },
47 +               {
48 +                       .name           = "HW553:blue:adsl",
49 +                       .gpio           = 23,
50 +                       .active_low     = 1,
51 +               },
52 +               {
53 +                       .name           = "HW553:red:power",
54 +                       .gpio           = 5,
55 +                       .active_low     = 1,
56 +                       .default_trigger = "default-on",
57 +               },
58 +
59 +               {
60 +                       .name           = "HW553:blue:power",
61 +                       .gpio           = 4,
62 +                       .active_low     = 1,
63 +               },
64 +               {
65 +                       .name           = "HW553:red:wifi",
66 +                       .gpio           = 25,
67 +                       .active_low     = 1,
68 +               },
69 +               {
70 +                       .name           = "HW553:red:internetkey",
71 +                       .gpio           = 12,
72 +                       .active_low     = 1,
73 +               },
74 +               {
75 +                       .name           = "HW553:blue:internetkey",
76 +                       .gpio           = 13,
77 +                       .active_low     = 1,
78 +               },
79 +       },
80 +};
81  #endif
82  
83  /*
84 @@ -1753,6 +1827,7 @@ static const struct board_info __initdat
85         &board_nb4_ser_r2,
86         &board_nb4_fxc_r1,
87         &board_nb4_fxc_r2,
88 +       &board_HW553,
89  #endif
90  };
91