brcm63xx: use dtb board detection for HW556
[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 @@ -3553,6 +3553,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 @@ -5372,6 +5422,7 @@ static const struct board_info __initcon
61 &board_nb4_fxc_r1,
62 &board_nb4_fxc_r2,
63 &board_ct6373_1,
64 + &board_HW520,
65 &board_HW553,
66 &board_HW556,
67 &board_HW556_A,