brcm63xx: add preliminary support for 3.13
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.13 / 507-board-MAGIC.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -814,6 +814,78 @@ static struct board_info __initdata boar
4 },
5 },
6 };
7 +
8 +static struct board_info __initdata board_96348sv = {
9 + .name = "MAGIC",
10 + .expected_cpu_id = 0x6348,
11 +
12 + .has_uart0 = 1,
13 + .has_enet0 = 1,
14 + .has_enet1 = 1,
15 + .has_pci = 1,
16 +
17 + .enet0 = {
18 + .has_phy = 1,
19 + .use_internal_phy = 1,
20 + },
21 + .enet1 = {
22 + /* it has BP_ENET_EXTERNAL_PHY */
23 + .has_phy = 1,
24 + .phy_id = 0,
25 + .force_speed_100 = 1,
26 + .force_duplex_full = 1,
27 + },
28 +
29 + .has_ohci0 = 1,
30 + .has_pccard = 1,
31 + .has_ehci0 = 1,
32 +
33 + .has_dsp = 1,
34 + .dsp = {
35 + .gpio_rst = 25,
36 + .gpio_int = 34,
37 + .cs = 2,
38 + .ext_irq = 2,
39 + },
40 +
41 + .leds = {
42 + {
43 + .name = "MAGIC:green:voip",
44 + .gpio = 22,
45 + .active_low = 1,
46 + },
47 + {
48 + .name = "MAGIC:green:adsl",
49 + .gpio = 5,
50 + .active_low = 1,
51 + },
52 + {
53 + .name = "MAGIC:green:wifi",
54 + .gpio = 28,
55 + },
56 + {
57 + .name = "MAGIC:green:usb",
58 + .gpio = 35,
59 + .active_low = 1,
60 + },
61 + {
62 + .name = "MAGIC:green:hpna",
63 + .gpio = 4,
64 + .active_low = 1,
65 + },
66 + {
67 + .name = "MAGIC:green:power",
68 + .gpio = 0,
69 + .active_low = 1,
70 + .default_trigger = "default-on",
71 + },
72 + {
73 + .name = "MAGIC:green:stop",
74 + .gpio = 1,
75 + .active_low = 1,
76 + },
77 + },
78 +};
79 #endif
80
81 /*
82 @@ -1739,6 +1811,7 @@ static const struct board_info __initcon
83 &board_rta1025w_16,
84 &board_96348_D4PW,
85 &board_spw500v,
86 + &board_96348sv,
87 #endif
88
89 #ifdef CONFIG_BCM63XX_CPU_6358