18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  Driver for Zarlink DVB-T ZL10353 demodulator
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *  Copyright (C) 2006, 2007 Christopher Pascoe <c.pascoe@itee.uq.edu.au>
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef _ZL10353_PRIV_
98c2ecf20Sopenharmony_ci#define _ZL10353_PRIV_
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define ID_ZL10353	0x14 /* Zarlink ZL10353 */
128c2ecf20Sopenharmony_ci#define ID_CE6230	0x18 /* Intel CE6230 */
138c2ecf20Sopenharmony_ci#define ID_CE6231	0x19 /* Intel CE6231 */
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define msb(x) (((x) >> 8) & 0xff)
168c2ecf20Sopenharmony_ci#define lsb(x) ((x) & 0xff)
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_cienum zl10353_reg_addr {
198c2ecf20Sopenharmony_ci	INTERRUPT_0        = 0x00,
208c2ecf20Sopenharmony_ci	INTERRUPT_1        = 0x01,
218c2ecf20Sopenharmony_ci	INTERRUPT_2        = 0x02,
228c2ecf20Sopenharmony_ci	INTERRUPT_3        = 0x03,
238c2ecf20Sopenharmony_ci	INTERRUPT_4        = 0x04,
248c2ecf20Sopenharmony_ci	INTERRUPT_5        = 0x05,
258c2ecf20Sopenharmony_ci	STATUS_6           = 0x06,
268c2ecf20Sopenharmony_ci	STATUS_7           = 0x07,
278c2ecf20Sopenharmony_ci	STATUS_8           = 0x08,
288c2ecf20Sopenharmony_ci	STATUS_9           = 0x09,
298c2ecf20Sopenharmony_ci	AGC_GAIN_1         = 0x0A,
308c2ecf20Sopenharmony_ci	AGC_GAIN_0         = 0x0B,
318c2ecf20Sopenharmony_ci	SNR                = 0x10,
328c2ecf20Sopenharmony_ci	RS_ERR_CNT_2       = 0x11,
338c2ecf20Sopenharmony_ci	RS_ERR_CNT_1       = 0x12,
348c2ecf20Sopenharmony_ci	RS_ERR_CNT_0       = 0x13,
358c2ecf20Sopenharmony_ci	RS_UBC_1           = 0x14,
368c2ecf20Sopenharmony_ci	RS_UBC_0           = 0x15,
378c2ecf20Sopenharmony_ci	TPS_RECEIVED_1     = 0x1D,
388c2ecf20Sopenharmony_ci	TPS_RECEIVED_0     = 0x1E,
398c2ecf20Sopenharmony_ci	TPS_CURRENT_1      = 0x1F,
408c2ecf20Sopenharmony_ci	TPS_CURRENT_0      = 0x20,
418c2ecf20Sopenharmony_ci	CLOCK_CTL_0        = 0x51,
428c2ecf20Sopenharmony_ci	CLOCK_CTL_1        = 0x52,
438c2ecf20Sopenharmony_ci	PLL_0              = 0x53,
448c2ecf20Sopenharmony_ci	PLL_1              = 0x54,
458c2ecf20Sopenharmony_ci	RESET              = 0x55,
468c2ecf20Sopenharmony_ci	AGC_TARGET         = 0x56,
478c2ecf20Sopenharmony_ci	MCLK_RATIO         = 0x5C,
488c2ecf20Sopenharmony_ci	ACQ_CTL            = 0x5E,
498c2ecf20Sopenharmony_ci	TRL_NOMINAL_RATE_1 = 0x65,
508c2ecf20Sopenharmony_ci	TRL_NOMINAL_RATE_0 = 0x66,
518c2ecf20Sopenharmony_ci	INPUT_FREQ_1       = 0x6C,
528c2ecf20Sopenharmony_ci	INPUT_FREQ_0       = 0x6D,
538c2ecf20Sopenharmony_ci	TPS_GIVEN_1        = 0x6E,
548c2ecf20Sopenharmony_ci	TPS_GIVEN_0        = 0x6F,
558c2ecf20Sopenharmony_ci	TUNER_GO           = 0x70,
568c2ecf20Sopenharmony_ci	FSM_GO             = 0x71,
578c2ecf20Sopenharmony_ci	CHIP_ID            = 0x7F,
588c2ecf20Sopenharmony_ci	CHAN_STEP_1        = 0xE4,
598c2ecf20Sopenharmony_ci	CHAN_STEP_0        = 0xE5,
608c2ecf20Sopenharmony_ci	OFDM_LOCK_TIME     = 0xE7,
618c2ecf20Sopenharmony_ci	FEC_LOCK_TIME      = 0xE8,
628c2ecf20Sopenharmony_ci	ACQ_DELAY          = 0xE9,
638c2ecf20Sopenharmony_ci};
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci#endif                          /* _ZL10353_PRIV_ */
66