brcm63xx: register SPI controllers through DT
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-4.4 / 571-board_fast2704n.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -216,6 +216,46 @@ static struct board_info __initdata boar
4 .num_board_fixups = ARRAY_SIZE(dsl2751b_e1_fixups),
5 },
6 };
7 +
8 +static struct board_info __initdata board_FAST2704N = {
9 + .name = "F@ST2704N",
10 + .expected_cpu_id = 0x6318,
11 +
12 + .has_uart0 = 1,
13 + .has_pci = 1,
14 + .use_fallback_sprom = 1,
15 +
16 + .has_enetsw = 1,
17 +
18 + .has_ohci0 = 1,
19 + .has_ehci0 = 1,
20 + .num_usbh_ports = 1,
21 +
22 + .enetsw = {
23 + .used_ports = {
24 + [0] = {
25 + .used = 1,
26 + .phy_id = 1,
27 + .name = "Port 1",
28 + },
29 + [1] = {
30 + .used = 1,
31 + .phy_id = 2,
32 + .name = "Port 2",
33 + },
34 + [2] = {
35 + .used = 1,
36 + .phy_id = 3,
37 + .name = "Port 3",
38 + },
39 + [3] = {
40 + .used = 1,
41 + .phy_id = 4,
42 + .name = "Port 4",
43 + },
44 + },
45 + },
46 +};
47 #endif /* CONFIG_BCM63XX_CPU_6318 */
48
49 /*
50 @@ -2318,6 +2358,7 @@ static const struct board_info __initcon
51 &board_96318ref,
52 &board_96318ref_p300,
53 &board_dsl_2751b_d1,
54 + &board_FAST2704N,
55 #endif
56 #ifdef CONFIG_BCM63XX_CPU_6328
57 &board_96328avng,
58 @@ -2415,6 +2456,7 @@ static struct of_device_id const bcm963x
59 { .compatible = "brcm,bcm96318ref", .data = &board_96318ref, },
60 { .compatible = "brcm,bcm96318ref_p300", .data = &board_96318ref_p300, },
61 { .compatible = "d-link,dsl-275xb-d", .data = &board_dsl_2751b_d1, },
62 + { .compatible = "sagem,f@st2704n", .data = &board_FAST2704N, },
63 #endif
64 #ifdef CONFIG_BCM63XX_CPU_6328
65 { .compatible = "adb,a4001n", .data = &board_A4001N, },