f982660efd659e6b21208ef0160b663fee1e6e72
[openwrt/staging/chunkeey.git] / target / linux / bcm63xx / patches-5.4 / 522-board_dsl_274xb_rev_f.patch
1 From 66808f706b3dcd83a9f5157997ff478a880a2906 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Mon, 30 Apr 2012 09:10:51 +0200
4 Subject: [PATCH 70/79] MIPS: BCM63XX: Add board definition for D-Link
5 DSL-274xB rev F1
6
7 ---
8 arch/mips/bcm63xx/boards/board_bcm963xx.c | 104 +++++++++++++++++++++++++++++
9 1 files changed, 104 insertions(+), 0 deletions(-)
10
11 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
12 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
13 @@ -124,6 +124,50 @@ static struct board_info __initdata boar
14 },
15 },
16 };
17 +
18 +static struct board_info __initdata board_dsl_274xb_f1 = {
19 + .name = "AW4339U",
20 + .expected_cpu_id = 0x6328,
21 +
22 + .has_pci = 1,
23 +
24 + .has_caldata = 1,
25 + .caldata = {
26 + {
27 + .vendor = PCI_VENDOR_ID_ATHEROS,
28 + .caldata_offset = 0x7d1000,
29 + .slot = 0,
30 + .led_pin = -1,
31 + .led_active_high = 1,
32 + },
33 + },
34 +
35 + .has_enetsw = 1,
36 + .enetsw = {
37 + .used_ports = {
38 + [0] = {
39 + .used = 1,
40 + .phy_id = 1,
41 + .name = "Port 4",
42 + },
43 + [1] = {
44 + .used = 1,
45 + .phy_id = 2,
46 + .name = "Port 3",
47 + },
48 + [2] = {
49 + .used = 1,
50 + .phy_id = 3,
51 + .name = "Port 2",
52 + },
53 + [3] = {
54 + .used = 1,
55 + .phy_id = 4,
56 + .name = "Port 1",
57 + },
58 + },
59 + },
60 +};
61 #endif /* CONFIG_BCM63XX_CPU_6328 */
62
63 /*
64 @@ -925,6 +969,7 @@ static const struct board_info __initcon
65 #ifdef CONFIG_BCM63XX_CPU_6328
66 &board_96328avng,
67 &board_963281TAN,
68 + &board_dsl_274xb_f1,
69 #endif /* CONFIG_BCM63XX_CPU_6328 */
70 #ifdef CONFIG_BCM63XX_CPU_6338
71 &board_96338gw,
72 @@ -981,6 +1026,7 @@ static struct of_device_id const bcm963x
73 #ifdef CONFIG_BCM63XX_CPU_6328
74 { .compatible = "brcm,bcm963281tan", .data = &board_963281TAN, },
75 { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
76 + { .compatible = "d-link,dsl-274xb-f1", .data = &board_dsl_274xb_f1, },
77 #endif
78 #ifdef CONFIG_BCM63XX_CPU_6338
79 { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },