bcm63xx: add 3.9 support
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.9 / 504-board_dsl_274xb_rev_c.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -854,6 +854,61 @@ static struct board_info __initdata boar
4 .has_ohci0 = 1,
5 };
6
7 +/* D-Link DSL-274xB revison C2/C3 */
8 +static struct board_info __initdata board_dsl_274xb_rev_c = {
9 + .name = "AW4139",
10 + .expected_cpu_id = 0x6358,
11 +
12 + .has_uart0 = 1,
13 + .has_enet1 = 1,
14 + .has_pci = 1,
15 +
16 + .enet1 = {
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 = "dsl-274xb:green:power",
26 + .gpio = 5,
27 + .active_low = 1,
28 + .default_trigger = "default-on",
29 + },
30 + {
31 + .name = "dsl-274xb:red:power",
32 + .gpio = 4,
33 + .active_low = 1,
34 + },
35 + {
36 + .name = "dsl-274xb:green:adsl",
37 + .gpio = 9,
38 + .active_low = 1,
39 + },
40 + {
41 + .name = "dsl-274xb:green:internet",
42 + .gpio = 2,
43 + },
44 + {
45 + .name = "dsl-274xb:red:internet",
46 + .gpio = 10,
47 + },
48 + },
49 +
50 + .buttons = {
51 + {
52 + .desc = "reset",
53 + .gpio = 34,
54 + .active_low = 1,
55 + .type = EV_KEY,
56 + .code = KEY_RESTART,
57 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
58 + },
59 + },
60 +};
61 +
62 struct spi_gpio_platform_data nb4_spi_gpio_data = {
63 .sck = NB4_SPI_GPIO_CLK,
64 .mosi = NB4_SPI_GPIO_MOSI,
65 @@ -1478,6 +1533,7 @@ static const struct board_info __initcon
66 &board_AGPFS0,
67 &board_CPVA642,
68 &board_DWVS0,
69 + &board_dsl_274xb_rev_c,
70 &board_nb4_ser_r0,
71 &board_nb4_ser_r1,
72 &board_nb4_ser_r2,