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