13e54a169SMatthias Schwarzott /* 27dbbb4bfSMatthias Schwarzott * Driver for Silicon Labs SI2165 DVB-C/-T Demodulator 37dbbb4bfSMatthias Schwarzott * 47dbbb4bfSMatthias Schwarzott * Copyright (C) 2013-2017 Matthias Schwarzott <zzam@gentoo.org> 57dbbb4bfSMatthias Schwarzott * 67dbbb4bfSMatthias Schwarzott * This program is free software; you can redistribute it and/or modify 77dbbb4bfSMatthias Schwarzott * it under the terms of the GNU General Public License as published by 87dbbb4bfSMatthias Schwarzott * the Free Software Foundation; either version 2 of the License, or 97dbbb4bfSMatthias Schwarzott * (at your option) any later version. 107dbbb4bfSMatthias Schwarzott * 117dbbb4bfSMatthias Schwarzott * This program is distributed in the hope that it will be useful, 127dbbb4bfSMatthias Schwarzott * but WITHOUT ANY WARRANTY; without even the implied warranty of 137dbbb4bfSMatthias Schwarzott * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 147dbbb4bfSMatthias Schwarzott * GNU General Public License for more details. 157dbbb4bfSMatthias Schwarzott * 167dbbb4bfSMatthias Schwarzott * References: 177dbbb4bfSMatthias Schwarzott * http://www.silabs.com/Support%20Documents/TechnicalDocs/Si2165-short.pdf 187dbbb4bfSMatthias Schwarzott * 193e54a169SMatthias Schwarzott */ 203e54a169SMatthias Schwarzott 213e54a169SMatthias Schwarzott #ifndef _DVB_SI2165_H 223e54a169SMatthias Schwarzott #define _DVB_SI2165_H 233e54a169SMatthias Schwarzott 243e54a169SMatthias Schwarzott #include <linux/dvb/frontend.h> 253e54a169SMatthias Schwarzott 263e54a169SMatthias Schwarzott enum { 273e54a169SMatthias Schwarzott SI2165_MODE_OFF = 0x00, 283e54a169SMatthias Schwarzott SI2165_MODE_PLL_EXT = 0x20, 293e54a169SMatthias Schwarzott SI2165_MODE_PLL_XTAL = 0x21 303e54a169SMatthias Schwarzott }; 313e54a169SMatthias Schwarzott 327cd785adSMatthias Schwarzott /* I2C addresses 337cd785adSMatthias Schwarzott * possible values: 0x64,0x65,0x66,0x67 347cd785adSMatthias Schwarzott */ 357cd785adSMatthias Schwarzott struct si2165_platform_data { 367cd785adSMatthias Schwarzott /* 377cd785adSMatthias Schwarzott * frontend 387cd785adSMatthias Schwarzott * returned by driver 397cd785adSMatthias Schwarzott */ 407cd785adSMatthias Schwarzott struct dvb_frontend **fe; 417cd785adSMatthias Schwarzott 427cd785adSMatthias Schwarzott /* external clock or XTAL */ 437cd785adSMatthias Schwarzott u8 chip_mode; 447cd785adSMatthias Schwarzott 457cd785adSMatthias Schwarzott /* frequency of external clock or xtal in Hz 467cd785adSMatthias Schwarzott * possible values: 4000000, 16000000, 20000000, 240000000, 27000000 477cd785adSMatthias Schwarzott */ 487dbbb4bfSMatthias Schwarzott u32 ref_freq_hz; 497cd785adSMatthias Schwarzott 507cd785adSMatthias Schwarzott /* invert the spectrum */ 517cd785adSMatthias Schwarzott bool inversion; 527cd785adSMatthias Schwarzott }; 537cd785adSMatthias Schwarzott 543e54a169SMatthias Schwarzott #endif /* _DVB_SI2165_H */ 55