Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Driver for Silicon Labs SI2165 DVB-C/-T Demodulator
0004  *
0005  * Copyright (C) 2013-2017 Matthias Schwarzott <zzam@gentoo.org>
0006  *
0007  * References:
0008  *   https://www.silabs.com/Support%20Documents/TechnicalDocs/Si2165-short.pdf
0009  */
0010 
0011 #ifndef _DVB_SI2165_H
0012 #define _DVB_SI2165_H
0013 
0014 #include <linux/dvb/frontend.h>
0015 
0016 enum {
0017     SI2165_MODE_OFF = 0x00,
0018     SI2165_MODE_PLL_EXT = 0x20,
0019     SI2165_MODE_PLL_XTAL = 0x21
0020 };
0021 
0022 /* I2C addresses
0023  * possible values: 0x64,0x65,0x66,0x67
0024  */
0025 struct si2165_platform_data {
0026     /*
0027      * frontend
0028      * returned by driver
0029      */
0030     struct dvb_frontend **fe;
0031 
0032     /* external clock or XTAL */
0033     u8 chip_mode;
0034 
0035     /* frequency of external clock or xtal in Hz
0036      * possible values: 4000000, 16000000, 20000000, 240000000, 27000000
0037      */
0038     u32 ref_freq_hz;
0039 
0040     /* invert the spectrum */
0041     bool inversion;
0042 };
0043 
0044 #endif /* _DVB_SI2165_H */