1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Support for AltoBeam GB20600 (a.k.a DMB-TH) demodulator
6 * Copyright (C) 2009 David T.L. Wong <davidtlwong@gmail.com>
10 #define __ATBM8830_H__
12 #include <linux/dvb/frontend.h>
13 #include <linux/i2c.h>
15 #define ATBM8830_PROD_8830 0
16 #define ATBM8830_PROD_8831 1
18 struct atbm8830_config
{
23 /* the demodulator's i2c address */
26 /* parallel or serial transport stream */
29 /* transport stream clock output only when receiving valid stream */
32 /* Decoder sample TS data at rising edge of clock */
35 /* Oscillator clock frequency */
36 u32 osc_clk_freq
; /* in kHz */
39 u32 if_freq
; /* in kHz */
41 /* Swap I/Q for zero IF */
44 /* Tuner AGC settings */
50 #if IS_REACHABLE(CONFIG_DVB_ATBM8830)
51 extern struct dvb_frontend
*atbm8830_attach(const struct atbm8830_config
*config
,
52 struct i2c_adapter
*i2c
);
55 struct dvb_frontend
*atbm8830_attach(const struct atbm8830_config
*config
,
56 struct i2c_adapter
*i2c
) {
57 printk(KERN_WARNING
"%s: driver disabled by Kconfig\n", __func__
);
60 #endif /* CONFIG_DVB_ATBM8830 */
62 #endif /* __ATBM8830_H__ */