blob: 76c2ca7d7edb7a54cc637b740cd82fb0e29cb135 [file] [log] [blame]
Matthias Schwarzott3e54a162014-07-22 17:12:12 -03001/*
2 Driver for Silicon Labs SI2165 DVB-C/-T Demodulator
3
4 Copyright (C) 2013-2014 Matthias Schwarzott <zzam@gentoo.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 References:
17 http://www.silabs.com/Support%20Documents/TechnicalDocs/Si2165-short.pdf
18*/
19
20#ifndef _DVB_SI2165_H
21#define _DVB_SI2165_H
22
23#include <linux/dvb/frontend.h>
24
Matthias Schwarzott3e54a162014-07-22 17:12:12 -030025enum {
26 SI2165_MODE_OFF = 0x00,
27 SI2165_MODE_PLL_EXT = 0x20,
28 SI2165_MODE_PLL_XTAL = 0x21
29};
30
Matthias Schwarzott7cd785a2016-07-26 04:09:02 -030031/* I2C addresses
32 * possible values: 0x64,0x65,0x66,0x67
33 */
34struct si2165_platform_data {
35 /*
36 * frontend
37 * returned by driver
38 */
39 struct dvb_frontend **fe;
40
41 /* external clock or XTAL */
42 u8 chip_mode;
43
44 /* frequency of external clock or xtal in Hz
45 * possible values: 4000000, 16000000, 20000000, 240000000, 27000000
46 */
47 u32 ref_freq_Hz;
48
49 /* invert the spectrum */
50 bool inversion;
51};
52
Matthias Schwarzott3e54a162014-07-22 17:12:12 -030053#endif /* _DVB_SI2165_H */