summaryrefslogtreecommitdiff
path: root/drivers/stream_input/parser/demux/hw_demux/demod_gt.h (plain)
blob: 0535da7a437d8e36dd6d5c78828fb69c7efa5ae8
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
21#ifndef __AML_DEMOD_GT_H__
22#define __AML_DEMOD_GT_H__
23
24#include "dvb_frontend.h"
25
26struct amlfe_exp_config {
27 /*config by aml_fe ?*/
28 /* */
29 int set_mode;
30};
31
32struct amlfe_demod_config {
33 int dev_id;
34 u32 ts;
35 struct i2c_adapter *i2c_adap;
36 int i2c_addr;
37 int reset_gpio;
38 int reset_value;
39};
40
41/* For configure different tuners */
42/* It can add fields as extensions */
43struct tuner_config {
44 u8 id;
45 u8 i2c_addr;
46 u8 xtal; /* 0: 16MHz, 1: 24MHz, 3: 27MHz */
47 u8 xtal_cap;
48 u8 xtal_mode;
49};
50
51static inline struct dvb_frontend* aml_dtvdm_attach (const struct amlfe_exp_config *config) {
52 return NULL;
53}
54
55static inline struct dvb_frontend* si2151_attach (struct dvb_frontend *fe,struct i2c_adapter *i2c, struct tuner_config *cfg)
56{
57 return NULL;
58}
59
60static inline struct dvb_frontend* mxl661_attach (struct dvb_frontend *fe,struct i2c_adapter *i2c, struct tuner_config *cfg)
61{
62 return NULL;
63}
64
65static inline struct dvb_frontend* si2159_attach (struct dvb_frontend *fe,struct i2c_adapter *i2c, struct tuner_config *cfg)
66{
67 return NULL;
68}
69
70static inline struct dvb_frontend* r842_attach (struct dvb_frontend *fe, struct i2c_adapter *i2c, struct tuner_config *cfg)
71{
72 return NULL;
73}
74
75static inline struct dvb_frontend* r840_attach (struct dvb_frontend *fe, struct i2c_adapter *i2c, struct tuner_config *cfg)
76{
77 return NULL;
78}
79
80static inline struct dvb_frontend* atbm8881_attach (const struct amlfe_demod_config *config)
81{
82 return NULL;
83}
84
85#endif /*__AML_DEMOD_GT_H__*/
86