brcm63xx: add missing bcm96329bhr profile and dts
[openwrt.git] / target / linux / brcm63xx / patches-3.18 / 568-board_DGND3700v1_3800B.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1862,6 +1862,48 @@ static struct board_info __initdata boar
4         .has_ehci0 = 1,
5  };
6  
7 +static struct b53_platform_data DGND3700v1_3800B_b53_pdata = {
8 +       .alias    = "eth0",
9 +};
10 +
11 +static struct spi_board_info DGND3700v1_3800B_spi_devices[] = {
12 +       {
13 +               .modalias = "b53-switch",
14 +               .max_speed_hz = 781000,
15 +               .bus_num = 0,
16 +               .chip_select = 1,
17 +               .platform_data = &DGND3700v1_3800B_b53_pdata,
18 +       }
19 +};
20 +
21 +static struct board_info __initdata board_DGND3700v1_3800B = {
22 +       .name                           = "DGND3700v1_3800B",
23 +       .expected_cpu_id                = 0x6368,
24 +
25 +       .has_uart0                      = 1,
26 +       .has_pci                        = 1,
27 +       .has_ohci0                      = 1,
28 +       .has_ehci0                      = 1,
29 +       .num_usbh_ports                 = 2,
30 +
31 +       .has_enetsw                     = 1,
32 +       .enetsw = {
33 +               .used_ports = {
34 +                       [5] = {
35 +                               .used  = 1,
36 +                               .phy_id  = 0xff,
37 +                               .bypass_link = 1,
38 +                               .force_speed = 1000,
39 +                               .force_duplex_full = 1,
40 +                               .name  = "RGMII",
41 +                       },
42 +               },
43 +       },
44 +
45 +       .spis = DGND3700v1_3800B_spi_devices,
46 +       .num_spis = ARRAY_SIZE(DGND3700v1_3800B_spi_devices),
47 +};
48 +
49  static struct sprom_fixup __initdata vr3025u_fixups[] = {
50         { .offset = 97, .value = 0xfeb3 },
51         { .offset = 98, .value = 0x1618 },
52 @@ -2310,6 +2352,7 @@ static const struct board_info __initcon
53  #ifdef CONFIG_BCM63XX_CPU_6368
54         &board_96368mvwg,
55         &board_96368mvngr,
56 +       &board_DGND3700v1_3800B,
57         &board_P870HW51A_V2,
58         &board_VR3025u,
59         &board_VR3025un,
60 @@ -2412,6 +2455,7 @@ static struct of_device_id const bcm963x
61         { .compatible = "comtrend,vr-3025u", .data = &board_VR3025u, },
62         { .compatible = "comtrend,vr-3025un", .data = &board_VR3025un, },
63         { .compatible = "comtrend,wap-5813n", .data = &board_WAP5813n, },
64 +       { .compatible = "netgear,dgnd3700v1", .data = &board_DGND3700v1_3800B, },
65         { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
66  #endif
67  #ifdef CONFIG_BCM63XX_CPU_63268