Port over another EEPROM option from ath9k - AR_EEP_DAC_HPWR_5G
This will be used by the temperature compensation calibration code which will shortly make an appearance.
This commit is contained in:
parent
7fbdd9a0e9
commit
c485136b7f
@ -94,6 +94,7 @@ enum {
|
||||
AR_EEP_RXMASK, /* uint8_t* */
|
||||
AR_EEP_RXGAIN_TYPE, /* uint8_t* */
|
||||
AR_EEP_TXGAIN_TYPE, /* uint8_t* */
|
||||
AR_EEP_DAC_HPWR_5G, /* uint8_t* */
|
||||
AR_EEP_OL_PWRCTRL, /* use ath_hal_eepromGetFlag */
|
||||
AR_EEP_FSTCLK_5G, /* use ath_hal_eepromGetFlag */
|
||||
AR_EEP_ANTGAINMAX_5, /* int8_t* */
|
||||
|
@ -89,6 +89,12 @@ v14EepromGet(struct ath_hal *ah, int param, void *val)
|
||||
case AR_EEP_OL_PWRCTRL:
|
||||
HALASSERT(val == AH_NULL);
|
||||
return pBase->openLoopPwrCntl ? HAL_OK : HAL_EIO;
|
||||
case AR_EEP_DAC_HPWR_5G:
|
||||
if (IS_VERS(>=, AR5416_EEP_MINOR_VER_20)) {
|
||||
*(uint8_t *) val = pBase->dacHiPwrMode;
|
||||
return HAL_OK;
|
||||
} else
|
||||
return HAL_EIO;
|
||||
case AR_EEP_AMODE:
|
||||
HALASSERT(val == AH_NULL);
|
||||
return pBase->opCapFlags & AR5416_OPFLAGS_11A ?
|
||||
|
@ -52,6 +52,9 @@
|
||||
#define AR5416_EEP_MINOR_VER_16 0x10
|
||||
#define AR5416_EEP_MINOR_VER_17 0x11
|
||||
#define AR5416_EEP_MINOR_VER_19 0x13
|
||||
#define AR5416_EEP_MINOR_VER_20 0x14
|
||||
#define AR5416_EEP_MINOR_VER_21 0x15
|
||||
#define AR5416_EEP_MINOR_VER_22 0x16
|
||||
|
||||
// 16-bit offset location start of calibration struct
|
||||
#define AR5416_EEP_START_LOC 256
|
||||
|
Loading…
Reference in New Issue
Block a user