blob: 7d8ae11b884e258b57814ea5bbf5763a3ccd28cb
1 | /* |
2 | * Copyright (C) 2017 Amlogic, Inc. All rights reserved. |
3 | * |
4 | * This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by |
6 | * the Free Software Foundation; either version 2 of the License, or |
7 | * (at your option) any later version. |
8 | * |
9 | * This program is distributed in the hope that it will be useful, but WITHOUT |
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
12 | * more details. |
13 | * |
14 | * You should have received a copy of the GNU General Public License along |
15 | * with this program; if not, write to the Free Software Foundation, Inc., |
16 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
17 | * |
18 | * Description: |
19 | */ |
20 | #ifndef __AML_DEMOD_GT_H__ |
21 | #define __AML_DEMOD_GT_H__ |
22 | |
23 | #include "dvb_frontend.h" |
24 | |
25 | struct amlfe_exp_config { |
26 | /*config by aml_fe ?*/ |
27 | /* */ |
28 | int set_mode; |
29 | }; |
30 | |
31 | struct amlfe_demod_config { |
32 | int dev_id; |
33 | u32 ts; |
34 | struct i2c_adapter *i2c_adap; |
35 | int i2c_addr; |
36 | int reset_gpio; |
37 | int reset_value; |
38 | int ts_out_mode; //serial or parallel; 0:serial, 1:parallel |
39 | int tuner0_i2c_addr; |
40 | int tuner1_i2c_addr; |
41 | int tuner0_code; |
42 | int tuner1_code; |
43 | }; |
44 | |
45 | /* For configure different tuners */ |
46 | /* It can add fields as extensions */ |
47 | struct tuner_config { |
48 | u8 id; |
49 | u8 i2c_addr; |
50 | u8 xtal; /* 0: 16MHz, 1: 24MHz, 3: 27MHz */ |
51 | u8 xtal_cap; |
52 | u8 xtal_mode; |
53 | }; |
54 | |
55 | static inline struct dvb_frontend* aml_dtvdm_attach (const struct amlfe_exp_config *config) { |
56 | return NULL; |
57 | } |
58 | |
59 | static inline struct dvb_frontend* si2151_attach (struct dvb_frontend *fe,struct i2c_adapter *i2c, struct tuner_config *cfg) |
60 | { |
61 | return NULL; |
62 | } |
63 | |
64 | static inline struct dvb_frontend* mxl661_attach (struct dvb_frontend *fe,struct i2c_adapter *i2c, struct tuner_config *cfg) |
65 | { |
66 | return NULL; |
67 | } |
68 | |
69 | static inline struct dvb_frontend* si2159_attach (struct dvb_frontend *fe,struct i2c_adapter *i2c, struct tuner_config *cfg) |
70 | { |
71 | return NULL; |
72 | } |
73 | |
74 | static inline struct dvb_frontend* r842_attach (struct dvb_frontend *fe, struct i2c_adapter *i2c, struct tuner_config *cfg) |
75 | { |
76 | return NULL; |
77 | } |
78 | |
79 | static inline struct dvb_frontend* r840_attach (struct dvb_frontend *fe, struct i2c_adapter *i2c, struct tuner_config *cfg) |
80 | { |
81 | return NULL; |
82 | } |
83 | |
84 | static inline struct dvb_frontend* atbm2040_attach (struct dvb_frontend *fe, struct i2c_adapter *i2c, struct tuner_config *cfg) |
85 | { |
86 | return NULL; |
87 | } |
88 | |
89 | static inline struct dvb_frontend* atbm8881_attach (const struct amlfe_demod_config *config) |
90 | { |
91 | return NULL; |
92 | } |
93 | |
94 | static inline struct dvb_frontend* si2168_attach (const struct amlfe_demod_config *config) |
95 | { |
96 | return NULL; |
97 | } |
98 | |
99 | static inline struct dvb_frontend* si2168_attach_1 (const struct amlfe_demod_config *config) |
100 | { |
101 | return NULL; |
102 | } |
103 | |
104 | static inline struct dvb_frontend* avl6762_attach (const struct amlfe_demod_config *config) |
105 | { |
106 | return NULL; |
107 | } |
108 | |
109 | #endif /*__AML_DEMOD_GT_H__*/ |
110 |