This source file includes following definitions.
- mxl5007t_attach
1
2
3
4
5
6
7
8 #ifndef __MXL5007T_H__
9 #define __MXL5007T_H__
10
11 #include <media/dvb_frontend.h>
12
13
14
15 enum mxl5007t_if_freq {
16 MxL_IF_4_MHZ,
17 MxL_IF_4_5_MHZ,
18 MxL_IF_4_57_MHZ,
19 MxL_IF_5_MHZ,
20 MxL_IF_5_38_MHZ,
21 MxL_IF_6_MHZ,
22 MxL_IF_6_28_MHZ,
23 MxL_IF_9_1915_MHZ,
24 MxL_IF_35_25_MHZ,
25 MxL_IF_36_15_MHZ,
26 MxL_IF_44_MHZ,
27 };
28
29 enum mxl5007t_xtal_freq {
30 MxL_XTAL_16_MHZ,
31 MxL_XTAL_20_MHZ,
32 MxL_XTAL_20_25_MHZ,
33 MxL_XTAL_20_48_MHZ,
34 MxL_XTAL_24_MHZ,
35 MxL_XTAL_25_MHZ,
36 MxL_XTAL_25_14_MHZ,
37 MxL_XTAL_27_MHZ,
38 MxL_XTAL_28_8_MHZ,
39 MxL_XTAL_32_MHZ,
40 MxL_XTAL_40_MHZ,
41 MxL_XTAL_44_MHZ,
42 MxL_XTAL_48_MHZ,
43 MxL_XTAL_49_3811_MHZ,
44 };
45
46 enum mxl5007t_clkout_amp {
47 MxL_CLKOUT_AMP_0_94V = 0,
48 MxL_CLKOUT_AMP_0_53V = 1,
49 MxL_CLKOUT_AMP_0_37V = 2,
50 MxL_CLKOUT_AMP_0_28V = 3,
51 MxL_CLKOUT_AMP_0_23V = 4,
52 MxL_CLKOUT_AMP_0_20V = 5,
53 MxL_CLKOUT_AMP_0_17V = 6,
54 MxL_CLKOUT_AMP_0_15V = 7,
55 };
56
57 struct mxl5007t_config {
58 s32 if_diff_out_level;
59 enum mxl5007t_clkout_amp clk_out_amp;
60 enum mxl5007t_xtal_freq xtal_freq_hz;
61 enum mxl5007t_if_freq if_freq_hz;
62 unsigned int invert_if:1;
63 unsigned int loop_thru_enable:1;
64 unsigned int clk_out_enable:1;
65 };
66
67 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MXL5007T)
68 extern struct dvb_frontend *mxl5007t_attach(struct dvb_frontend *fe,
69 struct i2c_adapter *i2c, u8 addr,
70 struct mxl5007t_config *cfg);
71 #else
72 static inline struct dvb_frontend *mxl5007t_attach(struct dvb_frontend *fe,
73 struct i2c_adapter *i2c,
74 u8 addr,
75 struct mxl5007t_config *cfg)
76 {
77 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
78 return NULL;
79 }
80 #endif
81
82 #endif