diff options
Diffstat (limited to 'drivers/media/dvb-frontends/cxd2820r.h')
| -rw-r--r-- | drivers/media/dvb-frontends/cxd2820r.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/cxd2820r.h b/drivers/media/dvb-frontends/cxd2820r.h index f3ff8f6eb3bb..a49400c0e28e 100644 --- a/drivers/media/dvb-frontends/cxd2820r.h +++ b/drivers/media/dvb-frontends/cxd2820r.h | |||
| @@ -49,7 +49,6 @@ | |||
| 49 | * @gpio_chip_base: GPIO. | 49 | * @gpio_chip_base: GPIO. |
| 50 | * @get_dvb_frontend: Get DVB frontend. | 50 | * @get_dvb_frontend: Get DVB frontend. |
| 51 | */ | 51 | */ |
| 52 | |||
| 53 | struct cxd2820r_platform_data { | 52 | struct cxd2820r_platform_data { |
| 54 | u8 ts_mode; | 53 | u8 ts_mode; |
| 55 | bool ts_clk_inv; | 54 | bool ts_clk_inv; |
| @@ -62,6 +61,17 @@ struct cxd2820r_platform_data { | |||
| 62 | bool attach_in_use; | 61 | bool attach_in_use; |
| 63 | }; | 62 | }; |
| 64 | 63 | ||
| 64 | /** | ||
| 65 | * struct cxd2820r_config - configuration for cxd2020r demod | ||
| 66 | * | ||
| 67 | * @i2c_address: Demodulator I2C address. Driver determines DVB-C slave I2C | ||
| 68 | * address automatically from master address. | ||
| 69 | * Default: none, must set. Values: 0x6c, 0x6d. | ||
| 70 | * @ts_mode: TS output mode. Default: none, must set. Values: FIXME? | ||
| 71 | * @ts_clock_inv: TS clock inverted. Default: 0. Values: 0, 1. | ||
| 72 | * @if_agc_polarity: Default: 0. Values: 0, 1 | ||
| 73 | * @spec_inv: Spectrum inversion. Default: 0. Values: 0, 1. | ||
| 74 | */ | ||
| 65 | struct cxd2820r_config { | 75 | struct cxd2820r_config { |
| 66 | /* Demodulator I2C address. | 76 | /* Demodulator I2C address. |
| 67 | * Driver determines DVB-C slave I2C address automatically from master | 77 | * Driver determines DVB-C slave I2C address automatically from master |
| @@ -98,6 +108,18 @@ struct cxd2820r_config { | |||
| 98 | 108 | ||
| 99 | 109 | ||
| 100 | #if IS_REACHABLE(CONFIG_DVB_CXD2820R) | 110 | #if IS_REACHABLE(CONFIG_DVB_CXD2820R) |
| 111 | /** | ||
| 112 | * Attach a cxd2820r demod | ||
| 113 | * | ||
| 114 | * @config: pointer to &struct cxd2820r_config with demod configuration. | ||
| 115 | * @i2c: i2c adapter to use. | ||
| 116 | * @gpio_chip_base: if zero, disables GPIO setting. Otherwise, if | ||
| 117 | * CONFIG_GPIOLIB is set dynamically allocate | ||
| 118 | * gpio base; if is not set, use its value to | ||
| 119 | * setup the GPIO pins. | ||
| 120 | * | ||
| 121 | * return: FE pointer on success, NULL on failure. | ||
| 122 | */ | ||
| 101 | extern struct dvb_frontend *cxd2820r_attach( | 123 | extern struct dvb_frontend *cxd2820r_attach( |
| 102 | const struct cxd2820r_config *config, | 124 | const struct cxd2820r_config *config, |
| 103 | struct i2c_adapter *i2c, | 125 | struct i2c_adapter *i2c, |
