Commit | Line | Data |
---|---|---|
c942fddf | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
c0adca73 AP |
2 | /* |
3 | * Realtek RTL2830 DVB-T demodulator driver | |
4 | * | |
5 | * Copyright (C) 2011 Antti Palosaari <crope@iki.fi> | |
c0adca73 AP |
6 | */ |
7 | ||
8 | #ifndef RTL2830_H | |
9 | #define RTL2830_H | |
10 | ||
11 | #include <linux/dvb/frontend.h> | |
12 | ||
61c309ff AP |
13 | /** |
14 | * struct rtl2830_platform_data - Platform data for the rtl2830 driver | |
15 | * @clk: Clock frequency (4000000, 16000000, 25000000, 28800000). | |
16 | * @spec_inv: Spectrum inversion. | |
17 | * @vtop: AGC take-over point. | |
18 | * @krf: AGC ratio. | |
19 | * @agc_targ_val: AGC. | |
20 | * @get_dvb_frontend: Get DVB frontend. | |
21 | * @get_i2c_adapter: Get I2C adapter. | |
22 | * @pid_filter: Set PID to PID filter. | |
23 | * @pid_filter_ctrl: Control PID filter. | |
24 | */ | |
28c08799 | 25 | struct rtl2830_platform_data { |
28c08799 | 26 | u32 clk; |
28c08799 | 27 | bool spec_inv; |
28c08799 | 28 | u8 vtop; |
28c08799 | 29 | u8 krf; |
28c08799 AP |
30 | u8 agc_targ_val; |
31 | ||
28c08799 AP |
32 | struct dvb_frontend* (*get_dvb_frontend)(struct i2c_client *); |
33 | struct i2c_adapter* (*get_i2c_adapter)(struct i2c_client *); | |
df70ddad AP |
34 | int (*pid_filter)(struct dvb_frontend *, u8, u16, int); |
35 | int (*pid_filter_ctrl)(struct dvb_frontend *, int); | |
28c08799 AP |
36 | }; |
37 | ||
c0adca73 | 38 | #endif /* RTL2830_H */ |