brcm63xx: add kernel 3.18 support
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-3.18 / 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 @@ -886,6 +886,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 @@ -1185,6 +1240,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_fxc_r1,
72 #endif
73 @@ -1218,6 +1274,7 @@ static struct of_device_id const bcm963x
74 { .compatible = "alcatel,rg100a", .data = &board_96358vw2, },
75 { .compatible = "brcm,bcm96358vw", .data = &board_96358vw, },
76 { .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
77 + { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
78 { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
79 { .compatible = "pirelli,a226g", .data = &board_DWVS0, },
80 { .compatible = "pirelli,a226m", .data = &board_DWVS0, },