f89f01f99f41c6eb8ce7424c36a337baa2da9075
[openwrt/staging/mkresin.git] / target / linux / brcm63xx / patches-4.4 / 524-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 @@ -168,6 +168,52 @@ 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_uart0 = 1,
23 + .has_pci = 1,
24 +
25 + .has_caldata = 1,
26 + .caldata = {
27 + {
28 + .vendor = PCI_VENDOR_ID_ATHEROS,
29 + .caldata_offset = 0x7d1000,
30 + .slot = 0,
31 + .led_pin = -1,
32 + .led_active_high = 1,
33 + },
34 + },
35 +
36 + .has_enetsw = 1,
37 +
38 + .enetsw = {
39 + .used_ports = {
40 + [0] = {
41 + .used = 1,
42 + .phy_id = 1,
43 + .name = "Port 4",
44 + },
45 + [1] = {
46 + .used = 1,
47 + .phy_id = 2,
48 + .name = "Port 3",
49 + },
50 + [2] = {
51 + .used = 1,
52 + .phy_id = 3,
53 + .name = "Port 2",
54 + },
55 + [3] = {
56 + .used = 1,
57 + .phy_id = 4,
58 + .name = "Port 1",
59 + },
60 + },
61 + },
62 +};
63 #endif /* CONFIG_BCM63XX_CPU_6328 */
64
65 /*
66 @@ -1305,6 +1351,7 @@ static const struct board_info __initcon
67 #ifdef CONFIG_BCM63XX_CPU_6328
68 &board_96328avng,
69 &board_963281TAN,
70 + &board_dsl_274xb_f1,
71 #endif
72 #ifdef CONFIG_BCM63XX_CPU_6338
73 &board_96338gw,
74 @@ -1363,6 +1410,7 @@ static struct of_device_id const bcm963x
75 #ifdef CONFIG_BCM63XX_CPU_6328
76 { .compatible = "brcm,bcm963281TAN", .data = &board_963281TAN, },
77 { .compatible = "brcm,bcm96328avng", .data = &board_96328avng, },
78 + { .compatible = "d-link,dsl-274xb-f", .data = &board_dsl_274xb_f1, },
79 #endif
80 #ifdef CONFIG_BCM63XX_CPU_6338
81 { .compatible = "brcm,bcm96338gw", .data = &board_96338gw, },