903068a842c13f1553772e722f1f53c866c3e8ff
[openwrt.git] / target / linux / brcm63xx / patches-3.18 / 570-board_HG655b.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1928,6 +1928,53 @@
4  
5         .spis = DGND3700v1_3800B_spi_devices,
6         .num_spis = ARRAY_SIZE(DGND3700v1_3800B_spi_devices),
7 +};
8 +
9 +static struct board_info __initdata board_HG655b = {
10 +       .name                           = "HW65x",
11 +       .expected_cpu_id                = 0x6368,
12 +
13 +       .has_uart0                      = 1,
14 +       .has_pci                        = 1,
15 +       .has_ohci0                      = 1,
16 +       .has_ehci0                      = 1,
17 +       .num_usbh_ports                 = 2,
18 +
19 +       .has_caldata                    = 1,
20 +       .caldata = {
21 +               {
22 +                       .vendor                 = PCI_VENDOR_ID_RALINK,
23 +                       .caldata_offset         = 0x7c0000,
24 +                       .slot                   = 1,
25 +                       .eeprom                 = "rt2x00.eeprom",
26 +               },
27 +       },
28 +
29 +       .has_enetsw                     = 1,
30 +       .enetsw = {
31 +               .used_ports = {
32 +                       [0] = {
33 +                               .used           = 1,
34 +                               .phy_id         = 1,
35 +                               .name           = "port1",
36 +                       },
37 +                       [1] = {
38 +                               .used           = 1,
39 +                               .phy_id         = 2,
40 +                               .name           = "port2",
41 +                       },
42 +                       [2] = {
43 +                               .used           = 1,
44 +                               .phy_id         = 3,
45 +                               .name           = "port3",
46 +                       },
47 +                       [3] = {
48 +                               .used           = 1,
49 +                               .phy_id         = 4,
50 +                               .name           = "port4",
51 +                       },
52 +               },
53 +       },
54  };
55  
56  static struct sprom_fixup __initdata vr3025u_fixups[] = {
57 @@ -2380,6 +2427,7 @@
58         &board_96368mvwg,
59         &board_96368mvngr,
60         &board_DGND3700v1_3800B,
61 +       &board_HG655b,
62         &board_P870HW51A_V2,
63         &board_VR3025u,
64         &board_VR3025un,
65 @@ -2483,6 +2531,7 @@
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