ssb: SPROM: extract each core power info
We already extract some basic info but it's incomplete, reads info about the first core only. Used data structure doesn't allow easy adding of more cores. This patch adds new struct and array for storing power info. The plan is to: switch all extractors (including the ones using NVRAM) to new struct, switch drivers, then deprecate and finally drop old SSB fields. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
35b8862369
commit
b0f7029205
3 changed files with 81 additions and 1 deletions
|
@ -16,6 +16,12 @@ struct pcmcia_device;
|
|||
struct ssb_bus;
|
||||
struct ssb_driver;
|
||||
|
||||
struct ssb_sprom_core_pwr_info {
|
||||
u8 itssi_2g, itssi_5g;
|
||||
u8 maxpwr_2g, maxpwr_5gl, maxpwr_5g, maxpwr_5gh;
|
||||
u16 pa_2g[3], pa_5gl[3], pa_5g[3], pa_5gh[3];
|
||||
};
|
||||
|
||||
struct ssb_sprom {
|
||||
u8 revision;
|
||||
u8 il0mac[6]; /* MAC address for 802.11b/g */
|
||||
|
@ -82,6 +88,8 @@ struct ssb_sprom {
|
|||
u16 boardflags2_hi; /* Board flags (bits 48-63) */
|
||||
/* TODO store board flags in a single u64 */
|
||||
|
||||
struct ssb_sprom_core_pwr_info core_pwr_info[4];
|
||||
|
||||
/* Antenna gain values for up to 4 antennas
|
||||
* on each band. Values in dBm/4 (Q5.2). Negative gain means the
|
||||
* loss in the connectors is bigger than the gain. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue