Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
37 lines
1.0 KiB
C
37 lines
1.0 KiB
C
#ifndef RTL8180_SA2400_H
|
|
#define RTL8180_SA2400_H
|
|
|
|
/*
|
|
* Radio tuning for Philips SA2400 on RTL8180
|
|
*
|
|
* Copyright 2007 Andrea Merello <andrea.merello@gmail.com>
|
|
*
|
|
* Code from the BSD driver and the rtl8181 project have been
|
|
* very useful to understand certain things
|
|
*
|
|
* I want to thanks the Authors of such projects and the Ndiswrapper
|
|
* project Authors.
|
|
*
|
|
* A special Big Thanks also is for all people who donated me cards,
|
|
* making possible the creation of the original rtl8180 driver
|
|
* from which this code is derived!
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#define SA2400_ANTENNA 0x91
|
|
#define SA2400_DIG_ANAPARAM_PWR1_ON 0x8
|
|
#define SA2400_ANA_ANAPARAM_PWR1_ON 0x28
|
|
#define SA2400_ANAPARAM_PWR0_ON 0x3
|
|
|
|
/* RX sensitivity in dbm */
|
|
#define SA2400_MAX_SENS 85
|
|
|
|
#define SA2400_REG4_FIRDAC_SHIFT 7
|
|
|
|
extern const struct rtl818x_rf_ops sa2400_rf_ops;
|
|
|
|
#endif /* RTL8180_SA2400_H */
|