[media] cxd2820r: add I2C driver bindings
Add I2C driver bindings in order to support proper I2C driver registration with driver core. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
4aa4fd86bc
commit
07fdf7d9f1
@@ -37,6 +37,32 @@
|
||||
#define CXD2820R_TS_PARALLEL 0x30
|
||||
#define CXD2820R_TS_PARALLEL_MSB 0x70
|
||||
|
||||
/*
|
||||
* I2C address: 0x6c, 0x6d
|
||||
*/
|
||||
|
||||
/**
|
||||
* struct cxd2820r_platform_data - Platform data for the cxd2820r driver
|
||||
* @ts_mode: TS mode.
|
||||
* @ts_clk_inv: TS clock inverted.
|
||||
* @if_agc_polarity: IF AGC polarity.
|
||||
* @spec_inv: Input spectrum inverted.
|
||||
* @gpio_chip_base: GPIO.
|
||||
* @get_dvb_frontend: Get DVB frontend.
|
||||
*/
|
||||
|
||||
struct cxd2820r_platform_data {
|
||||
u8 ts_mode;
|
||||
bool ts_clk_inv;
|
||||
bool if_agc_polarity;
|
||||
bool spec_inv;
|
||||
int **gpio_chip_base;
|
||||
|
||||
struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *);
|
||||
/* private: For legacy media attach wrapper. Do not set value. */
|
||||
bool attach_in_use;
|
||||
};
|
||||
|
||||
struct cxd2820r_config {
|
||||
/* Demodulator I2C address.
|
||||
* Driver determines DVB-C slave I2C address automatically from master
|
||||
|
Reference in New Issue
Block a user