5b2c2aff11a9640d11b8e3b2f2d7afd6b2c41cb6
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 507-board-MAGIC.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -724,6 +724,76 @@ 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 + .force_speed_100 = 1,
24 + .force_duplex_full = 1,
25 + },
26 +
27 + .has_ohci0 = 1,
28 + .has_pccard = 1,
29 + .has_ehci0 = 1,
30 +
31 + .has_dsp = 1,
32 + .dsp = {
33 + .gpio_rst = 25,
34 + .gpio_int = 34,
35 + .cs = 2,
36 + .ext_irq = 2,
37 + },
38 +
39 + .leds = {
40 + {
41 + .name = "MAGIC:green:voip",
42 + .gpio = 22,
43 + .active_low = 1,
44 + },
45 + {
46 + .name = "MAGIC:green:adsl",
47 + .gpio = 5,
48 + .active_low = 1,
49 + },
50 + {
51 + .name = "MAGIC:green:wifi",
52 + .gpio = 28,
53 + },
54 + {
55 + .name = "MAGIC:green:usb",
56 + .gpio = 35,
57 + .active_low = 1,
58 + },
59 + {
60 + .name = "MAGIC:green:hpna",
61 + .gpio = 4,
62 + .active_low = 1,
63 + },
64 + {
65 + .name = "MAGIC:green:power",
66 + .gpio = 0,
67 + .active_low = 1,
68 + .default_trigger = "default-on",
69 + },
70 + {
71 + .name = "MAGIC:green:stop",
72 + .gpio = 1,
73 + .active_low = 1,
74 + },
75 + },
76 +};
77 #endif
78
79 /*
80 @@ -1533,6 +1603,7 @@ static const struct board_info __initdat
81 &board_rta1025w_16,
82 &board_96348_D4PW,
83 &board_spw500v,
84 + &board_96348sv,
85 #endif
86
87 #ifdef CONFIG_BCM63XX_CPU_6358