Skip to content

Commit 52aa63f

Browse files
haukelinvjw
authored andcommitted
ssb: add some missing sprom attributes
This patch extends the sprom struct to contain all sprom attributes found in sprom version 1 to 9. This was done accordingly to the open source part of the Broadcom SDK. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 03a5642 commit 52aa63f

1 file changed

Lines changed: 75 additions & 1 deletion

File tree

‎include/linux/ssb/ssb.h‎

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ struct ssb_sprom {
3232
u8 et0mdcport; /* MDIO for enet0 */
3333
u8 et1mdcport; /* MDIO for enet1 */
3434
u16 board_rev; /* Board revision number from SPROM. */
35+
u16 board_num; /* Board number from SPROM. */
36+
u16 board_type; /* Board type from SPROM. */
3537
u8 country_code; /* Country Code */
3638
char alpha2[2]; /* Country Code as two chars like EU or US */
3739
u8 leddc_on_time; /* LED Powersave Duty Cycle On Count */
@@ -107,7 +109,79 @@ struct ssb_sprom {
107109
} ghz5;
108110
} fem;
109111

110-
/* TODO - add any parameters needed from rev 2, 3, 4, 5 or 8 SPROMs */
112+
u16 mcs2gpo[8];
113+
u16 mcs5gpo[8];
114+
u16 mcs5glpo[8];
115+
u16 mcs5ghpo[8];
116+
u8 opo;
117+
118+
u8 rxgainerr2ga[3];
119+
u8 rxgainerr5gla[3];
120+
u8 rxgainerr5gma[3];
121+
u8 rxgainerr5gha[3];
122+
u8 rxgainerr5gua[3];
123+
124+
u8 noiselvl2ga[3];
125+
u8 noiselvl5gla[3];
126+
u8 noiselvl5gma[3];
127+
u8 noiselvl5gha[3];
128+
u8 noiselvl5gua[3];
129+
130+
u8 regrev;
131+
u8 txchain;
132+
u8 rxchain;
133+
u8 antswitch;
134+
u16 cddpo;
135+
u16 stbcpo;
136+
u16 bw40po;
137+
u16 bwduppo;
138+
139+
u8 tempthresh;
140+
u8 tempoffset;
141+
u16 rawtempsense;
142+
u8 measpower;
143+
u8 tempsense_slope;
144+
u8 tempcorrx;
145+
u8 tempsense_option;
146+
u8 freqoffset_corr;
147+
u8 iqcal_swp_dis;
148+
u8 hw_iqcal_en;
149+
u8 elna2g;
150+
u8 elna5g;
151+
u8 phycal_tempdelta;
152+
u8 temps_period;
153+
u8 temps_hysteresis;
154+
u8 measpower1;
155+
u8 measpower2;
156+
u8 pcieingress_war;
157+
158+
/* power per rate from sromrev 9 */
159+
u16 cckbw202gpo;
160+
u16 cckbw20ul2gpo;
161+
u32 legofdmbw202gpo;
162+
u32 legofdmbw20ul2gpo;
163+
u32 legofdmbw205glpo;
164+
u32 legofdmbw20ul5glpo;
165+
u32 legofdmbw205gmpo;
166+
u32 legofdmbw20ul5gmpo;
167+
u32 legofdmbw205ghpo;
168+
u32 legofdmbw20ul5ghpo;
169+
u32 mcsbw202gpo;
170+
u32 mcsbw20ul2gpo;
171+
u32 mcsbw402gpo;
172+
u32 mcsbw205glpo;
173+
u32 mcsbw20ul5glpo;
174+
u32 mcsbw405glpo;
175+
u32 mcsbw205gmpo;
176+
u32 mcsbw20ul5gmpo;
177+
u32 mcsbw405gmpo;
178+
u32 mcsbw205ghpo;
179+
u32 mcsbw20ul5ghpo;
180+
u32 mcsbw405ghpo;
181+
u16 mcs32po;
182+
u16 legofdm40duppo;
183+
u8 sar2g;
184+
u8 sar5g;
111185
};
112186

113187
/* Information about the PCB the circuitry is soldered on. */

0 commit comments

Comments
 (0)