bcm63xx: refactor board patches
[openwrt/openwrt.git] / target / linux / bcm63xx / patches-5.4 / 519-bcm63xx-add-support-for-96368MVNgr-board.patch
1 From f457fc2eb9bb915b5a4d251c7c68d4694cf07b01 Mon Sep 17 00:00:00 2001
2 From: Maxime Bizon <mbizon@freebox.fr>
3 Date: Fri, 4 Nov 2011 12:33:48 +0100
4 Subject: [PATCH 33/63] bcm63xx: add support for 96368MVNgr board.
5
6 ---
7 arch/mips/bcm63xx/boards/board_bcm963xx.c | 67 +++++++++++++++++++++++++++++
8 1 files changed, 67 insertions(+), 0 deletions(-)
9
10 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
11 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
12 @@ -819,6 +819,41 @@ static struct board_info __initdata boar
13 },
14 },
15 };
16 +
17 +static struct board_info __initdata board_96368mvngr = {
18 + .name = "96368MVNgr",
19 + .expected_cpu_id = 0x6368,
20 +
21 + .has_pci = 1,
22 + .has_ohci0 = 1,
23 + .has_ehci0 = 1,
24 +
25 + .has_enetsw = 1,
26 + .enetsw = {
27 + .used_ports = {
28 + [0] = {
29 + .used = 1,
30 + .phy_id = 1,
31 + .name = "port1",
32 + },
33 + [1] = {
34 + .used = 1,
35 + .phy_id = 2,
36 + .name = "port2",
37 + },
38 + [2] = {
39 + .used = 1,
40 + .phy_id = 3,
41 + .name = "port3",
42 + },
43 + [3] = {
44 + .used = 1,
45 + .phy_id = 4,
46 + .name = "port4",
47 + },
48 + },
49 + },
50 +};
51 #endif /* CONFIG_BCM63XX_CPU_6368 */
52
53 /*
54 @@ -874,6 +909,7 @@ static const struct board_info __initcon
55 #endif /* CONFIG_BCM63XX_CPU_6358 */
56 #ifdef CONFIG_BCM63XX_CPU_6368
57 &board_96368mvwg,
58 + &board_96368mvngr,
59 #endif /* CONFIG_BCM63XX_CPU_6368 */
60 };
61
62 @@ -935,6 +971,7 @@ static struct of_device_id const bcm963x
63 { .compatible = "telsey,cpva642", .data = &board_CPVA642, },
64 #endif
65 #ifdef CONFIG_BCM63XX_CPU_6368
66 + { .compatible = "brcm,bcm96368mvngr", .data = &board_96368mvngr, },
67 { .compatible = "brcm,bcm96368mvwg", .data = &board_96368mvwg, },
68 #endif
69 #ifdef CONFIG_BCM63XX_CPU_63268