brcm63xx: setup internal switch leds for bcm6368
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-4.4 / 575-board_EVG2000.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -2014,6 +2014,43 @@ static struct board_info __initdata boar
4 .num_spis = ARRAY_SIZE(DGND3700v1_3800B_spi_devices),
5 };
6
7 +static struct sprom_fixup __initdata EVG2000_fixups[] = {
8 + { .offset = 219, .value = 0xec08 },
9 +};
10 +
11 +static struct board_info __initdata board_EVG2000 = {
12 + .name = "96369PVG",
13 + .expected_cpu_id = 0x6368,
14 +
15 + .has_uart0 = 1,
16 + .has_pci = 1,
17 + .has_ohci0 = 1,
18 + .has_ehci0 = 1,
19 + .num_usbh_ports = 2,
20 +
21 + .has_enetsw = 1,
22 + .enetsw = {
23 + .used_ports = {
24 + [5] = {
25 + .used = 1,
26 + .phy_id = 0xff,
27 + .bypass_link = 1,
28 + .force_speed = 1000,
29 + .force_duplex_full = 1,
30 + .name = "RGMII",
31 + },
32 + },
33 + },
34 + .use_fallback_sprom = 1,
35 + .fallback_sprom = {
36 + .type = SPROM_BCM4322,
37 + .pci_bus = 0,
38 + .pci_dev = 1,
39 + .board_fixups = EVG2000_fixups,
40 + .num_board_fixups = ARRAY_SIZE(EVG2000_fixups),
41 + },
42 +};
43 +
44 static struct board_info __initdata board_HG655b = {
45 .name = "HW65x",
46 .expected_cpu_id = 0x6368,
47 @@ -2614,6 +2651,7 @@ static const struct board_info __initcon
48 &board_96368mvwg,
49 &board_96368mvngr,
50 &board_DGND3700v1_3800B,
51 + &board_EVG2000,
52 &board_HG622,
53 &board_HG655b,
54 &board_P870HW51A_V2,
55 @@ -2726,6 +2764,7 @@ static struct of_device_id const bcm963x
56 { .compatible = "huawei,hg622", .data = &board_HG622, },
57 { .compatible = "huawei,hg655b", .data = &board_HG655b, },
58 { .compatible = "netgear,dgnd3700v1", .data = &board_DGND3700v1_3800B, },
59 + { .compatible = "netgear,evg2000", .data = &board_EVG2000, },
60 { .compatible = "zyxel,p870hw-51a-v2", .data = &board_P870HW51A_V2, },
61 #endif
62 #ifdef CONFIG_BCM63XX_CPU_63268