1 From 91e6ca304fb163e2f9b15188686fc4637f2cd32a Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Fri, 17 Feb 2012 23:26:39 +0100
4 Subject: [PATCH 193/202] ssb: add some missing sprom attributes
6 This patch extends the sprom struct to contain all sprom attributes
7 found in sprom version 1 to 9. This was done accordingly to the open
8 source part of the Braodcom SDK.
10 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 include/linux/ssb/ssb.h | 76 ++++++++++++++++++++++++++++++++++++++++++++++-
13 1 files changed, 75 insertions(+), 1 deletions(-)
15 --- a/include/linux/ssb/ssb.h
16 +++ b/include/linux/ssb/ssb.h
17 @@ -32,6 +32,8 @@ struct ssb_sprom {
18 u8 et0mdcport; /* MDIO for enet0 */
19 u8 et1mdcport; /* MDIO for enet1 */
20 u16 board_rev; /* Board revision number from SPROM. */
23 u8 country_code; /* Country Code */
24 u8 leddc_on_time; /* LED Powersave Duty Cycle On Count */
25 u8 leddc_off_time; /* LED Powersave Duty Cycle Off Count */
26 @@ -112,7 +114,79 @@ struct ssb_sprom {
30 - /* TODO - add any parameters needed from rev 2, 3, 4, 5 or 8 SPROMs */
38 + u8 rxgainerr5gla[3];
39 + u8 rxgainerr5gma[3];
40 + u8 rxgainerr5gha[3];
41 + u8 rxgainerr5gua[3];
64 + u8 tempsense_option;
70 + u8 phycal_tempdelta;
72 + u8 temps_hysteresis;
77 + /* power per rate from sromrev 9 */
80 + u32 legofdmbw202gpo;
81 + u32 legofdmbw20ul2gpo;
82 + u32 legofdmbw205glpo;
83 + u32 legofdmbw20ul5glpo;
84 + u32 legofdmbw205gmpo;
85 + u32 legofdmbw20ul5gmpo;
86 + u32 legofdmbw205ghpo;
87 + u32 legofdmbw20ul5ghpo;
101 + u16 legofdm40duppo;
106 /* Information about the PCB the circuitry is soldered on. */