[brcm63xx] add preliminary support for 3.6 kernel
[openwrt.git] / target / linux / brcm63xx / patches-3.6 / 519_board_CPVA502plus.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1091,6 +1091,44 @@ static struct board_info __initdata boar
4                 },
5         },
6  };
7 +
8 +static struct board_info __initdata board_CPVA502plus = {
9 +       .name                           = "CPVA502+",
10 +       .expected_cpu_id                = 0x6348,
11 +
12 +       .has_uart0                      = 1,
13 +       .has_enet0                      = 1,
14 +       .has_enet1                      = 1,
15 +       .has_pci                        = 1,
16 +
17 +       .enet0 = {
18 +               .has_phy                = 1,
19 +               .use_internal_phy       = 1,
20 +       },
21 +       .enet1 = {
22 +               .force_speed_100        = 1,
23 +               .force_duplex_full      = 1,
24 +       },
25 +
26 +       .leds = {
27 +               {
28 +                       .name           = "CPVA502+:green:phone",
29 +                       .gpio           = 0,
30 +                       .active_low     = 1,
31 +               },
32 +               {
33 +                       .name           = "CPVA502+:green:link",
34 +                       .gpio           = 5,
35 +                       .active_low     = 1,
36 +               },
37 +               {
38 +                       .name           = "CPVA502+:green:feth1", /* FIXME:does gpio4 enable eth1 phy? */
39 +                       .gpio           = 4,
40 +                       .active_low     = 1,
41 +               },
42 +       },
43 +};
44 +
45  #endif
46  
47  /*
48 @@ -2142,6 +2180,7 @@ static const struct board_info __initdat
49         &board_V2110,
50         &board_ct536_ct5621,
51         &board_96348A_122,
52 +       &board_CPVA502plus,
53  #endif
54  
55  #ifdef CONFIG_BCM63XX_CPU_6358