brcm63xx: Fix HW553 support
[openwrt/staging/mkresin.git] / target / linux / brcm63xx / patches-3.10 / 508-board_hw553.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1764,6 +1764,76 @@ static struct board_info __initdata boar
4 .spis = nb4_spi_devices,
5 .num_spis = ARRAY_SIZE(nb4_spi_devices),
6 };
7 +
8 +static struct board_info __initdata board_HW553 = {
9 + .name = "HW553",
10 + .expected_cpu_id = 0x6358,
11 +
12 + .has_uart0 = 1,
13 +
14 + .has_enet1 = 1,
15 + .has_pci = 1,
16 +
17 + .enet1 = {
18 + .has_phy = 1,
19 + .phy_id = 0,
20 + .force_speed_100 = 1,
21 + .force_duplex_full = 1,
22 + },
23 +
24 + .has_ohci0 = 1,
25 + .has_ehci0 = 1,
26 + .num_usbh_ports = 2,
27 +
28 + .leds = {
29 + {
30 + .name = "HW553:red:adsl",
31 + .gpio = 34,
32 + .active_low = 1,
33 + },
34 + {
35 + .name = "HW553:blue:adsl",
36 + .gpio = 35,
37 + .active_low = 1,
38 + },
39 + {
40 + .name = "HW553:red:lan",
41 + .gpio = 22,
42 + .active_low = 1,
43 + },
44 + {
45 + .name = "HW553:blue:lan",
46 + .gpio = 23,
47 + .active_low = 1,
48 + },
49 + {
50 + .name = "HW553:red:power",
51 + .gpio = 5,
52 + .active_low = 1,
53 + },
54 + {
55 + .name = "HW553:blue:power",
56 + .gpio = 4,
57 + .active_low = 1,
58 + .default_trigger = "default-on",
59 + },
60 + {
61 + .name = "HW553:red:wifi",
62 + .gpio = 25,
63 + .active_low = 1,
64 + },
65 + {
66 + .name = "HW553:red:hspa",
67 + .gpio = 12,
68 + .active_low = 1,
69 + },
70 + {
71 + .name = "HW553:blue:hspa",
72 + .gpio = 13,
73 + .active_low = 1,
74 + },
75 + },
76 +};
77 #endif
78
79 /*
80 @@ -1812,6 +1882,7 @@ static const struct board_info __initcon
81 &board_nb4_ser_r2,
82 &board_nb4_fxc_r1,
83 &board_nb4_fxc_r2,
84 + &board_HW553,
85 #endif
86 };
87