Path: blob/master/drivers/media/dvb/frontends/atbm8830.h
15112 views
/*1* Support for AltoBeam GB20600 (a.k.a DMB-TH) demodulator2* ATBM8830, ATBM88313*4* Copyright (C) 2009 David T.L. Wong <[email protected]>5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*11* This program is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.19*/2021#ifndef __ATBM8830_H__22#define __ATBM8830_H__2324#include <linux/dvb/frontend.h>25#include <linux/i2c.h>2627#define ATBM8830_PROD_8830 028#define ATBM8830_PROD_8831 12930struct atbm8830_config {3132/* product type */33u8 prod;3435/* the demodulator's i2c address */36u8 demod_address;3738/* parallel or serial transport stream */39u8 serial_ts;4041/* transport stream clock output only when receiving valid stream */42u8 ts_clk_gated;4344/* Decoder sample TS data at rising edge of clock */45u8 ts_sampling_edge;4647/* Oscillator clock frequency */48u32 osc_clk_freq; /* in kHz */4950/* IF frequency */51u32 if_freq; /* in kHz */5253/* Swap I/Q for zero IF */54u8 zif_swap_iq;5556/* Tuner AGC settings */57u8 agc_min;58u8 agc_max;59u8 agc_hold_loop;60};6162#if defined(CONFIG_DVB_ATBM8830) || \63(defined(CONFIG_DVB_ATBM8830_MODULE) && defined(MODULE))64extern struct dvb_frontend *atbm8830_attach(const struct atbm8830_config *config,65struct i2c_adapter *i2c);66#else67static inline68struct dvb_frontend *atbm8830_attach(const struct atbm8830_config *config,69struct i2c_adapter *i2c) {70printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);71return NULL;72}73#endif /* CONFIG_DVB_ATBM8830 */7475#endif /* __ATBM8830_H__ */767778