brcm63xx: update spw500v sprom to values from gpl tarball
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 505-board_spw500v.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -653,6 +653,85 @@ static struct board_info __initdata boar
4                 },
5         },
6  };
7 +
8 +static struct sprom_fixup __initdata spw500v_fixups[] = {
9 +       { .offset = 46, .value = 0x3046 },
10 +       { .offset = 47, .value = 0x15a7 },
11 +       { .offset = 48, .value = 0xfa89 },
12 +       { .offset = 49, .value = 0xfe79 },
13 +       { .offset = 57, .value = 0x6a49 },
14 +};
15 +
16 +static struct board_info __initdata board_spw500v = {
17 +       .name                           = "SPW500V",
18 +       .of_board_id                    = "t-com,spw500v",
19 +       .expected_cpu_id                = 0x6348,
20 +
21 +       .has_uart0                      = 1,
22 +       .has_enet0                      = 1,
23 +       .has_pci                        = 1,
24 +       .use_fallback_sprom             = 1,
25 +
26 +       .enet0 = {
27 +               .has_phy                = 1,
28 +               .use_internal_phy       = 1,
29 +       },
30 +
31 +       .has_dsp                        = 1,
32 +       .dsp = {
33 +               .gpio_rst               = 6,
34 +               .gpio_int               = 34,
35 +               .ext_irq                = 2,
36 +               .cs                     = 2,
37 +       },
38 +
39 +       .leds = {
40 +               {
41 +                       .name           = "SPW500V:red:power",
42 +                       .gpio           = 1,
43 +                       .active_low     = 1,
44 +               },
45 +               {
46 +                       .name           = "SPW500V:green:power",
47 +                       .gpio           = 0,
48 +                       .active_low     = 1,
49 +                       .default_trigger = "default-on",
50 +               },
51 +               {
52 +                       .name           = "SPW500V:green:ppp",
53 +                       .gpio           = 3,
54 +                       .active_low     = 1,
55 +               },
56 +               {       .name           = "SPW500V:green:pstn",
57 +                       .gpio           = 28,
58 +                       .active_low     = 1,
59 +               },
60 +               {
61 +                       .name           = "SPW500V:green:voip",
62 +                       .gpio           = 32,
63 +                       .active_low     = 1,
64 +               },
65 +       },
66 +
67 +       .buttons = {
68 +               {
69 +                       .desc           = "reset",
70 +                       .gpio           = 33,
71 +                       .active_low     = 1,
72 +                       .type           = EV_KEY,
73 +                       .code           = KEY_RESTART,
74 +                       .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
75 +               },
76 +       },
77 +
78 +       .fallback_sprom = {
79 +               .type                   = SPROM_BCM4318,
80 +               .pci_bus                = 0,
81 +               .pci_dev                = 1,
82 +               .board_fixups           = &spw500v_fixups,
83 +               .num_board_fixups       = ARRAY_SIZE(spw500v_fixups),
84 +       },
85 +};
86  #endif /* CONFIG_BCM63XX_CPU_6348 */
87  
88  /*
89 @@ -1252,6 +1331,7 @@ static const struct board_info __initcon
90         &board_96348gw_a,
91         &board_rta1025w_16,
92         &board_96348_D4PW,
93 +       &board_spw500v,
94  #endif
95  
96  #ifdef CONFIG_BCM63XX_CPU_6358