xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtl818x/rtl8180/sa2400.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun #ifndef RTL8180_SA2400_H
3*4882a593Smuzhiyun #define RTL8180_SA2400_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun /*
6*4882a593Smuzhiyun  * Radio tuning for Philips SA2400 on RTL8180
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * Copyright 2007 Andrea Merello <andrea.merello@gmail.com>
9*4882a593Smuzhiyun  *
10*4882a593Smuzhiyun  * Code from the BSD driver and the rtl8181 project have been
11*4882a593Smuzhiyun  * very useful to understand certain things
12*4882a593Smuzhiyun  *
13*4882a593Smuzhiyun  * I want to thanks the Authors of such projects and the Ndiswrapper
14*4882a593Smuzhiyun  * project Authors.
15*4882a593Smuzhiyun  *
16*4882a593Smuzhiyun  * A special Big Thanks also is for all people who donated me cards,
17*4882a593Smuzhiyun  * making possible the creation of the original rtl8180 driver
18*4882a593Smuzhiyun  * from which this code is derived!
19*4882a593Smuzhiyun  */
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun #define SA2400_ANTENNA 0x91
22*4882a593Smuzhiyun #define SA2400_DIG_ANAPARAM_PWR1_ON 0x8
23*4882a593Smuzhiyun #define SA2400_ANA_ANAPARAM_PWR1_ON 0x28
24*4882a593Smuzhiyun #define SA2400_ANAPARAM_PWR0_ON 0x3
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun /* RX sensitivity in dbm */
27*4882a593Smuzhiyun #define SA2400_MAX_SENS 85
28*4882a593Smuzhiyun 
29*4882a593Smuzhiyun #define SA2400_REG4_FIRDAC_SHIFT 7
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun extern const struct rtl818x_rf_ops sa2400_rf_ops;
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #endif /* RTL8180_SA2400_H */
34