brcm63xx: register SPI controllers through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-4.4 / 570-board_HG655b.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1896,6 +1896,53 @@ static struct board_info __initdata boar
4 .num_spis = ARRAY_SIZE(DGND3700v1_3800B_spi_devices),
5 };
6
7 +static struct board_info __initdata board_HG655b = {
8 + .name = "HW65x",
9 + .expected_cpu_id = 0x6368,
10 +
11 + .has_uart0 = 1,
12 + .has_pci = 1,
13 + .has_ohci0 = 1,
14 + .has_ehci0 = 1,
15 + .num_usbh_ports = 2,
16 +
17 + .has_caldata = 1,
18 + .caldata = {
19 + {
20 + .vendor = PCI_VENDOR_ID_RALINK,
21 + .caldata_offset = 0x7c0000,
22 + .slot = 1,
23 + .eeprom = "rt2x00.eeprom",
24 + },
25 + },
26 +
27 + .has_enetsw = 1,
28 + .enetsw = {
29 + .used_ports = {
30 + [0] = {
31 + .used = 1,
32 + .phy_id = 1,
33 + .name = "port1",
34 + },
35 + [1] = {
36 + .used = 1,
37 + .phy_id = 2,
38 + .name = "port2",
39 + },
40 + [2] = {
41 + .used = 1,
42 + .phy_id = 3,
43 + .name = "port3",
44 + },
45 + [3] = {
46 + .used = 1,
47 + .phy_id = 4,
48 + .name = "port4",
49 + },
50 + },
51 + },
52 +};
53 +
54 static struct sprom_fixup __initdata vr3025u_fixups[] = {
55 { .offset = 97, .value = 0xfeb3 },
56 { .offset = 98, .value = 0x1618 },
57 @@ -2346,6 +2393,7 @@ static const struct board_info __initcon
58 &board_96368mvwg,
59 &board_96368mvngr,
60 &board_DGND3700v1_3800B,
61 + &board_HG655b,
62 &board_P870HW51A_V2,
63 &board_VR3025u,
64 &board_VR3025un,
65 @@ -2449,6 +2497,7 @@ static struct of_device_id const bcm963x
66 { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
67 { .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
68 { .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
69 + { .compatible = "huawei,hg655b", .data = &board_HG655b, },
70 { .compatible = "netgear,dgnd3700v1", .data = &board_DGND3700v1_3800B, },
71 { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
72 #endif