brcm63xx: move board compatible strings into a table
[openwrt/staging/yousong.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 @@ -1458,6 +1458,83 @@ 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 + .use_fallback_sprom = 1,
17 +
18 + .enet1 = {
19 + .has_phy = 1,
20 + .phy_id = 0,
21 + .force_speed_100 = 1,
22 + .force_duplex_full = 1,
23 + },
24 +
25 + .has_ohci0 = 1,
26 + .has_ehci0 = 1,
27 + .num_usbh_ports = 2,
28 +
29 + .leds = {
30 + {
31 + .name = "HW553:red:adsl",
32 + .gpio = 34,
33 + .active_low = 1,
34 + },
35 + {
36 + .name = "HW553:blue:adsl",
37 + .gpio = 35,
38 + .active_low = 1,
39 + },
40 + {
41 + .name = "HW553:red:lan",
42 + .gpio = 22,
43 + .active_low = 1,
44 + },
45 + {
46 + .name = "HW553:blue:lan",
47 + .gpio = 23,
48 + .active_low = 1,
49 + },
50 + {
51 + .name = "HW553:red:power",
52 + .gpio = 5,
53 + .active_low = 1,
54 + },
55 + {
56 + .name = "HW553:blue:power",
57 + .gpio = 4,
58 + .active_low = 1,
59 + .default_trigger = "default-on",
60 + },
61 + {
62 + .name = "HW553:red:wifi",
63 + .gpio = 25,
64 + .active_low = 1,
65 + },
66 + {
67 + .name = "HW553:red:hspa",
68 + .gpio = 12,
69 + .active_low = 1,
70 + },
71 + {
72 + .name = "HW553:blue:hspa",
73 + .gpio = 13,
74 + .active_low = 1,
75 + },
76 + },
77 +
78 + .fallback_sprom = {
79 + .type = SPROM_BCM4318,
80 + .pci_bus = 0,
81 + .pci_dev = 1,
82 + },
83 +};
84 #endif /* CONFIG_BCM63XX_CPU_6358 */
85
86 /*
87 @@ -1503,6 +1580,7 @@ static const struct board_info __initcon
88 &board_dsl_274xb_rev_c,
89 &board_nb4_ser_r0,
90 &board_nb4_fxc_r1,
91 + &board_HW553,
92 #endif
93 };
94
95 @@ -1536,6 +1614,7 @@ static struct of_device_id const bcm963x
96 { .compatible = "brcm,bcm96358vw", .data = &board_96358vw, },
97 { .compatible = "brcm,bcm96358vw2", .data = &board_96358vw2, },
98 { .compatible = "d-link,dsl-274xb-c2", .data = &board_dsl_274xb_rev_c, },
99 + { .compatible = "huawei,hg553", .data = &board_HW553, },
100 { .compatible = "pirelli,a226g", .data = &board_DWVS0, },
101 { .compatible = "pirelli,a226m", .data = &board_DWVS0, },
102 { .compatible = "pirelli,agpf-s0", .data = &board_AGPFS0, },