bcm63xx: reorganize board patches
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 563-board_bcm6348-tecom-gw6000-gw6200.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1002,6 +1002,46 @@ static struct board_info __initdata boar
4 .has_ohci0 = 1,
5 };
6
7 +static struct board_info __initdata board_gw6200 = {
8 + .name = "GW6200",
9 + .expected_cpu_id = 0x6348,
10 +
11 + .has_pci = 1,
12 + .has_ohci0 = 1,
13 +
14 + .has_enet0 = 1,
15 + .enet0 = {
16 + .has_phy = 1,
17 + .use_internal_phy = 1,
18 + },
19 +
20 + .has_enet1 = 1,
21 + .enet1 = {
22 + .force_speed_100 = 1,
23 + .force_duplex_full = 1,
24 + },
25 +};
26 +
27 +static struct board_info __initdata board_gw6000 = {
28 + .name = "GW6000",
29 + .expected_cpu_id = 0x6348,
30 +
31 + .has_pci = 1,
32 + .has_ohci0 = 1,
33 +
34 + .has_enet0 = 1,
35 + .enet0 = {
36 + .has_phy = 1,
37 + .use_internal_phy = 1,
38 + },
39 +
40 + .has_enet1 = 1,
41 + .enet1 = {
42 + .force_speed_100 = 1,
43 + .force_duplex_full = 1,
44 + },
45 +};
46 +
47 static struct board_info __initdata board_FAST2404 = {
48 .name = "F@ST2404",
49 .expected_cpu_id = 0x6348,
50 @@ -1287,6 +1327,8 @@ static const struct board_info __initcon
51 #ifdef CONFIG_BCM63XX_CPU_6348
52 &board_96348r,
53 &board_96348gw,
54 + &board_gw6000,
55 + &board_gw6200,
56 &board_96348gw_10,
57 &board_96348gw_11,
58 &board_FAST2404,
59 @@ -1353,6 +1395,8 @@ static struct of_device_id const bcm963x
60 { .compatible = "netgear,dg834gt-pn", .data = &board_96348gw_10, },
61 { .compatible = "sagem,fast-2404", .data = &board_FAST2404, },
62 { .compatible = "t-com,speedport-w-500v", .data = &board_spw500v, },
63 + { .compatible = "tecom,gw6000", .data = &board_gw6000, },
64 + { .compatible = "tecom,gw6200", .data = &board_gw6200, },
65 { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
66 { .compatible = "usrobotics,usr9108", .data = &board_96348gw_a, },
67 #endif /* CONFIG_BCM63XX_CPU_6348 */