diff options
author | Antti Palosaari <crope@iki.fi> | 2016-08-09 19:49:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-09-22 09:41:15 -0400 |
commit | 07fdf7d9f19fb601a0cc75c47ecd55aa26019eed (patch) | |
tree | 42c2533a8007e3e57a6156a989558836788a3041 /drivers/media/dvb-frontends/cxd2820r.h | |
parent | 4aa4fd86bca5769c9884838501454ef4c486936d (diff) |
[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>
Diffstat (limited to 'drivers/media/dvb-frontends/cxd2820r.h')
-rw-r--r-- | drivers/media/dvb-frontends/cxd2820r.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/cxd2820r.h b/drivers/media/dvb-frontends/cxd2820r.h index 56d42760263d..d77afe0b8a9e 100644 --- a/drivers/media/dvb-frontends/cxd2820r.h +++ b/drivers/media/dvb-frontends/cxd2820r.h | |||
@@ -37,6 +37,32 @@ | |||
37 | #define CXD2820R_TS_PARALLEL 0x30 | 37 | #define CXD2820R_TS_PARALLEL 0x30 |
38 | #define CXD2820R_TS_PARALLEL_MSB 0x70 | 38 | #define CXD2820R_TS_PARALLEL_MSB 0x70 |
39 | 39 | ||
40 | /* | ||
41 | * I2C address: 0x6c, 0x6d | ||
42 | */ | ||
43 | |||
44 | /** | ||
45 | * struct cxd2820r_platform_data - Platform data for the cxd2820r driver | ||
46 | * @ts_mode: TS mode. | ||
47 | * @ts_clk_inv: TS clock inverted. | ||
48 | * @if_agc_polarity: IF AGC polarity. | ||
49 | * @spec_inv: Input spectrum inverted. | ||
50 | * @gpio_chip_base: GPIO. | ||
51 | * @get_dvb_frontend: Get DVB frontend. | ||
52 | */ | ||
53 | |||
54 | struct cxd2820r_platform_data { | ||
55 | u8 ts_mode; | ||
56 | bool ts_clk_inv; | ||
57 | bool if_agc_polarity; | ||
58 | bool spec_inv; | ||
59 | int **gpio_chip_base; | ||
60 | |||
61 | struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *); | ||
62 | /* private: For legacy media attach wrapper. Do not set value. */ | ||
63 | bool attach_in_use; | ||
64 | }; | ||
65 | |||
40 | struct cxd2820r_config { | 66 | struct cxd2820r_config { |
41 | /* Demodulator I2C address. | 67 | /* Demodulator I2C address. |
42 | * Driver determines DVB-C slave I2C address automatically from master | 68 | * Driver determines DVB-C slave I2C address automatically from master |