bcm63xx: add support for linux 3.8
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.8 / 519_board_CPVA502plus.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1116,6 +1116,46 @@ 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 + .has_phy = 1,
23 + .phy_id = 0,
24 + .force_speed_100 = 1,
25 + .force_duplex_full = 1,
26 + },
27 +
28 + .leds = {
29 + {
30 + .name = "CPVA502+:green:phone",
31 + .gpio = 0,
32 + .active_low = 1,
33 + },
34 + {
35 + .name = "CPVA502+:green:link",
36 + .gpio = 5,
37 + .active_low = 1,
38 + },
39 + {
40 + .name = "CPVA502+:green:feth1", /* FIXME:does gpio4 enable eth1 phy? */
41 + .gpio = 4,
42 + .active_low = 1,
43 + },
44 + },
45 +};
46 +
47 #endif
48
49 /*
50 @@ -2183,6 +2223,7 @@ static const struct board_info __initcon
51 &board_V2110,
52 &board_ct536_ct5621,
53 &board_96348A_122,
54 + &board_CPVA502plus,
55 #endif
56
57 #ifdef CONFIG_BCM63XX_CPU_6358