2019-05-27 06:55:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2014-07-22 20:12:12 +00:00
|
|
|
/*
|
2017-11-05 14:24:59 +00:00
|
|
|
* Driver for Silicon Labs SI2165 DVB-C/-T Demodulator
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013-2017 Matthias Schwarzott <zzam@gentoo.org>
|
|
|
|
*
|
|
|
|
* References:
|
|
|
|
* http://www.silabs.com/Support%20Documents/TechnicalDocs/Si2165-short.pdf
|
|
|
|
*/
|
2014-07-22 20:12:12 +00:00
|
|
|
|
|
|
|
#ifndef _DVB_SI2165_H
|
|
|
|
#define _DVB_SI2165_H
|
|
|
|
|
|
|
|
#include <linux/dvb/frontend.h>
|
|
|
|
|
|
|
|
enum {
|
|
|
|
SI2165_MODE_OFF = 0x00,
|
|
|
|
SI2165_MODE_PLL_EXT = 0x20,
|
|
|
|
SI2165_MODE_PLL_XTAL = 0x21
|
|
|
|
};
|
|
|
|
|
2016-07-26 07:09:02 +00:00
|
|
|
/* I2C addresses
|
|
|
|
* possible values: 0x64,0x65,0x66,0x67
|
|
|
|
*/
|
|
|
|
struct si2165_platform_data {
|
|
|
|
/*
|
|
|
|
* frontend
|
|
|
|
* returned by driver
|
|
|
|
*/
|
|
|
|
struct dvb_frontend **fe;
|
|
|
|
|
|
|
|
/* external clock or XTAL */
|
|
|
|
u8 chip_mode;
|
|
|
|
|
|
|
|
/* frequency of external clock or xtal in Hz
|
|
|
|
* possible values: 4000000, 16000000, 20000000, 240000000, 27000000
|
|
|
|
*/
|
2017-11-05 14:24:59 +00:00
|
|
|
u32 ref_freq_hz;
|
2016-07-26 07:09:02 +00:00
|
|
|
|
|
|
|
/* invert the spectrum */
|
|
|
|
bool inversion;
|
|
|
|
};
|
|
|
|
|
2014-07-22 20:12:12 +00:00
|
|
|
#endif /* _DVB_SI2165_H */
|