18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci#ifndef RTL8180_SA2400_H
38c2ecf20Sopenharmony_ci#define RTL8180_SA2400_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/*
68c2ecf20Sopenharmony_ci * Radio tuning for Philips SA2400 on RTL8180
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * Copyright 2007 Andrea Merello <andrea.merello@gmail.com>
98c2ecf20Sopenharmony_ci *
108c2ecf20Sopenharmony_ci * Code from the BSD driver and the rtl8181 project have been
118c2ecf20Sopenharmony_ci * very useful to understand certain things
128c2ecf20Sopenharmony_ci *
138c2ecf20Sopenharmony_ci * I want to thanks the Authors of such projects and the Ndiswrapper
148c2ecf20Sopenharmony_ci * project Authors.
158c2ecf20Sopenharmony_ci *
168c2ecf20Sopenharmony_ci * A special Big Thanks also is for all people who donated me cards,
178c2ecf20Sopenharmony_ci * making possible the creation of the original rtl8180 driver
188c2ecf20Sopenharmony_ci * from which this code is derived!
198c2ecf20Sopenharmony_ci */
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci#define SA2400_ANTENNA 0x91
228c2ecf20Sopenharmony_ci#define SA2400_DIG_ANAPARAM_PWR1_ON 0x8
238c2ecf20Sopenharmony_ci#define SA2400_ANA_ANAPARAM_PWR1_ON 0x28
248c2ecf20Sopenharmony_ci#define SA2400_ANAPARAM_PWR0_ON 0x3
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci/* RX sensitivity in dbm */
278c2ecf20Sopenharmony_ci#define SA2400_MAX_SENS 85
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#define SA2400_REG4_FIRDAC_SHIFT 7
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciextern const struct rtl818x_rf_ops sa2400_rf_ops;
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci#endif /* RTL8180_SA2400_H */
34