brcm63xx: Add DT support for 96368MVNgr
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 565-board_hw520.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -3227,6 +3227,57 @@ 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 + .of_board_id = "huawei,hg520v",
10 + .expected_cpu_id = 0x6358,
11 +
12 + .has_uart0 = 1,
13 + .has_pci = 1,
14 + .use_fallback_sprom = 1,
15 + .has_ohci0 = 1,
16 + .has_ehci0 = 1,
17 +
18 + .has_enet0 = 1,
19 + .enet0 = {
20 + .has_phy = 1,
21 + .use_internal_phy = 1,
22 + },
23 +
24 + .has_enet1 = 1,
25 + .enet1 = {
26 + .has_phy = 1,
27 + .phy_id = 0,
28 + .force_speed_100 = 1,
29 + .force_duplex_full = 1,
30 + },
31 +
32 + .leds = {
33 + {
34 + .name = "HW520:green:net",
35 + .gpio = 32,
36 + .active_low = 1,
37 + },
38 + },
39 +
40 + .buttons = {
41 + {
42 + .desc = "reset",
43 + .gpio = 37,
44 + .active_low = 1,
45 + .type = EV_KEY,
46 + .code = KEY_RESTART,
47 + .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
48 + },
49 + },
50 +
51 + .fallback_sprom = {
52 + .type = SPROM_BCM4318,
53 + .pci_bus = 0,
54 + .pci_dev = 1,
55 + },
56 +};
57 +
58 static struct board_info __initdata board_HW553 = {
59 .name = "HW553",
60 .of_board_id = "huawei,hg553",
61 @@ -4960,6 +5011,7 @@ static const struct board_info __initcon
62 &board_nb4_ser_r0,
63 &board_nb4_fxc_r1,
64 &board_ct6373_1,
65 + &board_HW520,
66 &board_HW553,
67 &board_HW556_A,
68 &board_HW556_B,