diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-07-23 05:10:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-09 15:38:57 -0400 |
commit | 454496fd05b1463efa46ec7a42576e3d319cc291 (patch) | |
tree | 695c186e173bfb21fb77a820a130b117c67bde3e /include/linux/ssb | |
parent | f749b94679c71a9c74ad9509dbbf00d8f3d620ad (diff) |
ssb: define boardflags
They are SPROM specific, so all should be defined in ssb code.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/ssb')
-rw-r--r-- | include/linux/ssb/ssb_regs.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/include/linux/ssb/ssb_regs.h b/include/linux/ssb/ssb_regs.h index efbf459d571c..98941203a27f 100644 --- a/include/linux/ssb/ssb_regs.h +++ b/include/linux/ssb/ssb_regs.h | |||
@@ -462,6 +462,46 @@ | |||
462 | #define SSB_SPROM8_OFDM5GLPO 0x014A /* 5.2GHz OFDM power offset */ | 462 | #define SSB_SPROM8_OFDM5GLPO 0x014A /* 5.2GHz OFDM power offset */ |
463 | #define SSB_SPROM8_OFDM5GHPO 0x014E /* 5.8GHz OFDM power offset */ | 463 | #define SSB_SPROM8_OFDM5GHPO 0x014E /* 5.8GHz OFDM power offset */ |
464 | 464 | ||
465 | /* Values for boardflags_lo read from SPROM */ | ||
466 | #define SSB_BFL_BTCOEXIST 0x0001 /* implements Bluetooth coexistance */ | ||
467 | #define SSB_BFL_PACTRL 0x0002 /* GPIO 9 controlling the PA */ | ||
468 | #define SSB_BFL_AIRLINEMODE 0x0004 /* implements GPIO 13 radio disable indication */ | ||
469 | #define SSB_BFL_RSSI 0x0008 /* software calculates nrssi slope. */ | ||
470 | #define SSB_BFL_ENETSPI 0x0010 /* has ephy roboswitch spi */ | ||
471 | #define SSB_BFL_XTAL_NOSLOW 0x0020 /* no slow clock available */ | ||
472 | #define SSB_BFL_CCKHIPWR 0x0040 /* can do high power CCK transmission */ | ||
473 | #define SSB_BFL_ENETADM 0x0080 /* has ADMtek switch */ | ||
474 | #define SSB_BFL_ENETVLAN 0x0100 /* can do vlan */ | ||
475 | #define SSB_BFL_AFTERBURNER 0x0200 /* supports Afterburner mode */ | ||
476 | #define SSB_BFL_NOPCI 0x0400 /* board leaves PCI floating */ | ||
477 | #define SSB_BFL_FEM 0x0800 /* supports the Front End Module */ | ||
478 | #define SSB_BFL_EXTLNA 0x1000 /* has an external LNA */ | ||
479 | #define SSB_BFL_HGPA 0x2000 /* had high gain PA */ | ||
480 | #define SSB_BFL_BTCMOD 0x4000 /* BFL_BTCOEXIST is given in alternate GPIOs */ | ||
481 | #define SSB_BFL_ALTIQ 0x8000 /* alternate I/Q settings */ | ||
482 | |||
483 | /* Values for boardflags_hi read from SPROM */ | ||
484 | #define SSB_BFH_NOPA 0x0001 /* has no PA */ | ||
485 | #define SSB_BFH_RSSIINV 0x0002 /* RSSI uses positive slope (not TSSI) */ | ||
486 | #define SSB_BFH_PAREF 0x0004 /* uses the PARef LDO */ | ||
487 | #define SSB_BFH_3TSWITCH 0x0008 /* uses a triple throw switch shared with bluetooth */ | ||
488 | #define SSB_BFH_PHASESHIFT 0x0010 /* can support phase shifter */ | ||
489 | #define SSB_BFH_BUCKBOOST 0x0020 /* has buck/booster */ | ||
490 | #define SSB_BFH_FEM_BT 0x0040 /* has FEM and switch to share antenna with bluetooth */ | ||
491 | |||
492 | /* Values for boardflags2_lo read from SPROM */ | ||
493 | #define SSB_BFL2_RXBB_INT_REG_DIS 0x0001 /* external RX BB regulator present */ | ||
494 | #define SSB_BFL2_APLL_WAR 0x0002 /* alternative A-band PLL settings implemented */ | ||
495 | #define SSB_BFL2_TXPWRCTRL_EN 0x0004 /* permits enabling TX Power Control */ | ||
496 | #define SSB_BFL2_2X4_DIV 0x0008 /* 2x4 diversity switch */ | ||
497 | #define SSB_BFL2_5G_PWRGAIN 0x0010 /* supports 5G band power gain */ | ||
498 | #define SSB_BFL2_PCIEWAR_OVR 0x0020 /* overrides ASPM and Clkreq settings */ | ||
499 | #define SSB_BFL2_CAESERS_BRD 0x0040 /* is Caesers board (unused) */ | ||
500 | #define SSB_BFL2_BTC3WIRE 0x0080 /* used 3-wire bluetooth coexist */ | ||
501 | #define SSB_BFL2_SKWRKFEM_BRD 0x0100 /* 4321mcm93 uses Skyworks FEM */ | ||
502 | #define SSB_BFL2_SPUR_WAR 0x0200 /* has a workaround for clock-harmonic spurs */ | ||
503 | #define SSB_BFL2_GPLL_WAR 0x0400 /* altenative G-band PLL settings implemented */ | ||
504 | |||
465 | /* Values for SSB_SPROM1_BINF_CCODE */ | 505 | /* Values for SSB_SPROM1_BINF_CCODE */ |
466 | enum { | 506 | enum { |
467 | SSB_SPROM1CCODE_WORLD = 0, | 507 | SSB_SPROM1CCODE_WORLD = 0, |