This source file includes following definitions.
- lgs8gxx_attach
1
2
3
4
5
6
7
8
9
10
11
12 #ifndef __LGS8GXX_H__
13 #define __LGS8GXX_H__
14
15 #include <linux/dvb/frontend.h>
16 #include <linux/i2c.h>
17
18 #define LGS8GXX_PROD_LGS8913 0
19 #define LGS8GXX_PROD_LGS8GL5 1
20 #define LGS8GXX_PROD_LGS8G42 3
21 #define LGS8GXX_PROD_LGS8G52 4
22 #define LGS8GXX_PROD_LGS8G54 5
23 #define LGS8GXX_PROD_LGS8G75 6
24
25 struct lgs8gxx_config {
26
27
28 u8 prod;
29
30
31 u8 demod_address;
32
33
34 u8 serial_ts;
35
36
37 u8 ts_clk_pol;
38
39
40 u8 ts_clk_gated;
41
42
43 u32 if_clk_freq;
44
45
46 u32 if_freq;
47
48
49 u8 ext_adc;
50
51
52 u8 adc_signed;
53
54
55 u8 if_neg_edge;
56
57
58 u8 if_neg_center;
59
60
61
62 u8 adc_vpp;
63
64
65 u8 tuner_address;
66 };
67
68 #if IS_REACHABLE(CONFIG_DVB_LGS8GXX)
69 extern struct dvb_frontend *lgs8gxx_attach(const struct lgs8gxx_config *config,
70 struct i2c_adapter *i2c);
71 #else
72 static inline
73 struct dvb_frontend *lgs8gxx_attach(const struct lgs8gxx_config *config,
74 struct i2c_adapter *i2c) {
75 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
76 return NULL;
77 }
78 #endif
79
80 #endif