Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / si2165.h
blobadc5e18754ad5bb90c54a5d1c72baca017ac9c48
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Driver for Silicon Labs SI2165 DVB-C/-T Demodulator
5 * Copyright (C) 2013-2017 Matthias Schwarzott <zzam@gentoo.org>
7 * References:
8 * https://www.silabs.com/Support%20Documents/TechnicalDocs/Si2165-short.pdf
9 */
11 #ifndef _DVB_SI2165_H
12 #define _DVB_SI2165_H
14 #include <linux/dvb/frontend.h>
16 enum {
17 SI2165_MODE_OFF = 0x00,
18 SI2165_MODE_PLL_EXT = 0x20,
19 SI2165_MODE_PLL_XTAL = 0x21
22 /* I2C addresses
23 * possible values: 0x64,0x65,0x66,0x67
25 struct si2165_platform_data {
27 * frontend
28 * returned by driver
30 struct dvb_frontend **fe;
32 /* external clock or XTAL */
33 u8 chip_mode;
35 /* frequency of external clock or xtal in Hz
36 * possible values: 4000000, 16000000, 20000000, 240000000, 27000000
38 u32 ref_freq_hz;
40 /* invert the spectrum */
41 bool inversion;
44 #endif /* _DVB_SI2165_H */