6d281ae9248120f4d54a4ac6d20c73812a87d137
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.14 / 508-board_hw553.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1471,6 +1471,84 @@ 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 + .of_board_id = "huawei,hg553",
11 + .expected_cpu_id = 0x6358,
12 +
13 + .has_uart0 = 1,
14 +
15 + .has_enet1 = 1,
16 + .has_pci = 1,
17 + .use_fallback_sprom = 1,
18 +
19 + .enet1 = {
20 + .has_phy = 1,
21 + .phy_id = 0,
22 + .force_speed_100 = 1,
23 + .force_duplex_full = 1,
24 + },
25 +
26 + .has_ohci0 = 1,
27 + .has_ehci0 = 1,
28 + .num_usbh_ports = 2,
29 +
30 + .leds = {
31 + {
32 + .name = "HW553:red:adsl",
33 + .gpio = 34,
34 + .active_low = 1,
35 + },
36 + {
37 + .name = "HW553:blue:adsl",
38 + .gpio = 35,
39 + .active_low = 1,
40 + },
41 + {
42 + .name = "HW553:red:lan",
43 + .gpio = 22,
44 + .active_low = 1,
45 + },
46 + {
47 + .name = "HW553:blue:lan",
48 + .gpio = 23,
49 + .active_low = 1,
50 + },
51 + {
52 + .name = "HW553:red:power",
53 + .gpio = 5,
54 + .active_low = 1,
55 + },
56 + {
57 + .name = "HW553:blue:power",
58 + .gpio = 4,
59 + .active_low = 1,
60 + .default_trigger = "default-on",
61 + },
62 + {
63 + .name = "HW553:red:wifi",
64 + .gpio = 25,
65 + .active_low = 1,
66 + },
67 + {
68 + .name = "HW553:red:hspa",
69 + .gpio = 12,
70 + .active_low = 1,
71 + },
72 + {
73 + .name = "HW553:blue:hspa",
74 + .gpio = 13,
75 + .active_low = 1,
76 + },
77 + },
78 +
79 + .fallback_sprom = {
80 + .type = SPROM_BCM4318,
81 + .pci_bus = 0,
82 + .pci_dev = 1,
83 + },
84 +};
85 #endif /* CONFIG_BCM63XX_CPU_6358 */
86
87 /*
88 @@ -1516,6 +1594,7 @@ static const struct board_info __initcon
89 &board_dsl_274xb_rev_c,
90 &board_nb4_ser_r0,
91 &board_nb4_fxc_r1,
92 + &board_HW553,
93 #endif
94 };
95