diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-04-28 20:04:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-16 12:45:22 -0400 |
commit | e2da4bd3ec7842fbef2bc7bffde3e1ad0c15f516 (patch) | |
tree | 05eeb21b157fa2b39fc0d66fc4fd2c30a9395ce6 /include/linux/ssb/ssb_regs.h | |
parent | 432c4d1eef64fc4c57faf713f361a96e58e66c72 (diff) |
bcma/ssb: parse new attributes from sprom
These newly added attributes are used by brcmsmac. Now bcma should
parse all attributes used by brcmsmac out of the sprom.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/ssb/ssb_regs.h')
-rw-r--r-- | include/linux/ssb/ssb_regs.h | 59 |
1 files changed, 55 insertions, 4 deletions
diff --git a/include/linux/ssb/ssb_regs.h b/include/linux/ssb/ssb_regs.h index 543795f30f75..a0525019e1d1 100644 --- a/include/linux/ssb/ssb_regs.h +++ b/include/linux/ssb/ssb_regs.h | |||
@@ -391,6 +391,11 @@ | |||
391 | #define SSB_SPROM8_GPIOB_P2 0x00FF /* Pin 2 */ | 391 | #define SSB_SPROM8_GPIOB_P2 0x00FF /* Pin 2 */ |
392 | #define SSB_SPROM8_GPIOB_P3 0xFF00 /* Pin 3 */ | 392 | #define SSB_SPROM8_GPIOB_P3 0xFF00 /* Pin 3 */ |
393 | #define SSB_SPROM8_GPIOB_P3_SHIFT 8 | 393 | #define SSB_SPROM8_GPIOB_P3_SHIFT 8 |
394 | #define SSB_SPROM8_LEDDC 0x009A | ||
395 | #define SSB_SPROM8_LEDDC_ON 0xFF00 /* oncount */ | ||
396 | #define SSB_SPROM8_LEDDC_ON_SHIFT 8 | ||
397 | #define SSB_SPROM8_LEDDC_OFF 0x00FF /* offcount */ | ||
398 | #define SSB_SPROM8_LEDDC_OFF_SHIFT 0 | ||
394 | #define SSB_SPROM8_ANTAVAIL 0x009C /* Antenna available bitfields*/ | 399 | #define SSB_SPROM8_ANTAVAIL 0x009C /* Antenna available bitfields*/ |
395 | #define SSB_SPROM8_ANTAVAIL_A 0xFF00 /* A-PHY bitfield */ | 400 | #define SSB_SPROM8_ANTAVAIL_A 0xFF00 /* A-PHY bitfield */ |
396 | #define SSB_SPROM8_ANTAVAIL_A_SHIFT 8 | 401 | #define SSB_SPROM8_ANTAVAIL_A_SHIFT 8 |
@@ -406,6 +411,13 @@ | |||
406 | #define SSB_SPROM8_AGAIN2_SHIFT 0 | 411 | #define SSB_SPROM8_AGAIN2_SHIFT 0 |
407 | #define SSB_SPROM8_AGAIN3 0xFF00 /* Antenna 3 */ | 412 | #define SSB_SPROM8_AGAIN3 0xFF00 /* Antenna 3 */ |
408 | #define SSB_SPROM8_AGAIN3_SHIFT 8 | 413 | #define SSB_SPROM8_AGAIN3_SHIFT 8 |
414 | #define SSB_SPROM8_TXRXC 0x00A2 | ||
415 | #define SSB_SPROM8_TXRXC_TXCHAIN 0x000f | ||
416 | #define SSB_SPROM8_TXRXC_TXCHAIN_SHIFT 0 | ||
417 | #define SSB_SPROM8_TXRXC_RXCHAIN 0x00f0 | ||
418 | #define SSB_SPROM8_TXRXC_RXCHAIN_SHIFT 4 | ||
419 | #define SSB_SPROM8_TXRXC_SWITCH 0xff00 | ||
420 | #define SSB_SPROM8_TXRXC_SWITCH_SHIFT 8 | ||
409 | #define SSB_SPROM8_RSSIPARM2G 0x00A4 /* RSSI params for 2GHz */ | 421 | #define SSB_SPROM8_RSSIPARM2G 0x00A4 /* RSSI params for 2GHz */ |
410 | #define SSB_SPROM8_RSSISMF2G 0x000F | 422 | #define SSB_SPROM8_RSSISMF2G 0x000F |
411 | #define SSB_SPROM8_RSSISMC2G 0x00F0 | 423 | #define SSB_SPROM8_RSSISMC2G 0x00F0 |
@@ -432,6 +444,7 @@ | |||
432 | #define SSB_SPROM8_TRI5GH_SHIFT 8 | 444 | #define SSB_SPROM8_TRI5GH_SHIFT 8 |
433 | #define SSB_SPROM8_RXPO 0x00AC /* RX power offsets */ | 445 | #define SSB_SPROM8_RXPO 0x00AC /* RX power offsets */ |
434 | #define SSB_SPROM8_RXPO2G 0x00FF /* 2GHz RX power offset */ | 446 | #define SSB_SPROM8_RXPO2G 0x00FF /* 2GHz RX power offset */ |
447 | #define SSB_SPROM8_RXPO2G_SHIFT 0 | ||
435 | #define SSB_SPROM8_RXPO5G 0xFF00 /* 5GHz RX power offset */ | 448 | #define SSB_SPROM8_RXPO5G 0xFF00 /* 5GHz RX power offset */ |
436 | #define SSB_SPROM8_RXPO5G_SHIFT 8 | 449 | #define SSB_SPROM8_RXPO5G_SHIFT 8 |
437 | #define SSB_SPROM8_FEM2G 0x00AE | 450 | #define SSB_SPROM8_FEM2G 0x00AE |
@@ -447,10 +460,38 @@ | |||
447 | #define SSB_SROM8_FEM_ANTSWLUT 0xF800 | 460 | #define SSB_SROM8_FEM_ANTSWLUT 0xF800 |
448 | #define SSB_SROM8_FEM_ANTSWLUT_SHIFT 11 | 461 | #define SSB_SROM8_FEM_ANTSWLUT_SHIFT 11 |
449 | #define SSB_SPROM8_THERMAL 0x00B2 | 462 | #define SSB_SPROM8_THERMAL 0x00B2 |
450 | #define SSB_SPROM8_MPWR_RAWTS 0x00B4 | 463 | #define SSB_SPROM8_THERMAL_OFFSET 0x00ff |
451 | #define SSB_SPROM8_TS_SLP_OPT_CORRX 0x00B6 | 464 | #define SSB_SPROM8_THERMAL_OFFSET_SHIFT 0 |
452 | #define SSB_SPROM8_FOC_HWIQ_IQSWP 0x00B8 | 465 | #define SSB_SPROM8_THERMAL_TRESH 0xff00 |
453 | #define SSB_SPROM8_PHYCAL_TEMPDELTA 0x00BA | 466 | #define SSB_SPROM8_THERMAL_TRESH_SHIFT 8 |
467 | /* Temp sense related entries */ | ||
468 | #define SSB_SPROM8_RAWTS 0x00B4 | ||
469 | #define SSB_SPROM8_RAWTS_RAWTEMP 0x01ff | ||
470 | #define SSB_SPROM8_RAWTS_RAWTEMP_SHIFT 0 | ||
471 | #define SSB_SPROM8_RAWTS_MEASPOWER 0xfe00 | ||
472 | #define SSB_SPROM8_RAWTS_MEASPOWER_SHIFT 9 | ||
473 | #define SSB_SPROM8_OPT_CORRX 0x00B6 | ||
474 | #define SSB_SPROM8_OPT_CORRX_TEMP_SLOPE 0x00ff | ||
475 | #define SSB_SPROM8_OPT_CORRX_TEMP_SLOPE_SHIFT 0 | ||
476 | #define SSB_SPROM8_OPT_CORRX_TEMPCORRX 0xfc00 | ||
477 | #define SSB_SPROM8_OPT_CORRX_TEMPCORRX_SHIFT 10 | ||
478 | #define SSB_SPROM8_OPT_CORRX_TEMP_OPTION 0x0300 | ||
479 | #define SSB_SPROM8_OPT_CORRX_TEMP_OPTION_SHIFT 8 | ||
480 | /* FOC: freiquency offset correction, HWIQ: H/W IOCAL enable, IQSWP: IQ CAL swap disable */ | ||
481 | #define SSB_SPROM8_HWIQ_IQSWP 0x00B8 | ||
482 | #define SSB_SPROM8_HWIQ_IQSWP_FREQ_CORR 0x000f | ||
483 | #define SSB_SPROM8_HWIQ_IQSWP_FREQ_CORR_SHIFT 0 | ||
484 | #define SSB_SPROM8_HWIQ_IQSWP_IQCAL_SWP 0x0010 | ||
485 | #define SSB_SPROM8_HWIQ_IQSWP_IQCAL_SWP_SHIFT 4 | ||
486 | #define SSB_SPROM8_HWIQ_IQSWP_HW_IQCAL 0x0020 | ||
487 | #define SSB_SPROM8_HWIQ_IQSWP_HW_IQCAL_SHIFT 5 | ||
488 | #define SSB_SPROM8_TEMPDELTA 0x00BA | ||
489 | #define SSB_SPROM8_TEMPDELTA_PHYCAL 0x00ff | ||
490 | #define SSB_SPROM8_TEMPDELTA_PHYCAL_SHIFT 0 | ||
491 | #define SSB_SPROM8_TEMPDELTA_PERIOD 0x0f00 | ||
492 | #define SSB_SPROM8_TEMPDELTA_PERIOD_SHIFT 8 | ||
493 | #define SSB_SPROM8_TEMPDELTA_HYSTERESIS 0xf000 | ||
494 | #define SSB_SPROM8_TEMPDELTA_HYSTERESIS_SHIFT 12 | ||
454 | 495 | ||
455 | /* There are 4 blocks with power info sharing the same layout */ | 496 | /* There are 4 blocks with power info sharing the same layout */ |
456 | #define SSB_SROM8_PWR_INFO_CORE0 0x00C0 | 497 | #define SSB_SROM8_PWR_INFO_CORE0 0x00C0 |
@@ -515,6 +556,16 @@ | |||
515 | #define SSB_SPROM8_OFDM5GLPO 0x014A /* 5.2GHz OFDM power offset */ | 556 | #define SSB_SPROM8_OFDM5GLPO 0x014A /* 5.2GHz OFDM power offset */ |
516 | #define SSB_SPROM8_OFDM5GHPO 0x014E /* 5.8GHz OFDM power offset */ | 557 | #define SSB_SPROM8_OFDM5GHPO 0x014E /* 5.8GHz OFDM power offset */ |
517 | 558 | ||
559 | #define SSB_SPROM8_2G_MCSPO 0x0152 | ||
560 | #define SSB_SPROM8_5G_MCSPO 0x0162 | ||
561 | #define SSB_SPROM8_5GL_MCSPO 0x0172 | ||
562 | #define SSB_SPROM8_5GH_MCSPO 0x0182 | ||
563 | |||
564 | #define SSB_SPROM8_CDDPO 0x0192 | ||
565 | #define SSB_SPROM8_STBCPO 0x0194 | ||
566 | #define SSB_SPROM8_BW40PO 0x0196 | ||
567 | #define SSB_SPROM8_BWDUPPO 0x0198 | ||
568 | |||
518 | /* Values for boardflags_lo read from SPROM */ | 569 | /* Values for boardflags_lo read from SPROM */ |
519 | #define SSB_BFL_BTCOEXIST 0x0001 /* implements Bluetooth coexistance */ | 570 | #define SSB_BFL_BTCOEXIST 0x0001 /* implements Bluetooth coexistance */ |
520 | #define SSB_BFL_PACTRL 0x0002 /* GPIO 9 controlling the PA */ | 571 | #define SSB_BFL_PACTRL 0x0002 /* GPIO 9 controlling the PA */ |