brcm63xx: add kernel 3.18 support
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-3.18 / 565-board_hw520.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -3206,6 +3206,56 @@ static struct board_info __initdata boar
4 .num_spis = ARRAY_SIZE(ct6373_spi_devices),
5 };
6
7 +static struct board_info __initdata board_HW520 = {
8 + .name = "HW6358GW_B",
9 + .expected_cpu_id = 0x6358,
10 +
11 + .has_uart0 = 1,
12 + .has_pci = 1,
13 + .use_fallback_sprom = 1,
14 + .has_ohci0 = 1,
15 + .has_ehci0 = 1,
16 +
17 + .has_enet0 = 1,
18 + .enet0 = {
19 + .has_phy = 1,
20 + .use_internal_phy = 1,
21 + },
22 +
23 + .has_enet1 = 1,
24 + .enet1 = {
25 + .has_phy = 1,
26 + .phy_id = 0,
27 + .force_speed_100 = 1,
28 + .force_duplex_full = 1,
29 + },
30 +
31 + .leds = {
32 + {
33 + .name = "HW520:green:net",
34 + .gpio = 32,
35 + .active_low = 1,
36 + },
37 + },
38 +
39 + .buttons = {
40 + {
41 + .desc = "reset",
42 + .gpio = 37,
43 + .active_low = 1,
44 + .type = EV_KEY,
45 + .code = KEY_RESTART,
46 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
47 + },
48 + },
49 +
50 + .fallback_sprom = {
51 + .type = SPROM_BCM4318,
52 + .pci_bus = 0,
53 + .pci_dev = 1,
54 + },
55 +};
56 +
57 static struct board_info __initdata board_HW553 = {
58 .name = "HW553",
59 .expected_cpu_id = 0x6358,
60 @@ -4928,6 +4978,7 @@ static const struct board_info __initcon
61 &board_nb4_ser_r0,
62 &board_nb4_fxc_r1,
63 &board_ct6373_1,
64 + &board_HW520,
65 &board_HW553,
66 &board_HW556_A,
67 &board_HW556_B,
68 @@ -5002,6 +5053,7 @@ static struct of_device_id const bcm963x
69 { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
70 { .compatible = "d-link,dsl-2650u", .data = &board_96358vw2, },
71 { .compatible = "d-link,dva-g3810bn/tl", .data = &board_DVAG3810BN, },
72 + { .compatible = "huawei,hg520v", .data = &board_HW520, },
73 { .compatible = "huawei,hg553", .data = &board_HW553, },
74 { .compatible = "huawei,hg556a-a", .data = &board_HW556_A, },
75 { .compatible = "huawei,hg556a-b", .data = &board_HW556_B, },