Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * NXP TDA10071 + Conexant CX24118A DVB-S/S2 demodulator + tuner driver
0004  *
0005  * Copyright (C) 2011 Antti Palosaari <crope@iki.fi>
0006  */
0007 
0008 #ifndef TDA10071_H
0009 #define TDA10071_H
0010 
0011 #include <linux/dvb/frontend.h>
0012 
0013 /*
0014  * I2C address
0015  * 0x05, 0x55,
0016  */
0017 
0018 /**
0019  * struct tda10071_platform_data - Platform data for the tda10071 driver
0020  * @clk: Clock frequency.
0021  * @i2c_wr_max: Max bytes I2C adapter can write at once.
0022  * @ts_mode: TS mode.
0023  * @spec_inv: Input spectrum inversion.
0024  * @pll_multiplier: PLL multiplier.
0025  * @tuner_i2c_addr: CX24118A tuner I2C address (0x14, 0x54, ...).
0026  * @get_dvb_frontend: Get DVB frontend.
0027  */
0028 struct tda10071_platform_data {
0029     u32 clk;
0030     u16 i2c_wr_max;
0031 #define TDA10071_TS_SERIAL        0
0032 #define TDA10071_TS_PARALLEL      1
0033     u8 ts_mode;
0034     bool spec_inv;
0035     u8 pll_multiplier;
0036     u8 tuner_i2c_addr;
0037 
0038     struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
0039 };
0040 
0041 #endif /* TDA10071_H */