18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Driver for Maxim MAX2165 silicon tuner 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2009 David T. L. Wong <davidtlwong@gmail.com> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __MAX2165_PRIV_H__ 98c2ecf20Sopenharmony_ci#define __MAX2165_PRIV_H__ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define REG_NDIV_INT 0x00 128c2ecf20Sopenharmony_ci#define REG_NDIV_FRAC2 0x01 138c2ecf20Sopenharmony_ci#define REG_NDIV_FRAC1 0x02 148c2ecf20Sopenharmony_ci#define REG_NDIV_FRAC0 0x03 158c2ecf20Sopenharmony_ci#define REG_TRACK_FILTER 0x04 168c2ecf20Sopenharmony_ci#define REG_LNA 0x05 178c2ecf20Sopenharmony_ci#define REG_PLL_CFG 0x06 188c2ecf20Sopenharmony_ci#define REG_TEST 0x07 198c2ecf20Sopenharmony_ci#define REG_SHUTDOWN 0x08 208c2ecf20Sopenharmony_ci#define REG_VCO_CTRL 0x09 218c2ecf20Sopenharmony_ci#define REG_BASEBAND_CTRL 0x0A 228c2ecf20Sopenharmony_ci#define REG_DC_OFFSET_CTRL 0x0B 238c2ecf20Sopenharmony_ci#define REG_DC_OFFSET_DAC 0x0C 248c2ecf20Sopenharmony_ci#define REG_ROM_TABLE_ADDR 0x0D 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci/* Read Only Registers */ 278c2ecf20Sopenharmony_ci#define REG_ROM_TABLE_DATA 0x10 288c2ecf20Sopenharmony_ci#define REG_STATUS 0x11 298c2ecf20Sopenharmony_ci#define REG_AUTOTUNE 0x12 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_cistruct max2165_priv { 328c2ecf20Sopenharmony_ci struct max2165_config *config; 338c2ecf20Sopenharmony_ci struct i2c_adapter *i2c; 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci u32 frequency; 368c2ecf20Sopenharmony_ci u32 bandwidth; 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci u8 tf_ntch_low_cfg; 398c2ecf20Sopenharmony_ci u8 tf_ntch_hi_cfg; 408c2ecf20Sopenharmony_ci u8 tf_balun_low_ref; 418c2ecf20Sopenharmony_ci u8 tf_balun_hi_ref; 428c2ecf20Sopenharmony_ci u8 bb_filter_7mhz_cfg; 438c2ecf20Sopenharmony_ci u8 bb_filter_8mhz_cfg; 448c2ecf20Sopenharmony_ci}; 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci#endif 47