diff options
author | adrian <adrian@FreeBSD.org> | 2013-04-15 17:58:11 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-04-15 17:58:11 +0000 |
commit | 6f9077d752a36e7c0e539f5cb74decb128d8d14c (patch) | |
tree | d91e6f8ddac5a647a07eb1a5141d84f14870dcaa | |
parent | 59c782b807d47a663c8f3c0adbd7f301975d61c8 (diff) | |
download | FreeBSD-src-6f9077d752a36e7c0e539f5cb74decb128d8d14c.zip FreeBSD-src-6f9077d752a36e7c0e539f5cb74decb128d8d14c.tar.gz |
Bring over some AR9271 register definitions from the QCA HAL.
Obtained from: Qualcomm Atheros
-rw-r--r-- | sys/dev/ath/ath_hal/ar5416/ar5416reg.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ar5416/ar5416reg.h b/sys/dev/ath/ath_hal/ar5416/ar5416reg.h index d020206..435599c 100644 --- a/sys/dev/ath/ath_hal/ar5416/ar5416reg.h +++ b/sys/dev/ath/ath_hal/ar5416/ar5416reg.h @@ -603,6 +603,25 @@ #define AR_EEPROM_STATUS_DATA_PROT_ACCESS 0x00040000 #define AR_EEPROM_STATUS_DATA_ABSENT_ACCESS 0x00080000 +/* K2 (9271) */ +#define AR9271_CLOCK_CONTROL 0x50040 +#define AR9271_CLOCK_SELECTION_22 0x0 +#define AR9271_CLOCK_SELECTION_88 0x1 +#define AR9271_CLOCK_SELECTION_44 0x2 +#define AR9271_CLOCK_SELECTION_117 0x4 +#define AR9271_CLOCK_SELECTION_OSC_40 0x6 +#define AR9271_CLOCK_SELECTION_RTC 0x7 +#define AR9271_SPI_SEL 0x100 +#define AR9271_UART_SEL 0x200 + +#define AR9271_RESET_POWER_DOWN_CONTROL 0x50044 +#define AR9271_RADIO_RF_RST 0x20 +#define AR9271_GATE_MAC_CTL 0x4000 +#define AR9271_MAIN_PLL_PWD_CTL 0x40000 + +#define AR9271_CLKMISC 0x4090 +#define AR9271_OSC_to_10M_EN 0x00000001 + /* * AR5212 defines the MAC revision mask as 0xF, but both ath9k and * the Atheros HAL define it as 0x7. |