Path: blob/main/sys/dev/ath/ath_hal/ar9002/ar9285phy.h
39566 views
/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2008-2010 Atheros Communications Inc.4* Copyright (c) 2010-2011 Adrian Chadd, Xenion Pty Ltd.5*6* Redistribution and use in source and binary forms, with or without7* modification, are permitted provided that the following conditions8* are met:9* 1. Redistributions of source code must retain the above copyright10* notice, this list of conditions and the following disclaimer.11* 2. Redistributions in binary form must reproduce the above copyright12* notice, this list of conditions and the following disclaimer in the13* documentation and/or other materials provided with the distribution.14*15* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND16* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE17* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE18* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE19* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL20* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS21* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)22* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT23* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY24* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF25* SUCH DAMAGE.26*/27#ifndef __ATH_AR9285PHY_H__28#define __ATH_AR9285PHY_H__2930#define AR9285_AN_RF2G1 0x782031#define AR9285_AN_RF2G1_ENPACAL 0x0000080032#define AR9285_AN_RF2G1_ENPACAL_S 1133#define AR9285_AN_RF2G1_PDPADRV1 0x0200000034#define AR9285_AN_RF2G1_PDPADRV1_S 2535#define AR9285_AN_RF2G1_PDPADRV2 0x0100000036#define AR9285_AN_RF2G1_PDPADRV2_S 2437#define AR9285_AN_RF2G1_PDPAOUT 0x0080000038#define AR9285_AN_RF2G1_PDPAOUT_S 233940#define AR9285_AN_RF2G2 0x782441#define AR9285_AN_RF2G2_OFFCAL 0x0000100042#define AR9285_AN_RF2G2_OFFCAL_S 124344#define AR9285_AN_RF2G3 0x782845#define AR9285_AN_RF2G3_PDVCCOMP 0x0200000046#define AR9285_AN_RF2G3_PDVCCOMP_S 2547#define AR9285_AN_RF2G3_OB_0 0x00E0000048#define AR9285_AN_RF2G3_OB_0_S 2149#define AR9285_AN_RF2G3_OB_1 0x001C000050#define AR9285_AN_RF2G3_OB_1_S 1851#define AR9285_AN_RF2G3_OB_2 0x0003800052#define AR9285_AN_RF2G3_OB_2_S 1553#define AR9285_AN_RF2G3_OB_3 0x0000700054#define AR9285_AN_RF2G3_OB_3_S 1255#define AR9285_AN_RF2G3_OB_4 0x00000E0056#define AR9285_AN_RF2G3_OB_4_S 95758#define AR9285_AN_RF2G3_DB1_0 0x000001C059#define AR9285_AN_RF2G3_DB1_0_S 660#define AR9285_AN_RF2G3_DB1_1 0x0000003861#define AR9285_AN_RF2G3_DB1_1_S 362#define AR9285_AN_RF2G3_DB1_2 0x0000000763#define AR9285_AN_RF2G3_DB1_2_S 06465#define AR9285_AN_RF2G4 0x782C66#define AR9285_AN_RF2G4_DB1_3 0xE000000067#define AR9285_AN_RF2G4_DB1_3_S 2968#define AR9285_AN_RF2G4_DB1_4 0x1C00000069#define AR9285_AN_RF2G4_DB1_4_S 267071#define AR9285_AN_RF2G4_DB2_0 0x0380000072#define AR9285_AN_RF2G4_DB2_0_S 2373#define AR9285_AN_RF2G4_DB2_1 0x0070000074#define AR9285_AN_RF2G4_DB2_1_S 2075#define AR9285_AN_RF2G4_DB2_2 0x000E000076#define AR9285_AN_RF2G4_DB2_2_S 1777#define AR9285_AN_RF2G4_DB2_3 0x0001C00078#define AR9285_AN_RF2G4_DB2_3_S 1479#define AR9285_AN_RF2G4_DB2_4 0x0000380080#define AR9285_AN_RF2G4_DB2_4_S 118182#define AR9285_RF2G5 0x783083#define AR9285_RF2G5_IC50TX 0xfffff8ff84#define AR9285_RF2G5_IC50TX_SET 0x0000040085#define AR9285_RF2G5_IC50TX_XE_SET 0x0000050086#define AR9285_RF2G5_IC50TX_CLEAR 0x0000070087#define AR9285_RF2G5_IC50TX_CLEAR_S 88889#define AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX 0x0007E00090#define AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX_S 1391#define AR_PHY_TX_GAIN_CLC 0x0000001E92#define AR_PHY_TX_GAIN_CLC_S 193#define AR_PHY_TX_GAIN 0x0007F00094#define AR_PHY_TX_GAIN_S 129596#define AR_PHY_CLC_TBL1 0xa35c97#define AR_PHY_CLC_I0 0x07ff000098#define AR_PHY_CLC_I0_S 1699#define AR_PHY_CLC_Q0 0x0000ffd0100#define AR_PHY_CLC_Q0_S 5101102#define AR_PHY_MULTICHAIN_GAIN_CTL 0x99ac103#define AR_PHY_9285_FAST_DIV_BIAS 0x00007E00104#define AR_PHY_9285_FAST_DIV_BIAS_S 9105#define AR_PHY_9285_ANT_DIV_CTL_ALL 0x7f000000106#define AR_PHY_9285_ANT_DIV_CTL 0x01000000107#define AR_PHY_9285_ANT_DIV_CTL_S 24108#define AR_PHY_9285_ANT_DIV_ALT_LNACONF 0x06000000109#define AR_PHY_9285_ANT_DIV_ALT_LNACONF_S 25110#define AR_PHY_9285_ANT_DIV_MAIN_LNACONF 0x18000000111#define AR_PHY_9285_ANT_DIV_MAIN_LNACONF_S 27112#define AR_PHY_9285_ANT_DIV_ALT_GAINTB 0x20000000113#define AR_PHY_9285_ANT_DIV_ALT_GAINTB_S 29114#define AR_PHY_9285_ANT_DIV_MAIN_GAINTB 0x40000000115#define AR_PHY_9285_ANT_DIV_MAIN_GAINTB_S 30116#define AR_PHY_9285_ANT_DIV_LNA1 2117#define AR_PHY_9285_ANT_DIV_LNA2 1118#define AR_PHY_9285_ANT_DIV_LNA1_PLUS_LNA2 3119#define AR_PHY_9285_ANT_DIV_LNA1_MINUS_LNA2 0120#define AR_PHY_9285_ANT_DIV_GAINTB_0 0121#define AR_PHY_9285_ANT_DIV_GAINTB_1 1122123/* for AR_PHY_CCK_DETECT */124#define AR_PHY_CCK_DETECT_ANT_SWITCH_TIME 0x00001FC0125#define AR_PHY_CCK_DETECT_ANT_SWITCH_TIME_S 6126#define AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV 0x2000127#define AR_PHY_CCK_DETECT_BB_ENABLE_ANT_FAST_DIV_S 13128129#endif130131132