mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 00:21:32 +00:00
c942fddf87
Based on 3 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version [author] [graeme] [gregory] [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i] [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema] [hk] [hemahk]@[ti] [com] this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 1105 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
63 lines
1.9 KiB
C
63 lines
1.9 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Support for AltoBeam GB20600 (a.k.a DMB-TH) demodulator
|
|
* ATBM8830, ATBM8831
|
|
*
|
|
* Copyright (C) 2009 David T.L. Wong <davidtlwong@gmail.com>
|
|
*/
|
|
|
|
#ifndef __ATBM8830_PRIV_H
|
|
#define __ATBM8830_PRIV_H
|
|
|
|
struct atbm_state {
|
|
struct i2c_adapter *i2c;
|
|
/* configuration settings */
|
|
const struct atbm8830_config *config;
|
|
struct dvb_frontend frontend;
|
|
};
|
|
|
|
#define REG_CHIP_ID 0x0000
|
|
#define REG_TUNER_BASEBAND 0x0001
|
|
#define REG_DEMOD_RUN 0x0004
|
|
#define REG_DSP_RESET 0x0005
|
|
#define REG_RAM_RESET 0x0006
|
|
#define REG_ADC_RESET 0x0007
|
|
#define REG_TSPORT_RESET 0x0008
|
|
#define REG_BLKERR_POL 0x000C
|
|
#define REG_I2C_GATE 0x0103
|
|
#define REG_TS_SAMPLE_EDGE 0x0301
|
|
#define REG_TS_PKT_LEN_204 0x0302
|
|
#define REG_TS_PKT_LEN_AUTO 0x0303
|
|
#define REG_TS_SERIAL 0x0305
|
|
#define REG_TS_CLK_FREERUN 0x0306
|
|
#define REG_TS_VALID_MODE 0x0307
|
|
#define REG_TS_CLK_MODE 0x030B /* 1 for serial, 0 for parallel */
|
|
|
|
#define REG_TS_ERRBIT_USE 0x030C
|
|
#define REG_LOCK_STATUS 0x030D
|
|
#define REG_ADC_CONFIG 0x0602
|
|
#define REG_CARRIER_OFFSET 0x0827 /* 0x0827-0x0829 little endian */
|
|
#define REG_DETECTED_PN_MODE 0x082D
|
|
#define REG_READ_LATCH 0x084D
|
|
#define REG_IF_FREQ 0x0A00 /* 0x0A00-0x0A02 little endian */
|
|
#define REG_OSC_CLK 0x0A03 /* 0x0A03-0x0A05 little endian */
|
|
#define REG_BYPASS_CCI 0x0A06
|
|
#define REG_ANALOG_LUMA_DETECTED 0x0A25
|
|
#define REG_ANALOG_AUDIO_DETECTED 0x0A26
|
|
#define REG_ANALOG_CHROMA_DETECTED 0x0A39
|
|
#define REG_FRAME_ERR_CNT 0x0B04
|
|
#define REG_USE_EXT_ADC 0x0C00
|
|
#define REG_SWAP_I_Q 0x0C01
|
|
#define REG_TPS_MANUAL 0x0D01
|
|
#define REG_TPS_CONFIG 0x0D02
|
|
#define REG_BYPASS_DEINTERLEAVER 0x0E00
|
|
#define REG_AGC_TARGET 0x1003 /* 0x1003-0x1005 little endian */
|
|
#define REG_AGC_MIN 0x1020
|
|
#define REG_AGC_MAX 0x1023
|
|
#define REG_AGC_LOCK 0x1027
|
|
#define REG_AGC_PWM_VAL 0x1028 /* 0x1028-0x1029 little endian */
|
|
#define REG_AGC_HOLD_LOOP 0x1031
|
|
|
|
#endif
|
|
|