brcm47xx: update sprom patches like they are in the mainline kernel
[openwrt.git] / target / linux / brcm47xx / patches-3.2 / 194-ssb-add-some-missing-sprom-attributes.patch
1
2 --- a/include/linux/ssb/ssb.h
3 +++ b/include/linux/ssb/ssb.h
4 @@ -32,6 +32,8 @@ struct ssb_sprom {
5 u8 et0mdcport; /* MDIO for enet0 */
6 u8 et1mdcport; /* MDIO for enet1 */
7 u16 board_rev; /* Board revision number from SPROM. */
8 + u16 board_num; /* Board number from SPROM. */
9 + u16 board_type; /* Board type from SPROM. */
10 u8 country_code; /* Country Code */
11 char alpha2[2]; /* Country Code as two chars like EU or US */
12 u8 leddc_on_time; /* LED Powersave Duty Cycle On Count */
13 @@ -112,7 +114,79 @@ struct ssb_sprom {
14 } ghz5;
15 } fem;
16
17 - /* TODO - add any parameters needed from rev 2, 3, 4, 5 or 8 SPROMs */
18 + u16 mcs2gpo[8];
19 + u16 mcs5gpo[8];
20 + u16 mcs5glpo[8];
21 + u16 mcs5ghpo[8];
22 + u8 opo;
23 +
24 + u8 rxgainerr2ga[3];
25 + u8 rxgainerr5gla[3];
26 + u8 rxgainerr5gma[3];
27 + u8 rxgainerr5gha[3];
28 + u8 rxgainerr5gua[3];
29 +
30 + u8 noiselvl2ga[3];
31 + u8 noiselvl5gla[3];
32 + u8 noiselvl5gma[3];
33 + u8 noiselvl5gha[3];
34 + u8 noiselvl5gua[3];
35 +
36 + u8 regrev;
37 + u8 txchain;
38 + u8 rxchain;
39 + u8 antswitch;
40 + u16 cddpo;
41 + u16 stbcpo;
42 + u16 bw40po;
43 + u16 bwduppo;
44 +
45 + u8 tempthresh;
46 + u8 tempoffset;
47 + u16 rawtempsense;
48 + u8 measpower;
49 + u8 tempsense_slope;
50 + u8 tempcorrx;
51 + u8 tempsense_option;
52 + u8 freqoffset_corr;
53 + u8 iqcal_swp_dis;
54 + u8 hw_iqcal_en;
55 + u8 elna2g;
56 + u8 elna5g;
57 + u8 phycal_tempdelta;
58 + u8 temps_period;
59 + u8 temps_hysteresis;
60 + u8 measpower1;
61 + u8 measpower2;
62 + u8 pcieingress_war;
63 +
64 + /* power per rate from sromrev 9 */
65 + u16 cckbw202gpo;
66 + u16 cckbw20ul2gpo;
67 + u32 legofdmbw202gpo;
68 + u32 legofdmbw20ul2gpo;
69 + u32 legofdmbw205glpo;
70 + u32 legofdmbw20ul5glpo;
71 + u32 legofdmbw205gmpo;
72 + u32 legofdmbw20ul5gmpo;
73 + u32 legofdmbw205ghpo;
74 + u32 legofdmbw20ul5ghpo;
75 + u32 mcsbw202gpo;
76 + u32 mcsbw20ul2gpo;
77 + u32 mcsbw402gpo;
78 + u32 mcsbw205glpo;
79 + u32 mcsbw20ul5glpo;
80 + u32 mcsbw405glpo;
81 + u32 mcsbw205gmpo;
82 + u32 mcsbw20ul5gmpo;
83 + u32 mcsbw405gmpo;
84 + u32 mcsbw205ghpo;
85 + u32 mcsbw20ul5ghpo;
86 + u32 mcsbw405ghpo;
87 + u16 mcs32po;
88 + u16 legofdm40duppo;
89 + u8 sar2g;
90 + u8 sar5g;
91 };
92
93 /* Information about the PCB the circuitry is soldered on. */
This page took 0.055471 seconds and 5 git commands to generate.