18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef RTL8180_RTL8225_H
38c2ecf20Sopenharmony_ci#define RTL8180_RTL8225_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#define RTL8225_ANAPARAM_ON	0xa0000b59
68c2ecf20Sopenharmony_ci#define RTL8225_ANAPARAM2_ON	0x860dec11
78c2ecf20Sopenharmony_ci#define RTL8225_ANAPARAM_OFF	0xa00beb59
88c2ecf20Sopenharmony_ci#define RTL8225_ANAPARAM2_OFF	0x840dec11
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciconst struct rtl818x_rf_ops * rtl8180_detect_rf(struct ieee80211_hw *);
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cistatic inline void rtl8225_write_phy_ofdm(struct ieee80211_hw *dev,
138c2ecf20Sopenharmony_ci					  u8 addr, u8 data)
148c2ecf20Sopenharmony_ci{
158c2ecf20Sopenharmony_ci	rtl8180_write_phy(dev, addr, data);
168c2ecf20Sopenharmony_ci}
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_cistatic inline void rtl8225_write_phy_cck(struct ieee80211_hw *dev,
198c2ecf20Sopenharmony_ci					 u8 addr, u8 data)
208c2ecf20Sopenharmony_ci{
218c2ecf20Sopenharmony_ci	rtl8180_write_phy(dev, addr, data | 0x10000);
228c2ecf20Sopenharmony_ci}
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif /* RTL8180_RTL8225_H */
25