18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci	STB0899 Multistandard Frontend driver
48c2ecf20Sopenharmony_ci	Copyright (C) Manu Abraham (abraham.manu@gmail.com)
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci	Copyright (C) ST Microelectronics
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci*/
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifndef __STB0899_REG_H
118c2ecf20Sopenharmony_ci#define __STB0899_REG_H
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci/*	S1	*/
148c2ecf20Sopenharmony_ci#define STB0899_DEV_ID				0xf000
158c2ecf20Sopenharmony_ci#define STB0899_CHIP_ID				(0x0f << 4)
168c2ecf20Sopenharmony_ci#define STB0899_OFFST_CHIP_ID			4
178c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CHIP_ID			4
188c2ecf20Sopenharmony_ci#define STB0899_CHIP_REL			(0x0f << 0)
198c2ecf20Sopenharmony_ci#define STB0899_OFFST_CHIP_REL			0
208c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CHIP_REL			4
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#define STB0899_DEMOD				0xf40e
238c2ecf20Sopenharmony_ci#define STB0899_MODECOEFF			(0x01 << 0)
248c2ecf20Sopenharmony_ci#define STB0899_OFFST_MODECOEFF			0
258c2ecf20Sopenharmony_ci#define STB0899_WIDTH_MODECOEFF			1
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#define STB0899_RCOMPC				0xf410
288c2ecf20Sopenharmony_ci#define STB0899_AGC1CN				0xf412
298c2ecf20Sopenharmony_ci#define STB0899_AGC1REF				0xf413
308c2ecf20Sopenharmony_ci#define STB0899_RTC				0xf417
318c2ecf20Sopenharmony_ci#define STB0899_TMGCFG				0xf418
328c2ecf20Sopenharmony_ci#define STB0899_AGC2REF				0xf419
338c2ecf20Sopenharmony_ci#define STB0899_TLSR				0xf41a
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#define STB0899_CFD				0xf41b
368c2ecf20Sopenharmony_ci#define STB0899_CFD_ON				(0x01 << 7)
378c2ecf20Sopenharmony_ci#define STB0899_OFFST_CFD_ON			7
388c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CFD_ON			1
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci#define STB0899_ACLC				0xf41c
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci#define STB0899_BCLC				0xf41d
438c2ecf20Sopenharmony_ci#define STB0899_OFFST_ALGO			6
448c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ALGO_QPSK2		2
458c2ecf20Sopenharmony_ci#define STB0899_ALGO_QPSK2			(2 << 6)
468c2ecf20Sopenharmony_ci#define STB0899_ALGO_QPSK1			(1 << 6)
478c2ecf20Sopenharmony_ci#define STB0899_ALGO_BPSK			(0 << 6)
488c2ecf20Sopenharmony_ci#define STB0899_OFFST_BETA			0
498c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BETA			6
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci#define STB0899_EQON				0xf41e
528c2ecf20Sopenharmony_ci#define STB0899_LDT				0xf41f
538c2ecf20Sopenharmony_ci#define STB0899_LDT2				0xf420
548c2ecf20Sopenharmony_ci#define STB0899_EQUALREF			0xf425
558c2ecf20Sopenharmony_ci#define STB0899_TMGRAMP				0xf426
568c2ecf20Sopenharmony_ci#define STB0899_TMGTHD				0xf427
578c2ecf20Sopenharmony_ci#define STB0899_IDCCOMP				0xf428
588c2ecf20Sopenharmony_ci#define STB0899_QDCCOMP				0xf429
598c2ecf20Sopenharmony_ci#define STB0899_POWERI				0xf42a
608c2ecf20Sopenharmony_ci#define STB0899_POWERQ				0xf42b
618c2ecf20Sopenharmony_ci#define STB0899_RCOMP				0xf42c
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci#define STB0899_AGCIQIN				0xf42e
648c2ecf20Sopenharmony_ci#define STB0899_AGCIQVALUE			(0xff << 0)
658c2ecf20Sopenharmony_ci#define STB0899_OFFST_AGCIQVALUE		0
668c2ecf20Sopenharmony_ci#define STB0899_WIDTH_AGCIQVALUE		8
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci#define STB0899_AGC2I1				0xf436
698c2ecf20Sopenharmony_ci#define STB0899_AGC2I2				0xf437
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci#define STB0899_TLIR				0xf438
728c2ecf20Sopenharmony_ci#define STB0899_TLIR_TMG_LOCK_IND		(0xff << 0)
738c2ecf20Sopenharmony_ci#define STB0899_OFFST_TLIR_TMG_LOCK_IND		0
748c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TLIR_TMG_LOCK_IND		8
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci#define STB0899_RTF				0xf439
778c2ecf20Sopenharmony_ci#define STB0899_RTF_TIMING_LOOP_FREQ		(0xff << 0)
788c2ecf20Sopenharmony_ci#define STB0899_OFFST_RTF_TIMING_LOOP_FREQ	0
798c2ecf20Sopenharmony_ci#define STB0899_WIDTH_RTF_TIMING_LOOP_FREQ	8
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci#define STB0899_DSTATUS				0xf43a
828c2ecf20Sopenharmony_ci#define STB0899_CARRIER_FOUND			(0x01 << 7)
838c2ecf20Sopenharmony_ci#define STB0899_OFFST_CARRIER_FOUND		7
848c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CARRIER_FOUND		1
858c2ecf20Sopenharmony_ci#define STB0899_TMG_LOCK			(0x01 << 6)
868c2ecf20Sopenharmony_ci#define STB0899_OFFST_TMG_LOCK			6
878c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TMG_LOCK			1
888c2ecf20Sopenharmony_ci#define STB0899_DEMOD_LOCK			(0x01 << 5)
898c2ecf20Sopenharmony_ci#define STB0899_OFFST_DEMOD_LOCK		5
908c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DEMOD_LOCK		1
918c2ecf20Sopenharmony_ci#define STB0899_TMG_AUTO			(0x01 << 4)
928c2ecf20Sopenharmony_ci#define STB0899_OFFST_TMG_AUTO			4
938c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TMG_AUTO			1
948c2ecf20Sopenharmony_ci#define STB0899_END_MAIN			(0x01 << 3)
958c2ecf20Sopenharmony_ci#define STB0899_OFFST_END_MAIN			3
968c2ecf20Sopenharmony_ci#define STB0899_WIDTH_END_MAIN			1
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ci#define STB0899_LDI				0xf43b
998c2ecf20Sopenharmony_ci#define STB0899_OFFST_LDI			0
1008c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LDI			8
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci#define STB0899_CFRM				0xf43e
1038c2ecf20Sopenharmony_ci#define STB0899_OFFST_CFRM			0
1048c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CFRM			8
1058c2ecf20Sopenharmony_ci
1068c2ecf20Sopenharmony_ci#define STB0899_CFRL				0xf43f
1078c2ecf20Sopenharmony_ci#define STB0899_OFFST_CFRL			0
1088c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CFRL			8
1098c2ecf20Sopenharmony_ci
1108c2ecf20Sopenharmony_ci#define STB0899_NIRM				0xf440
1118c2ecf20Sopenharmony_ci#define STB0899_OFFST_NIRM			0
1128c2ecf20Sopenharmony_ci#define STB0899_WIDTH_NIRM			8
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ci#define STB0899_NIRL				0xf441
1158c2ecf20Sopenharmony_ci#define STB0899_OFFST_NIRL			0
1168c2ecf20Sopenharmony_ci#define STB0899_WIDTH_NIRL			8
1178c2ecf20Sopenharmony_ci
1188c2ecf20Sopenharmony_ci#define STB0899_ISYMB				0xf444
1198c2ecf20Sopenharmony_ci#define STB0899_QSYMB				0xf445
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci#define STB0899_SFRH				0xf446
1228c2ecf20Sopenharmony_ci#define STB0899_OFFST_SFRH			0
1238c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SFRH			8
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_ci#define STB0899_SFRM				0xf447
1268c2ecf20Sopenharmony_ci#define STB0899_OFFST_SFRM			0
1278c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SFRM			8
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ci#define STB0899_SFRL				0xf448
1308c2ecf20Sopenharmony_ci#define STB0899_OFFST_SFRL			4
1318c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SFRL			4
1328c2ecf20Sopenharmony_ci
1338c2ecf20Sopenharmony_ci#define STB0899_SFRUPH				0xf44c
1348c2ecf20Sopenharmony_ci#define STB0899_SFRUPM				0xf44d
1358c2ecf20Sopenharmony_ci#define STB0899_SFRUPL				0xf44e
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci#define STB0899_EQUAI1				0xf4e0
1388c2ecf20Sopenharmony_ci#define STB0899_EQUAQ1				0xf4e1
1398c2ecf20Sopenharmony_ci#define STB0899_EQUAI2				0xf4e2
1408c2ecf20Sopenharmony_ci#define STB0899_EQUAQ2				0xf4e3
1418c2ecf20Sopenharmony_ci#define STB0899_EQUAI3				0xf4e4
1428c2ecf20Sopenharmony_ci#define STB0899_EQUAQ3				0xf4e5
1438c2ecf20Sopenharmony_ci#define STB0899_EQUAI4				0xf4e6
1448c2ecf20Sopenharmony_ci#define STB0899_EQUAQ4				0xf4e7
1458c2ecf20Sopenharmony_ci#define STB0899_EQUAI5				0xf4e8
1468c2ecf20Sopenharmony_ci#define STB0899_EQUAQ5				0xf4e9
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci#define STB0899_DSTATUS2			0xf50c
1498c2ecf20Sopenharmony_ci#define STB0899_DS2_TMG_AUTOSRCH		(0x01 << 7)
1508c2ecf20Sopenharmony_ci#define STB8999_OFFST_DS2_TMG_AUTOSRCH		7
1518c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DS2_TMG_AUTOSRCH		1
1528c2ecf20Sopenharmony_ci#define STB0899_DS2_END_MAINLOOP		(0x01 << 6)
1538c2ecf20Sopenharmony_ci#define STB0899_OFFST_DS2_END_MAINLOOP		6
1548c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DS2_END_MAINLOOP		1
1558c2ecf20Sopenharmony_ci#define STB0899_DS2_CFSYNC			(0x01 << 5)
1568c2ecf20Sopenharmony_ci#define STB0899_OFFST_DS2_CFSYNC		5
1578c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DS2_CFSYNC		1
1588c2ecf20Sopenharmony_ci#define STB0899_DS2_TMGLOCK			(0x01 << 4)
1598c2ecf20Sopenharmony_ci#define STB0899_OFFST_DS2_TMGLOCK		4
1608c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DS2_TMGLOCK		1
1618c2ecf20Sopenharmony_ci#define STB0899_DS2_DEMODWAIT			(0x01 << 3)
1628c2ecf20Sopenharmony_ci#define STB0899_OFFST_DS2_DEMODWAIT		3
1638c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DS2_DEMODWAIT		1
1648c2ecf20Sopenharmony_ci#define STB0899_DS2_FECON			(0x01 << 1)
1658c2ecf20Sopenharmony_ci#define STB0899_OFFST_DS2_FECON			1
1668c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DS2_FECON			1
1678c2ecf20Sopenharmony_ci
1688c2ecf20Sopenharmony_ci/*	S1 FEC	*/
1698c2ecf20Sopenharmony_ci#define STB0899_VSTATUS				0xf50d
1708c2ecf20Sopenharmony_ci#define STB0899_VSTATUS_VITERBI_ON		(0x01 << 7)
1718c2ecf20Sopenharmony_ci#define STB0899_OFFST_VSTATUS_VITERBI_ON	7
1728c2ecf20Sopenharmony_ci#define STB0899_WIDTH_VSTATUS_VITERBI_ON	1
1738c2ecf20Sopenharmony_ci#define STB0899_VSTATUS_END_LOOPVIT		(0x01 << 6)
1748c2ecf20Sopenharmony_ci#define STB0899_OFFST_VSTATUS_END_LOOPVIT	6
1758c2ecf20Sopenharmony_ci#define STB0899_WIDTH_VSTATUS_END_LOOPVIT	1
1768c2ecf20Sopenharmony_ci#define STB0899_VSTATUS_PRFVIT			(0x01 << 4)
1778c2ecf20Sopenharmony_ci#define STB0899_OFFST_VSTATUS_PRFVIT		4
1788c2ecf20Sopenharmony_ci#define STB0899_WIDTH_VSTATUS_PRFVIT		1
1798c2ecf20Sopenharmony_ci#define STB0899_VSTATUS_LOCKEDVIT		(0x01 << 3)
1808c2ecf20Sopenharmony_ci#define STB0899_OFFST_VSTATUS_LOCKEDVIT		3
1818c2ecf20Sopenharmony_ci#define STB0899_WIDTH_VSTATUS_LOCKEDVIT		1
1828c2ecf20Sopenharmony_ci
1838c2ecf20Sopenharmony_ci#define STB0899_VERROR				0xf50f
1848c2ecf20Sopenharmony_ci
1858c2ecf20Sopenharmony_ci#define STB0899_IQSWAP				0xf523
1868c2ecf20Sopenharmony_ci#define STB0899_SYM				(0x01 << 3)
1878c2ecf20Sopenharmony_ci#define STB0899_OFFST_SYM			3
1888c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SYM			1
1898c2ecf20Sopenharmony_ci
1908c2ecf20Sopenharmony_ci#define STB0899_FECAUTO1			0xf530
1918c2ecf20Sopenharmony_ci#define STB0899_DSSSRCH				(0x01 << 3)
1928c2ecf20Sopenharmony_ci#define STB0899_OFFST_DSSSRCH			3
1938c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DSSSRCH			1
1948c2ecf20Sopenharmony_ci#define STB0899_SYMSRCH				(0x01 << 2)
1958c2ecf20Sopenharmony_ci#define STB0899_OFFST_SYMSRCH			2
1968c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SYMSRCH			1
1978c2ecf20Sopenharmony_ci#define STB0899_QPSKSRCH			(0x01 << 1)
1988c2ecf20Sopenharmony_ci#define STB0899_OFFST_QPSKSRCH			1
1998c2ecf20Sopenharmony_ci#define STB0899_WIDTH_QPSKSRCH			1
2008c2ecf20Sopenharmony_ci#define STB0899_BPSKSRCH			(0x01 << 0)
2018c2ecf20Sopenharmony_ci#define STB0899_OFFST_BPSKSRCH			0
2028c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BPSKSRCH			1
2038c2ecf20Sopenharmony_ci
2048c2ecf20Sopenharmony_ci#define STB0899_FECM				0xf533
2058c2ecf20Sopenharmony_ci#define STB0899_FECM_NOT_DVB			(0x01 << 7)
2068c2ecf20Sopenharmony_ci#define STB0899_OFFST_FECM_NOT_DVB		7
2078c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FECM_NOT_DVB		1
2088c2ecf20Sopenharmony_ci#define STB0899_FECM_RSVD1			(0x07 << 4)
2098c2ecf20Sopenharmony_ci#define STB0899_OFFST_FECM_RSVD1		4
2108c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FECM_RSVD1		3
2118c2ecf20Sopenharmony_ci#define STB0899_FECM_VITERBI_ON			(0x01 << 3)
2128c2ecf20Sopenharmony_ci#define STB0899_OFFST_FECM_VITERBI_ON		3
2138c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FECM_VITERBI_ON		1
2148c2ecf20Sopenharmony_ci#define STB0899_FECM_RSVD0			(0x01 << 2)
2158c2ecf20Sopenharmony_ci#define STB0899_OFFST_FECM_RSVD0		2
2168c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FECM_RSVD0		1
2178c2ecf20Sopenharmony_ci#define STB0899_FECM_SYNCDIS			(0x01 << 1)
2188c2ecf20Sopenharmony_ci#define STB0899_OFFST_FECM_SYNCDIS		1
2198c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FECM_SYNCDIS		1
2208c2ecf20Sopenharmony_ci#define STB0899_FECM_SYMI			(0x01 << 0)
2218c2ecf20Sopenharmony_ci#define STB0899_OFFST_FECM_SYMI			0
2228c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FECM_SYMI			1
2238c2ecf20Sopenharmony_ci
2248c2ecf20Sopenharmony_ci#define STB0899_VTH12				0xf534
2258c2ecf20Sopenharmony_ci#define STB0899_VTH23				0xf535
2268c2ecf20Sopenharmony_ci#define STB0899_VTH34				0xf536
2278c2ecf20Sopenharmony_ci#define STB0899_VTH56				0xf537
2288c2ecf20Sopenharmony_ci#define STB0899_VTH67				0xf538
2298c2ecf20Sopenharmony_ci#define STB0899_VTH78				0xf539
2308c2ecf20Sopenharmony_ci
2318c2ecf20Sopenharmony_ci#define STB0899_PRVIT				0xf53c
2328c2ecf20Sopenharmony_ci#define STB0899_PR_7_8				(0x01 << 5)
2338c2ecf20Sopenharmony_ci#define STB0899_OFFST_PR_7_8			5
2348c2ecf20Sopenharmony_ci#define STB0899_WIDTH_PR_7_8			1
2358c2ecf20Sopenharmony_ci#define STB0899_PR_6_7				(0x01 << 4)
2368c2ecf20Sopenharmony_ci#define STB0899_OFFST_PR_6_7			4
2378c2ecf20Sopenharmony_ci#define STB0899_WIDTH_PR_6_7			1
2388c2ecf20Sopenharmony_ci#define STB0899_PR_5_6				(0x01 << 3)
2398c2ecf20Sopenharmony_ci#define STB0899_OFFST_PR_5_6			3
2408c2ecf20Sopenharmony_ci#define STB0899_WIDTH_PR_5_6			1
2418c2ecf20Sopenharmony_ci#define STB0899_PR_3_4				(0x01 << 2)
2428c2ecf20Sopenharmony_ci#define STB0899_OFFST_PR_3_4			2
2438c2ecf20Sopenharmony_ci#define STB0899_WIDTH_PR_3_4			1
2448c2ecf20Sopenharmony_ci#define STB0899_PR_2_3				(0x01 << 1)
2458c2ecf20Sopenharmony_ci#define STB0899_OFFST_PR_2_3			1
2468c2ecf20Sopenharmony_ci#define STB0899_WIDTH_PR_2_3			1
2478c2ecf20Sopenharmony_ci#define STB0899_PR_1_2				(0x01 << 0)
2488c2ecf20Sopenharmony_ci#define STB0899_OFFST_PR_1_2			0
2498c2ecf20Sopenharmony_ci#define STB0899_WIDTH_PR_1_2			1
2508c2ecf20Sopenharmony_ci
2518c2ecf20Sopenharmony_ci#define STB0899_VITSYNC				0xf53d
2528c2ecf20Sopenharmony_ci#define STB0899_AM				(0x01 << 7)
2538c2ecf20Sopenharmony_ci#define STB0899_OFFST_AM			7
2548c2ecf20Sopenharmony_ci#define STB0899_WIDTH_AM			1
2558c2ecf20Sopenharmony_ci#define STB0899_FREEZE				(0x01 << 6)
2568c2ecf20Sopenharmony_ci#define STB0899_OFFST_FREEZE			6
2578c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FREEZE			1
2588c2ecf20Sopenharmony_ci#define STB0899_SN_65536			(0x03 << 4)
2598c2ecf20Sopenharmony_ci#define STB0899_OFFST_SN_65536			4
2608c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SN_65536			2
2618c2ecf20Sopenharmony_ci#define STB0899_SN_16384			(0x01 << 5)
2628c2ecf20Sopenharmony_ci#define STB0899_OFFST_SN_16384			5
2638c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SN_16384			1
2648c2ecf20Sopenharmony_ci#define STB0899_SN_4096				(0x01 << 4)
2658c2ecf20Sopenharmony_ci#define STB0899_OFFST_SN_4096			4
2668c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SN_4096			1
2678c2ecf20Sopenharmony_ci#define STB0899_SN_1024				(0x00 << 4)
2688c2ecf20Sopenharmony_ci#define STB0899_OFFST_SN_1024			4
2698c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SN_1024			0
2708c2ecf20Sopenharmony_ci#define STB0899_TO_128				(0x03 << 2)
2718c2ecf20Sopenharmony_ci#define STB0899_OFFST_TO_128			2
2728c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TO_128			2
2738c2ecf20Sopenharmony_ci#define STB0899_TO_64				(0x01 << 3)
2748c2ecf20Sopenharmony_ci#define STB0899_OFFST_TO_64			3
2758c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TO_64			1
2768c2ecf20Sopenharmony_ci#define STB0899_TO_32				(0x01 << 2)
2778c2ecf20Sopenharmony_ci#define STB0899_OFFST_TO_32			2
2788c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TO_32			1
2798c2ecf20Sopenharmony_ci#define STB0899_TO_16				(0x00 << 2)
2808c2ecf20Sopenharmony_ci#define STB0899_OFFST_TO_16			2
2818c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TO_16			0
2828c2ecf20Sopenharmony_ci#define STB0899_HYST_128			(0x03 << 1)
2838c2ecf20Sopenharmony_ci#define STB0899_OFFST_HYST_128			1
2848c2ecf20Sopenharmony_ci#define STB0899_WIDTH_HYST_128			2
2858c2ecf20Sopenharmony_ci#define STB0899_HYST_64				(0x01 << 1)
2868c2ecf20Sopenharmony_ci#define STB0899_OFFST_HYST_64			1
2878c2ecf20Sopenharmony_ci#define STB0899_WIDTH_HYST_64			1
2888c2ecf20Sopenharmony_ci#define STB0899_HYST_32				(0x01 << 0)
2898c2ecf20Sopenharmony_ci#define STB0899_OFFST_HYST_32			0
2908c2ecf20Sopenharmony_ci#define STB0899_WIDTH_HYST_32			1
2918c2ecf20Sopenharmony_ci#define STB0899_HYST_16				(0x00 << 0)
2928c2ecf20Sopenharmony_ci#define STB0899_OFFST_HYST_16			0
2938c2ecf20Sopenharmony_ci#define STB0899_WIDTH_HYST_16			0
2948c2ecf20Sopenharmony_ci
2958c2ecf20Sopenharmony_ci#define STB0899_RSULC				0xf548
2968c2ecf20Sopenharmony_ci#define STB0899_ULDIL_ON			(0x01 << 7)
2978c2ecf20Sopenharmony_ci#define STB0899_OFFST_ULDIL_ON			7
2988c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ULDIL_ON			1
2998c2ecf20Sopenharmony_ci#define STB0899_ULAUTO_ON			(0x01 << 6)
3008c2ecf20Sopenharmony_ci#define STB0899_OFFST_ULAUTO_ON			6
3018c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ULAUTO_ON			1
3028c2ecf20Sopenharmony_ci#define STB0899_ULRS_ON				(0x01 << 5)
3038c2ecf20Sopenharmony_ci#define STB0899_OFFST_ULRS_ON			5
3048c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ULRS_ON			1
3058c2ecf20Sopenharmony_ci#define STB0899_ULDESCRAM_ON			(0x01 << 4)
3068c2ecf20Sopenharmony_ci#define STB0899_OFFST_ULDESCRAM_ON		4
3078c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ULDESCRAM_ON		1
3088c2ecf20Sopenharmony_ci#define STB0899_UL_DISABLE			(0x01 << 2)
3098c2ecf20Sopenharmony_ci#define STB0899_OFFST_UL_DISABLE		2
3108c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UL_DISABLE		1
3118c2ecf20Sopenharmony_ci#define STB0899_NOFTHRESHOLD			(0x01 << 0)
3128c2ecf20Sopenharmony_ci#define STB0899_OFFST_NOFTHRESHOLD		0
3138c2ecf20Sopenharmony_ci#define STB0899_WIDTH_NOFTHRESHOLD		1
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_ci#define STB0899_RSLLC				0xf54a
3168c2ecf20Sopenharmony_ci#define STB0899_DEMAPVIT			0xf583
3178c2ecf20Sopenharmony_ci#define STB0899_DEMAPVIT_RSVD			(0x01 << 7)
3188c2ecf20Sopenharmony_ci#define STB0899_OFFST_DEMAPVIT_RSVD		7
3198c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DEMAPVIT_RSVD		1
3208c2ecf20Sopenharmony_ci#define STB0899_DEMAPVIT_KDIVIDER		(0x7f << 0)
3218c2ecf20Sopenharmony_ci#define STB0899_OFFST_DEMAPVIT_KDIVIDER		0
3228c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DEMAPVIT_KDIVIDER		7
3238c2ecf20Sopenharmony_ci
3248c2ecf20Sopenharmony_ci#define STB0899_PLPARM				0xf58c
3258c2ecf20Sopenharmony_ci#define STB0899_VITMAPPING			(0x07 << 5)
3268c2ecf20Sopenharmony_ci#define STB0899_OFFST_VITMAPPING		5
3278c2ecf20Sopenharmony_ci#define STB0899_WIDTH_VITMAPPING		3
3288c2ecf20Sopenharmony_ci#define STB0899_VITMAPPING_BPSK			(0x01 << 5)
3298c2ecf20Sopenharmony_ci#define STB0899_OFFST_VITMAPPING_BPSK		5
3308c2ecf20Sopenharmony_ci#define STB0899_WIDTH_VITMAPPING_BPSK		1
3318c2ecf20Sopenharmony_ci#define STB0899_VITMAPPING_QPSK			(0x00 << 5)
3328c2ecf20Sopenharmony_ci#define STB0899_OFFST_VITMAPPING_QPSK		5
3338c2ecf20Sopenharmony_ci#define STB0899_WIDTH_VITMAPPING_QPSK		0
3348c2ecf20Sopenharmony_ci#define STB0899_VITCURPUN			(0x1f << 0)
3358c2ecf20Sopenharmony_ci#define STB0899_OFFST_VITCURPUN			0
3368c2ecf20Sopenharmony_ci#define STB0899_WIDTH_VITCURPUN			5
3378c2ecf20Sopenharmony_ci#define STB0899_VITCURPUN_1_2			(0x0d << 0)
3388c2ecf20Sopenharmony_ci#define STB0899_VITCURPUN_2_3			(0x12 << 0)
3398c2ecf20Sopenharmony_ci#define STB0899_VITCURPUN_3_4			(0x15 << 0)
3408c2ecf20Sopenharmony_ci#define STB0899_VITCURPUN_5_6			(0x18 << 0)
3418c2ecf20Sopenharmony_ci#define STB0899_VITCURPUN_6_7			(0x19 << 0)
3428c2ecf20Sopenharmony_ci#define STB0899_VITCURPUN_7_8			(0x1a << 0)
3438c2ecf20Sopenharmony_ci
3448c2ecf20Sopenharmony_ci/*	S2 DEMOD	*/
3458c2ecf20Sopenharmony_ci#define STB0899_OFF0_DMD_STATUS			0xf300
3468c2ecf20Sopenharmony_ci#define STB0899_BASE_DMD_STATUS			0x00000000
3478c2ecf20Sopenharmony_ci#define STB0899_IF_AGC_LOCK			(0x01 << 8)
3488c2ecf20Sopenharmony_ci#define STB0899_OFFST_IF_AGC_LOCK		0
3498c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IF_AGC_LOCK		1
3508c2ecf20Sopenharmony_ci
3518c2ecf20Sopenharmony_ci#define STB0899_OFF0_CRL_FREQ			0xf304
3528c2ecf20Sopenharmony_ci#define STB0899_BASE_CRL_FREQ			0x00000000
3538c2ecf20Sopenharmony_ci#define STB0899_CARR_FREQ			(0x3fffffff << 0)
3548c2ecf20Sopenharmony_ci#define STB0899_OFFST_CARR_FREQ			0
3558c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CARR_FREQ			30
3568c2ecf20Sopenharmony_ci
3578c2ecf20Sopenharmony_ci#define STB0899_OFF0_BTR_FREQ			0xf308
3588c2ecf20Sopenharmony_ci#define STB0899_BASE_BTR_FREQ			0x00000000
3598c2ecf20Sopenharmony_ci#define STB0899_BTR_FREQ			(0xfffffff << 0)
3608c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_FREQ			0
3618c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_FREQ			28
3628c2ecf20Sopenharmony_ci
3638c2ecf20Sopenharmony_ci#define STB0899_OFF0_IF_AGC_GAIN		0xf30c
3648c2ecf20Sopenharmony_ci#define STB0899_BASE_IF_AGC_GAIN		0x00000000
3658c2ecf20Sopenharmony_ci#define STB0899_IF_AGC_GAIN			(0x3fff << 0)
3668c2ecf20Sopenharmony_ci#define STB0899_OFFST_IF_AGC_GAIN		0
3678c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IF_AGC_GAIN		14
3688c2ecf20Sopenharmony_ci
3698c2ecf20Sopenharmony_ci#define STB0899_OFF0_BB_AGC_GAIN		0xf310
3708c2ecf20Sopenharmony_ci#define STB0899_BASE_BB_AGC_GAIN		0x00000000
3718c2ecf20Sopenharmony_ci#define STB0899_BB_AGC_GAIN			(0x3fff << 0)
3728c2ecf20Sopenharmony_ci#define STB0899_OFFST_BB_AGC_GAIN		0
3738c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BB_AGC_GAIN		14
3748c2ecf20Sopenharmony_ci
3758c2ecf20Sopenharmony_ci#define STB0899_OFF0_DC_OFFSET			0xf314
3768c2ecf20Sopenharmony_ci#define STB0899_BASE_DC_OFFSET			0x00000000
3778c2ecf20Sopenharmony_ci#define STB0899_I				(0xff << 8)
3788c2ecf20Sopenharmony_ci#define STB0899_OFFST_I				8
3798c2ecf20Sopenharmony_ci#define STB0899_WIDTH_I				8
3808c2ecf20Sopenharmony_ci#define STB0899_Q				(0xff << 0)
3818c2ecf20Sopenharmony_ci#define STB0899_OFFST_Q				8
3828c2ecf20Sopenharmony_ci#define STB0899_WIDTH_Q				8
3838c2ecf20Sopenharmony_ci
3848c2ecf20Sopenharmony_ci#define STB0899_OFF0_DMD_CNTRL			0xf31c
3858c2ecf20Sopenharmony_ci#define STB0899_BASE_DMD_CNTRL			0x00000000
3868c2ecf20Sopenharmony_ci#define STB0899_ADC0_PINS1IN			(0x01 << 6)
3878c2ecf20Sopenharmony_ci#define STB0899_OFFST_ADC0_PINS1IN              6
3888c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ADC0_PINS1IN              1
3898c2ecf20Sopenharmony_ci#define STB0899_IN2COMP1_OFFBIN0		(0x01 << 3)
3908c2ecf20Sopenharmony_ci#define STB0899_OFFST_IN2COMP1_OFFBIN0          3
3918c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IN2COMP1_OFFBIN0          1
3928c2ecf20Sopenharmony_ci#define STB0899_DC_COMP				(0x01 << 2)
3938c2ecf20Sopenharmony_ci#define STB0899_OFFST_DC_COMP			2
3948c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DC_COMP			1
3958c2ecf20Sopenharmony_ci#define STB0899_MODMODE				(0x03 << 0)
3968c2ecf20Sopenharmony_ci#define STB0899_OFFST_MODMODE			0
3978c2ecf20Sopenharmony_ci#define STB0899_WIDTH_MODMODE			2
3988c2ecf20Sopenharmony_ci
3998c2ecf20Sopenharmony_ci#define STB0899_OFF0_IF_AGC_CNTRL		0xf320
4008c2ecf20Sopenharmony_ci#define STB0899_BASE_IF_AGC_CNTRL		0x00000000
4018c2ecf20Sopenharmony_ci#define STB0899_IF_GAIN_INIT			(0x3fff << 13)
4028c2ecf20Sopenharmony_ci#define STB0899_OFFST_IF_GAIN_INIT		13
4038c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IF_GAIN_INIT		14
4048c2ecf20Sopenharmony_ci#define STB0899_IF_GAIN_SENSE			(0x01 << 12)
4058c2ecf20Sopenharmony_ci#define STB0899_OFFST_IF_GAIN_SENSE		12
4068c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IF_GAIN_SENSE		1
4078c2ecf20Sopenharmony_ci#define STB0899_IF_LOOP_GAIN			(0x0f << 8)
4088c2ecf20Sopenharmony_ci#define STB0899_OFFST_IF_LOOP_GAIN		8
4098c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IF_LOOP_GAIN		4
4108c2ecf20Sopenharmony_ci#define STB0899_IF_LD_GAIN_INIT			(0x01 << 7)
4118c2ecf20Sopenharmony_ci#define STB0899_OFFST_IF_LD_GAIN_INIT		7
4128c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IF_LD_GAIN_INIT		1
4138c2ecf20Sopenharmony_ci#define STB0899_IF_AGC_REF			(0x7f << 0)
4148c2ecf20Sopenharmony_ci#define STB0899_OFFST_IF_AGC_REF		0
4158c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IF_AGC_REF		7
4168c2ecf20Sopenharmony_ci
4178c2ecf20Sopenharmony_ci#define STB0899_OFF0_BB_AGC_CNTRL		0xf324
4188c2ecf20Sopenharmony_ci#define STB0899_BASE_BB_AGC_CNTRL		0x00000000
4198c2ecf20Sopenharmony_ci#define STB0899_BB_GAIN_INIT			(0x3fff << 12)
4208c2ecf20Sopenharmony_ci#define STB0899_OFFST_BB_GAIN_INIT		12
4218c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BB_GAIN_INIT		14
4228c2ecf20Sopenharmony_ci#define STB0899_BB_LOOP_GAIN			(0x0f << 8)
4238c2ecf20Sopenharmony_ci#define STB0899_OFFST_BB_LOOP_GAIN		8
4248c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BB_LOOP_GAIN		4
4258c2ecf20Sopenharmony_ci#define STB0899_BB_LD_GAIN_INIT			(0x01 << 7)
4268c2ecf20Sopenharmony_ci#define STB0899_OFFST_BB_LD_GAIN_INIT		7
4278c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BB_LD_GAIN_INIT		1
4288c2ecf20Sopenharmony_ci#define STB0899_BB_AGC_REF			(0x7f << 0)
4298c2ecf20Sopenharmony_ci#define STB0899_OFFST_BB_AGC_REF		0
4308c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BB_AGC_REF		7
4318c2ecf20Sopenharmony_ci
4328c2ecf20Sopenharmony_ci#define STB0899_OFF0_CRL_CNTRL			0xf328
4338c2ecf20Sopenharmony_ci#define STB0899_BASE_CRL_CNTRL			0x00000000
4348c2ecf20Sopenharmony_ci#define STB0899_CRL_LOCK_CLEAR			(0x01 << 5)
4358c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_LOCK_CLEAR		5
4368c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_LOCK_CLEAR		1
4378c2ecf20Sopenharmony_ci#define STB0899_CRL_SWPR_CLEAR			(0x01 << 4)
4388c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_SWPR_CLEAR		4
4398c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_SWPR_CLEAR		1
4408c2ecf20Sopenharmony_ci#define STB0899_CRL_SWP_ENA			(0x01 << 3)
4418c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_SWP_ENA		3
4428c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_SWP_ENA		1
4438c2ecf20Sopenharmony_ci#define STB0899_CRL_DET_SEL			(0x01 << 2)
4448c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_DET_SEL		2
4458c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_DET_SEL		1
4468c2ecf20Sopenharmony_ci#define STB0899_CRL_SENSE			(0x01 << 1)
4478c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_SENSE			1
4488c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_SENSE			1
4498c2ecf20Sopenharmony_ci#define STB0899_CRL_PHSERR_CLEAR		(0x01 << 0)
4508c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_PHSERR_CLEAR		0
4518c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_PHSERR_CLEAR		1
4528c2ecf20Sopenharmony_ci
4538c2ecf20Sopenharmony_ci#define STB0899_OFF0_CRL_PHS_INIT		0xf32c
4548c2ecf20Sopenharmony_ci#define STB0899_BASE_CRL_PHS_INIT		0x00000000
4558c2ecf20Sopenharmony_ci#define STB0899_CRL_PHS_INIT_31			(0x1 << 30)
4568c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_PHS_INIT_31		30
4578c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_PHS_INIT_31		1
4588c2ecf20Sopenharmony_ci#define STB0899_CRL_LD_INIT_PHASE		(0x1 << 24)
4598c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_LD_INIT_PHASE		24
4608c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_LD_INIT_PHASE		1
4618c2ecf20Sopenharmony_ci#define STB0899_CRL_INIT_PHASE			(0xffffff << 0)
4628c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_INIT_PHASE		0
4638c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_INIT_PHASE		24
4648c2ecf20Sopenharmony_ci
4658c2ecf20Sopenharmony_ci#define STB0899_OFF0_CRL_FREQ_INIT		0xf330
4668c2ecf20Sopenharmony_ci#define STB0899_BASE_CRL_FREQ_INIT		0x00000000
4678c2ecf20Sopenharmony_ci#define STB0899_CRL_FREQ_INIT_31		(0x1 << 30)
4688c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_FREQ_INIT_31		30
4698c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_FREQ_INIT_31		1
4708c2ecf20Sopenharmony_ci#define STB0899_CRL_LD_FREQ_INIT		(0x1 << 24)
4718c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_LD_FREQ_INIT		24
4728c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_LD_FREQ_INIT		1
4738c2ecf20Sopenharmony_ci#define STB0899_CRL_FREQ_INIT			(0xffffff << 0)
4748c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_FREQ_INIT		0
4758c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_FREQ_INIT		24
4768c2ecf20Sopenharmony_ci
4778c2ecf20Sopenharmony_ci#define STB0899_OFF0_CRL_LOOP_GAIN		0xf334
4788c2ecf20Sopenharmony_ci#define STB0899_BASE_CRL_LOOP_GAIN		0x00000000
4798c2ecf20Sopenharmony_ci#define STB0899_KCRL2_RSHFT			(0xf << 16)
4808c2ecf20Sopenharmony_ci#define STB0899_OFFST_KCRL2_RSHFT		16
4818c2ecf20Sopenharmony_ci#define STB0899_WIDTH_KCRL2_RSHFT		4
4828c2ecf20Sopenharmony_ci#define STB0899_KCRL1				(0xf << 12)
4838c2ecf20Sopenharmony_ci#define STB0899_OFFST_KCRL1			12
4848c2ecf20Sopenharmony_ci#define STB0899_WIDTH_KCRL1			4
4858c2ecf20Sopenharmony_ci#define STB0899_KCRL1_RSHFT			(0xf << 8)
4868c2ecf20Sopenharmony_ci#define STB0899_OFFST_KCRL1_RSHFT		8
4878c2ecf20Sopenharmony_ci#define STB0899_WIDTH_KCRL1_RSHFT		4
4888c2ecf20Sopenharmony_ci#define STB0899_KCRL0				(0xf << 4)
4898c2ecf20Sopenharmony_ci#define STB0899_OFFST_KCRL0			4
4908c2ecf20Sopenharmony_ci#define STB0899_WIDTH_KCRL0			4
4918c2ecf20Sopenharmony_ci#define STB0899_KCRL0_RSHFT			(0xf << 0)
4928c2ecf20Sopenharmony_ci#define STB0899_OFFST_KCRL0_RSHFT		0
4938c2ecf20Sopenharmony_ci#define STB0899_WIDTH_KCRL0_RSHFT		4
4948c2ecf20Sopenharmony_ci
4958c2ecf20Sopenharmony_ci#define STB0899_OFF0_CRL_NOM_FREQ		0xf338
4968c2ecf20Sopenharmony_ci#define STB0899_BASE_CRL_NOM_FREQ		0x00000000
4978c2ecf20Sopenharmony_ci#define STB0899_CRL_NOM_FREQ			(0x3fffffff << 0)
4988c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_NOM_FREQ		0
4998c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_NOM_FREQ		30
5008c2ecf20Sopenharmony_ci
5018c2ecf20Sopenharmony_ci#define STB0899_OFF0_CRL_SWP_RATE		0xf33c
5028c2ecf20Sopenharmony_ci#define STB0899_BASE_CRL_SWP_RATE		0x00000000
5038c2ecf20Sopenharmony_ci#define STB0899_CRL_SWP_RATE			(0x3fffffff << 0)
5048c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_SWP_RATE		0
5058c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_SWP_RATE		30
5068c2ecf20Sopenharmony_ci
5078c2ecf20Sopenharmony_ci#define STB0899_OFF0_CRL_MAX_SWP		0xf340
5088c2ecf20Sopenharmony_ci#define STB0899_BASE_CRL_MAX_SWP		0x00000000
5098c2ecf20Sopenharmony_ci#define STB0899_CRL_MAX_SWP			(0x3fffffff << 0)
5108c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_MAX_SWP		0
5118c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_MAX_SWP		30
5128c2ecf20Sopenharmony_ci
5138c2ecf20Sopenharmony_ci#define STB0899_OFF0_CRL_LK_CNTRL		0xf344
5148c2ecf20Sopenharmony_ci#define STB0899_BASE_CRL_LK_CNTRL		0x00000000
5158c2ecf20Sopenharmony_ci
5168c2ecf20Sopenharmony_ci#define STB0899_OFF0_DECIM_CNTRL		0xf348
5178c2ecf20Sopenharmony_ci#define STB0899_BASE_DECIM_CNTRL		0x00000000
5188c2ecf20Sopenharmony_ci#define STB0899_BAND_LIMIT_B			(0x01 << 5)
5198c2ecf20Sopenharmony_ci#define STB0899_OFFST_BAND_LIMIT_B		5
5208c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BAND_LIMIT_B		1
5218c2ecf20Sopenharmony_ci#define STB0899_WIN_SEL				(0x03 << 3)
5228c2ecf20Sopenharmony_ci#define STB0899_OFFST_WIN_SEL			3
5238c2ecf20Sopenharmony_ci#define STB0899_WIDTH_WIN_SEL			2
5248c2ecf20Sopenharmony_ci#define STB0899_DECIM_RATE			(0x07 << 0)
5258c2ecf20Sopenharmony_ci#define STB0899_OFFST_DECIM_RATE		0
5268c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DECIM_RATE		3
5278c2ecf20Sopenharmony_ci
5288c2ecf20Sopenharmony_ci#define STB0899_OFF0_BTR_CNTRL			0xf34c
5298c2ecf20Sopenharmony_ci#define STB0899_BASE_BTR_CNTRL			0x00000000
5308c2ecf20Sopenharmony_ci#define STB0899_BTR_FREQ_CORR			(0x7ff << 4)
5318c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_FREQ_CORR		4
5328c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_FREQ_CORR		11
5338c2ecf20Sopenharmony_ci#define STB0899_BTR_CLR_LOCK			(0x01 << 3)
5348c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_CLR_LOCK		3
5358c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_CLR_LOCK		1
5368c2ecf20Sopenharmony_ci#define STB0899_BTR_SENSE			(0x01 << 2)
5378c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_SENSE			2
5388c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_SENSE			1
5398c2ecf20Sopenharmony_ci#define STB0899_BTR_ERR_ENA			(0x01 << 1)
5408c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_ERR_ENA		1
5418c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_ERR_ENA		1
5428c2ecf20Sopenharmony_ci#define STB0899_INTRP_PHS_SENSE			(0x01 << 0)
5438c2ecf20Sopenharmony_ci#define STB0899_OFFST_INTRP_PHS_SENSE		0
5448c2ecf20Sopenharmony_ci#define STB0899_WIDTH_INTRP_PHS_SENSE		1
5458c2ecf20Sopenharmony_ci
5468c2ecf20Sopenharmony_ci#define STB0899_OFF0_BTR_LOOP_GAIN		0xf350
5478c2ecf20Sopenharmony_ci#define STB0899_BASE_BTR_LOOP_GAIN		0x00000000
5488c2ecf20Sopenharmony_ci#define STB0899_KBTR2_RSHFT			(0x0f << 16)
5498c2ecf20Sopenharmony_ci#define STB0899_OFFST_KBTR2_RSHFT		16
5508c2ecf20Sopenharmony_ci#define STB0899_WIDTH_KBTR2_RSHFT		4
5518c2ecf20Sopenharmony_ci#define STB0899_KBTR1				(0x0f << 12)
5528c2ecf20Sopenharmony_ci#define STB0899_OFFST_KBTR1			12
5538c2ecf20Sopenharmony_ci#define STB0899_WIDTH_KBTR1			4
5548c2ecf20Sopenharmony_ci#define STB0899_KBTR1_RSHFT			(0x0f << 8)
5558c2ecf20Sopenharmony_ci#define STB0899_OFFST_KBTR1_RSHFT		8
5568c2ecf20Sopenharmony_ci#define STB0899_WIDTH_KBTR1_RSHFT		4
5578c2ecf20Sopenharmony_ci#define STB0899_KBTR0				(0x0f << 4)
5588c2ecf20Sopenharmony_ci#define STB0899_OFFST_KBTR0			4
5598c2ecf20Sopenharmony_ci#define STB0899_WIDTH_KBTR0			4
5608c2ecf20Sopenharmony_ci#define STB0899_KBTR0_RSHFT			(0x0f << 0)
5618c2ecf20Sopenharmony_ci#define STB0899_OFFST_KBTR0_RSHFT		0
5628c2ecf20Sopenharmony_ci#define STB0899_WIDTH_KBTR0_RSHFT		4
5638c2ecf20Sopenharmony_ci
5648c2ecf20Sopenharmony_ci#define STB0899_OFF0_BTR_PHS_INIT		0xf354
5658c2ecf20Sopenharmony_ci#define STB0899_BASE_BTR_PHS_INIT		0x00000000
5668c2ecf20Sopenharmony_ci#define STB0899_BTR_LD_PHASE_INIT		(0x01 << 28)
5678c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_LD_PHASE_INIT		28
5688c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_LD_PHASE_INIT		1
5698c2ecf20Sopenharmony_ci#define STB0899_BTR_INIT_PHASE			(0xfffffff << 0)
5708c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_INIT_PHASE		0
5718c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_INIT_PHASE		28
5728c2ecf20Sopenharmony_ci
5738c2ecf20Sopenharmony_ci#define STB0899_OFF0_BTR_FREQ_INIT		0xf358
5748c2ecf20Sopenharmony_ci#define STB0899_BASE_BTR_FREQ_INIT		0x00000000
5758c2ecf20Sopenharmony_ci#define STB0899_BTR_LD_FREQ_INIT		(1 << 28)
5768c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_LD_FREQ_INIT		28
5778c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_LD_FREQ_INIT		1
5788c2ecf20Sopenharmony_ci#define STB0899_BTR_FREQ_INIT			(0xfffffff << 0)
5798c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_FREQ_INIT		0
5808c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_FREQ_INIT		28
5818c2ecf20Sopenharmony_ci
5828c2ecf20Sopenharmony_ci#define STB0899_OFF0_BTR_NOM_FREQ		0xf35c
5838c2ecf20Sopenharmony_ci#define STB0899_BASE_BTR_NOM_FREQ		0x00000000
5848c2ecf20Sopenharmony_ci#define STB0899_BTR_NOM_FREQ			(0xfffffff << 0)
5858c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_NOM_FREQ		0
5868c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_NOM_FREQ		28
5878c2ecf20Sopenharmony_ci
5888c2ecf20Sopenharmony_ci#define STB0899_OFF0_BTR_LK_CNTRL		0xf360
5898c2ecf20Sopenharmony_ci#define STB0899_BASE_BTR_LK_CNTRL		0x00000000
5908c2ecf20Sopenharmony_ci#define STB0899_BTR_MIN_ENERGY			(0x0f << 24)
5918c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_MIN_ENERGY		24
5928c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_MIN_ENERGY		4
5938c2ecf20Sopenharmony_ci#define STB0899_BTR_LOCK_TH_LO			(0xff << 16)
5948c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_LOCK_TH_LO		16
5958c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_LOCK_TH_LO		8
5968c2ecf20Sopenharmony_ci#define STB0899_BTR_LOCK_TH_HI			(0xff << 8)
5978c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_LOCK_TH_HI		8
5988c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_LOCK_TH_HI		8
5998c2ecf20Sopenharmony_ci#define STB0899_BTR_LOCK_GAIN			(0x03 << 6)
6008c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_LOCK_GAIN		6
6018c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_LOCK_GAIN		2
6028c2ecf20Sopenharmony_ci#define STB0899_BTR_LOCK_LEAK			(0x3f << 0)
6038c2ecf20Sopenharmony_ci#define STB0899_OFFST_BTR_LOCK_LEAK		0
6048c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BTR_LOCK_LEAK		6
6058c2ecf20Sopenharmony_ci
6068c2ecf20Sopenharmony_ci#define STB0899_OFF0_DECN_CNTRL			0xf364
6078c2ecf20Sopenharmony_ci#define STB0899_BASE_DECN_CNTRL			0x00000000
6088c2ecf20Sopenharmony_ci
6098c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_CNTRL			0xf368
6108c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_CNTRL			0x00000000
6118c2ecf20Sopenharmony_ci
6128c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUF_STATUS		0xf36c
6138c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUF_STATUS		0x00000000
6148c2ecf20Sopenharmony_ci#define STB0899_TP_BUFFER_FULL                  (1 << 0)
6158c2ecf20Sopenharmony_ci
6168c2ecf20Sopenharmony_ci#define STB0899_OFF0_DC_ESTIM			0xf37c
6178c2ecf20Sopenharmony_ci#define STB0899_BASE_DC_ESTIM			0x0000
6188c2ecf20Sopenharmony_ci#define STB0899_I_DC_ESTIMATE			(0xff << 8)
6198c2ecf20Sopenharmony_ci#define STB0899_OFFST_I_DC_ESTIMATE		8
6208c2ecf20Sopenharmony_ci#define STB0899_WIDTH_I_DC_ESTIMATE		8
6218c2ecf20Sopenharmony_ci#define STB0899_Q_DC_ESTIMATE			(0xff << 0)
6228c2ecf20Sopenharmony_ci#define STB0899_OFFST_Q_DC_ESTIMATE		0
6238c2ecf20Sopenharmony_ci#define STB0899_WIDTH_Q_DC_ESTIMATE		8
6248c2ecf20Sopenharmony_ci
6258c2ecf20Sopenharmony_ci#define STB0899_OFF0_FLL_CNTRL			0xf310
6268c2ecf20Sopenharmony_ci#define STB0899_BASE_FLL_CNTRL			0x00000020
6278c2ecf20Sopenharmony_ci#define STB0899_CRL_FLL_ACC			(0x01 << 4)
6288c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_FLL_ACC		4
6298c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_FLL_ACC		1
6308c2ecf20Sopenharmony_ci#define STB0899_FLL_AVG_PERIOD			(0x0f << 0)
6318c2ecf20Sopenharmony_ci#define STB0899_OFFST_FLL_AVG_PERIOD		0
6328c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FLL_AVG_PERIOD		4
6338c2ecf20Sopenharmony_ci
6348c2ecf20Sopenharmony_ci#define STB0899_OFF0_FLL_FREQ_WD		0xf314
6358c2ecf20Sopenharmony_ci#define STB0899_BASE_FLL_FREQ_WD		0x00000020
6368c2ecf20Sopenharmony_ci#define STB0899_FLL_FREQ_WD			(0xffffffff << 0)
6378c2ecf20Sopenharmony_ci#define STB0899_OFFST_FLL_FREQ_WD		0
6388c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FLL_FREQ_WD		32
6398c2ecf20Sopenharmony_ci
6408c2ecf20Sopenharmony_ci#define STB0899_OFF0_ANTI_ALIAS_SEL		0xf358
6418c2ecf20Sopenharmony_ci#define STB0899_BASE_ANTI_ALIAS_SEL		0x00000020
6428c2ecf20Sopenharmony_ci#define STB0899_ANTI_ALIAS_SELB			(0x03 << 0)
6438c2ecf20Sopenharmony_ci#define STB0899_OFFST_ANTI_ALIAS_SELB		0
6448c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ANTI_ALIAS_SELB		2
6458c2ecf20Sopenharmony_ci
6468c2ecf20Sopenharmony_ci#define STB0899_OFF0_RRC_ALPHA			0xf35c
6478c2ecf20Sopenharmony_ci#define STB0899_BASE_RRC_ALPHA			0x00000020
6488c2ecf20Sopenharmony_ci#define STB0899_RRC_ALPHA			(0x03 << 0)
6498c2ecf20Sopenharmony_ci#define STB0899_OFFST_RRC_ALPHA			0
6508c2ecf20Sopenharmony_ci#define STB0899_WIDTH_RRC_ALPHA			2
6518c2ecf20Sopenharmony_ci
6528c2ecf20Sopenharmony_ci#define STB0899_OFF0_DC_ADAPT_LSHFT		0xf360
6538c2ecf20Sopenharmony_ci#define STB0899_BASE_DC_ADAPT_LSHFT		0x00000020
6548c2ecf20Sopenharmony_ci#define STB0899_DC_ADAPT_LSHFT			(0x077 << 0)
6558c2ecf20Sopenharmony_ci#define STB0899_OFFST_DC_ADAPT_LSHFT		0
6568c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DC_ADAPT_LSHFT		3
6578c2ecf20Sopenharmony_ci
6588c2ecf20Sopenharmony_ci#define STB0899_OFF0_IMB_OFFSET			0xf364
6598c2ecf20Sopenharmony_ci#define STB0899_BASE_IMB_OFFSET			0x00000020
6608c2ecf20Sopenharmony_ci#define STB0899_PHS_IMB_COMP			(0xff << 8)
6618c2ecf20Sopenharmony_ci#define STB0899_OFFST_PHS_IMB_COMP		8
6628c2ecf20Sopenharmony_ci#define STB0899_WIDTH_PHS_IMB_COMP		8
6638c2ecf20Sopenharmony_ci#define STB0899_AMPL_IMB_COMP			(0xff << 0)
6648c2ecf20Sopenharmony_ci#define STB0899_OFFST_AMPL_IMB_COMP		0
6658c2ecf20Sopenharmony_ci#define STB0899_WIDTH_AMPL_IMB_COMP		8
6668c2ecf20Sopenharmony_ci
6678c2ecf20Sopenharmony_ci#define STB0899_OFF0_IMB_ESTIMATE		0xf368
6688c2ecf20Sopenharmony_ci#define STB0899_BASE_IMB_ESTIMATE		0x00000020
6698c2ecf20Sopenharmony_ci#define STB0899_PHS_IMB_ESTIMATE		(0xff << 8)
6708c2ecf20Sopenharmony_ci#define STB0899_OFFST_PHS_IMB_ESTIMATE		8
6718c2ecf20Sopenharmony_ci#define STB0899_WIDTH_PHS_IMB_ESTIMATE		8
6728c2ecf20Sopenharmony_ci#define STB0899_AMPL_IMB_ESTIMATE		(0xff << 0)
6738c2ecf20Sopenharmony_ci#define STB0899_OFFST_AMPL_IMB_ESTIMATE		0
6748c2ecf20Sopenharmony_ci#define STB0899_WIDTH_AMPL_IMB_ESTIMATE		8
6758c2ecf20Sopenharmony_ci
6768c2ecf20Sopenharmony_ci#define STB0899_OFF0_IMB_CNTRL			0xf36c
6778c2ecf20Sopenharmony_ci#define STB0899_BASE_IMB_CNTRL			0x00000020
6788c2ecf20Sopenharmony_ci#define STB0899_PHS_ADAPT_LSHFT			(0x07 << 4)
6798c2ecf20Sopenharmony_ci#define STB0899_OFFST_PHS_ADAPT_LSHFT		4
6808c2ecf20Sopenharmony_ci#define STB0899_WIDTH_PHS_ADAPT_LSHFT		3
6818c2ecf20Sopenharmony_ci#define STB0899_AMPL_ADAPT_LSHFT		(0x07 << 1)
6828c2ecf20Sopenharmony_ci#define STB0899_OFFST_AMPL_ADAPT_LSHFT		1
6838c2ecf20Sopenharmony_ci#define STB0899_WIDTH_AMPL_ADAPT_LSHFT		3
6848c2ecf20Sopenharmony_ci#define STB0899_IMB_COMP			(0x01 << 0)
6858c2ecf20Sopenharmony_ci#define STB0899_OFFST_IMB_COMP			0
6868c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IMB_COMP			1
6878c2ecf20Sopenharmony_ci
6888c2ecf20Sopenharmony_ci#define STB0899_OFF0_IF_AGC_CNTRL2		0xf374
6898c2ecf20Sopenharmony_ci#define STB0899_BASE_IF_AGC_CNTRL2		0x00000020
6908c2ecf20Sopenharmony_ci#define STB0899_IF_AGC_LOCK_TH			(0xff << 11)
6918c2ecf20Sopenharmony_ci#define STB0899_OFFST_IF_AGC_LOCK_TH		11
6928c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IF_AGC_LOCK_TH		8
6938c2ecf20Sopenharmony_ci#define STB0899_IF_AGC_SD_DIV			(0xff << 3)
6948c2ecf20Sopenharmony_ci#define STB0899_OFFST_IF_AGC_SD_DIV		3
6958c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IF_AGC_SD_DIV		8
6968c2ecf20Sopenharmony_ci#define STB0899_IF_AGC_DUMP_PER			(0x07 << 0)
6978c2ecf20Sopenharmony_ci#define STB0899_OFFST_IF_AGC_DUMP_PER		0
6988c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IF_AGC_DUMP_PER		3
6998c2ecf20Sopenharmony_ci
7008c2ecf20Sopenharmony_ci#define STB0899_OFF0_DMD_CNTRL2			0xf378
7018c2ecf20Sopenharmony_ci#define STB0899_BASE_DMD_CNTRL2			0x00000020
7028c2ecf20Sopenharmony_ci#define STB0899_SPECTRUM_INVERT			(0x01 << 2)
7038c2ecf20Sopenharmony_ci#define STB0899_OFFST_SPECTRUM_INVERT		2
7048c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SPECTRUM_INVERT		1
7058c2ecf20Sopenharmony_ci#define STB0899_AGC_MODE			(0x01 << 1)
7068c2ecf20Sopenharmony_ci#define STB0899_OFFST_AGC_MODE			1
7078c2ecf20Sopenharmony_ci#define STB0899_WIDTH_AGC_MODE			1
7088c2ecf20Sopenharmony_ci#define STB0899_CRL_FREQ_ADJ			(0x01 << 0)
7098c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRL_FREQ_ADJ		0
7108c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRL_FREQ_ADJ		1
7118c2ecf20Sopenharmony_ci
7128c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER			0xf300
7138c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER			0x00000040
7148c2ecf20Sopenharmony_ci#define STB0899_TP_BUFFER_IN			(0xffff << 0)
7158c2ecf20Sopenharmony_ci#define STB0899_OFFST_TP_BUFFER_IN		0
7168c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TP_BUFFER_IN		16
7178c2ecf20Sopenharmony_ci
7188c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER1			0xf304
7198c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER1			0x00000040
7208c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER2			0xf308
7218c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER2			0x00000040
7228c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER3			0xf30c
7238c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER3			0x00000040
7248c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER4			0xf310
7258c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER4			0x00000040
7268c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER5			0xf314
7278c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER5			0x00000040
7288c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER6			0xf318
7298c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER6			0x00000040
7308c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER7			0xf31c
7318c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER7			0x00000040
7328c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER8			0xf320
7338c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER8			0x00000040
7348c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER9			0xf324
7358c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER9			0x00000040
7368c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER10		0xf328
7378c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER10		0x00000040
7388c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER11		0xf32c
7398c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER11		0x00000040
7408c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER12		0xf330
7418c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER12		0x00000040
7428c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER13		0xf334
7438c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER13		0x00000040
7448c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER14		0xf338
7458c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER14		0x00000040
7468c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER15		0xf33c
7478c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER15		0x00000040
7488c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER16		0xf340
7498c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER16		0x00000040
7508c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER17		0xf344
7518c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER17		0x00000040
7528c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER18		0xf348
7538c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER18		0x00000040
7548c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER19		0xf34c
7558c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER19		0x00000040
7568c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER20		0xf350
7578c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER20		0x00000040
7588c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER21		0xf354
7598c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER21		0x00000040
7608c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER22		0xf358
7618c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER22		0x00000040
7628c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER23		0xf35c
7638c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER23		0x00000040
7648c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER24		0xf360
7658c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER24		0x00000040
7668c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER25		0xf364
7678c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER25		0x00000040
7688c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER26		0xf368
7698c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER26		0x00000040
7708c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER27		0xf36c
7718c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER27		0x00000040
7728c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER28		0xf370
7738c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER28		0x00000040
7748c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER29		0xf374
7758c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER29		0x00000040
7768c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER30		0xf378
7778c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER30		0x00000040
7788c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER31		0xf37c
7798c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER31		0x00000040
7808c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER32		0xf300
7818c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER32		0x00000060
7828c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER33		0xf304
7838c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER33		0x00000060
7848c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER34		0xf308
7858c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER34		0x00000060
7868c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER35		0xf30c
7878c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER35		0x00000060
7888c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER36		0xf310
7898c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER36		0x00000060
7908c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER37		0xf314
7918c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER37		0x00000060
7928c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER38		0xf318
7938c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER38		0x00000060
7948c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER39		0xf31c
7958c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER39		0x00000060
7968c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER40		0xf320
7978c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER40		0x00000060
7988c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER41		0xf324
7998c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER41		0x00000060
8008c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER42		0xf328
8018c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER42		0x00000060
8028c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER43		0xf32c
8038c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER43		0x00000060
8048c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER44		0xf330
8058c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER44		0x00000060
8068c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER45		0xf334
8078c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER45		0x00000060
8088c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER46		0xf338
8098c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER46		0x00000060
8108c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER47		0xf33c
8118c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER47		0x00000060
8128c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER48		0xf340
8138c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER48		0x00000060
8148c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER49		0xf344
8158c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER49		0x00000060
8168c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER50		0xf348
8178c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER50		0x00000060
8188c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER51		0xf34c
8198c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER51		0x00000060
8208c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER52		0xf350
8218c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER52		0x00000060
8228c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER53		0xf354
8238c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER53		0x00000060
8248c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER54		0xf358
8258c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER54		0x00000060
8268c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER55		0xf35c
8278c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER55		0x00000060
8288c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER56		0xf360
8298c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER56		0x00000060
8308c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER57		0xf364
8318c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER57		0x00000060
8328c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER58		0xf368
8338c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER58		0x00000060
8348c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER59		0xf36c
8358c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER59		0x00000060
8368c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER60		0xf370
8378c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER60		0x00000060
8388c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER61		0xf374
8398c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER61		0x00000060
8408c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER62		0xf378
8418c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER62		0x00000060
8428c2ecf20Sopenharmony_ci#define STB0899_OFF0_TP_BUFFER63		0xf37c
8438c2ecf20Sopenharmony_ci#define STB0899_BASE_TP_BUFFER63		0x00000060
8448c2ecf20Sopenharmony_ci
8458c2ecf20Sopenharmony_ci#define STB0899_OFF0_RESET_CNTRL		0xf300
8468c2ecf20Sopenharmony_ci#define STB0899_BASE_RESET_CNTRL		0x00000400
8478c2ecf20Sopenharmony_ci#define STB0899_DVBS2_RESET			(0x01 << 0)
8488c2ecf20Sopenharmony_ci#define STB0899_OFFST_DVBS2_RESET		0
8498c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DVBS2_RESET		1
8508c2ecf20Sopenharmony_ci
8518c2ecf20Sopenharmony_ci#define STB0899_OFF0_ACM_ENABLE			0xf304
8528c2ecf20Sopenharmony_ci#define STB0899_BASE_ACM_ENABLE			0x00000400
8538c2ecf20Sopenharmony_ci#define STB0899_ACM_ENABLE			1
8548c2ecf20Sopenharmony_ci
8558c2ecf20Sopenharmony_ci#define STB0899_OFF0_DESCR_CNTRL		0xf30c
8568c2ecf20Sopenharmony_ci#define STB0899_BASE_DESCR_CNTRL		0x00000400
8578c2ecf20Sopenharmony_ci#define STB0899_OFFST_DESCR_CNTRL               0
8588c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DESCR_CNTRL               16
8598c2ecf20Sopenharmony_ci
8608c2ecf20Sopenharmony_ci#define STB0899_OFF0_UWP_CNTRL1			0xf320
8618c2ecf20Sopenharmony_ci#define STB0899_BASE_UWP_CNTRL1			0x00000400
8628c2ecf20Sopenharmony_ci#define STB0899_UWP_TH_SOF			(0x7fff << 11)
8638c2ecf20Sopenharmony_ci#define STB0899_OFFST_UWP_TH_SOF		11
8648c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UWP_TH_SOF		15
8658c2ecf20Sopenharmony_ci#define STB0899_UWP_ESN0_QUANT			(0xff << 3)
8668c2ecf20Sopenharmony_ci#define STB0899_OFFST_UWP_ESN0_QUANT		3
8678c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UWP_ESN0_QUANT		8
8688c2ecf20Sopenharmony_ci#define STB0899_UWP_ESN0_AVE			(0x03 << 1)
8698c2ecf20Sopenharmony_ci#define STB0899_OFFST_UWP_ESN0_AVE		1
8708c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UWP_ESN0_AVE		2
8718c2ecf20Sopenharmony_ci#define STB0899_UWP_START			(0x01 << 0)
8728c2ecf20Sopenharmony_ci#define STB0899_OFFST_UWP_START			0
8738c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UWP_START			1
8748c2ecf20Sopenharmony_ci
8758c2ecf20Sopenharmony_ci#define STB0899_OFF0_UWP_CNTRL2			0xf324
8768c2ecf20Sopenharmony_ci#define STB0899_BASE_UWP_CNTRL2			0x00000400
8778c2ecf20Sopenharmony_ci#define STB0899_UWP_MISS_TH			(0xff << 16)
8788c2ecf20Sopenharmony_ci#define STB0899_OFFST_UWP_MISS_TH		16
8798c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UWP_MISS_TH		8
8808c2ecf20Sopenharmony_ci#define STB0899_FE_FINE_TRK			(0xff << 8)
8818c2ecf20Sopenharmony_ci#define STB0899_OFFST_FE_FINE_TRK		8
8828c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FE_FINE_TRK		8
8838c2ecf20Sopenharmony_ci#define STB0899_FE_COARSE_TRK			(0xff << 0)
8848c2ecf20Sopenharmony_ci#define STB0899_OFFST_FE_COARSE_TRK		0
8858c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FE_COARSE_TRK		8
8868c2ecf20Sopenharmony_ci
8878c2ecf20Sopenharmony_ci#define STB0899_OFF0_UWP_STAT1			0xf328
8888c2ecf20Sopenharmony_ci#define STB0899_BASE_UWP_STAT1			0x00000400
8898c2ecf20Sopenharmony_ci#define STB0899_UWP_STATE			(0x03ff << 15)
8908c2ecf20Sopenharmony_ci#define STB0899_OFFST_UWP_STATE			15
8918c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UWP_STATE			10
8928c2ecf20Sopenharmony_ci#define STB0899_UW_MAX_PEAK			(0x7fff << 0)
8938c2ecf20Sopenharmony_ci#define STB0899_OFFST_UW_MAX_PEAK		0
8948c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UW_MAX_PEAK		15
8958c2ecf20Sopenharmony_ci
8968c2ecf20Sopenharmony_ci#define STB0899_OFF0_UWP_STAT2			0xf32c
8978c2ecf20Sopenharmony_ci#define STB0899_BASE_UWP_STAT2			0x00000400
8988c2ecf20Sopenharmony_ci#define STB0899_ESNO_EST			(0x07ffff << 7)
8998c2ecf20Sopenharmony_ci#define STB0899_OFFST_ESN0_EST			7
9008c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ESN0_EST			19
9018c2ecf20Sopenharmony_ci#define STB0899_UWP_DECODE_MOD			(0x7f << 0)
9028c2ecf20Sopenharmony_ci#define STB0899_OFFST_UWP_DECODE_MOD		0
9038c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UWP_DECODE_MOD		7
9048c2ecf20Sopenharmony_ci
9058c2ecf20Sopenharmony_ci#define STB0899_OFF0_DMD_CORE_ID		0xf334
9068c2ecf20Sopenharmony_ci#define STB0899_BASE_DMD_CORE_ID		0x00000400
9078c2ecf20Sopenharmony_ci#define STB0899_CORE_ID				(0xffffffff << 0)
9088c2ecf20Sopenharmony_ci#define STB0899_OFFST_CORE_ID			0
9098c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CORE_ID			32
9108c2ecf20Sopenharmony_ci
9118c2ecf20Sopenharmony_ci#define STB0899_OFF0_DMD_VERSION_ID		0xf33c
9128c2ecf20Sopenharmony_ci#define STB0899_BASE_DMD_VERSION_ID		0x00000400
9138c2ecf20Sopenharmony_ci#define STB0899_VERSION_ID			(0xff << 0)
9148c2ecf20Sopenharmony_ci#define STB0899_OFFST_VERSION_ID		0
9158c2ecf20Sopenharmony_ci#define STB0899_WIDTH_VERSION_ID		8
9168c2ecf20Sopenharmony_ci
9178c2ecf20Sopenharmony_ci#define STB0899_OFF0_DMD_STAT2			0xf340
9188c2ecf20Sopenharmony_ci#define STB0899_BASE_DMD_STAT2			0x00000400
9198c2ecf20Sopenharmony_ci#define STB0899_CSM_LOCK			(0x01 << 1)
9208c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_LOCK			1
9218c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_LOCK			1
9228c2ecf20Sopenharmony_ci#define STB0899_UWP_LOCK			(0x01 << 0)
9238c2ecf20Sopenharmony_ci#define STB0899_OFFST_UWP_LOCK			0
9248c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UWP_LOCK			1
9258c2ecf20Sopenharmony_ci
9268c2ecf20Sopenharmony_ci#define STB0899_OFF0_FREQ_ADJ_SCALE		0xf344
9278c2ecf20Sopenharmony_ci#define STB0899_BASE_FREQ_ADJ_SCALE		0x00000400
9288c2ecf20Sopenharmony_ci#define STB0899_FREQ_ADJ_SCALE			(0x0fff << 0)
9298c2ecf20Sopenharmony_ci#define STB0899_OFFST_FREQ_ADJ_SCALE		0
9308c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FREQ_ADJ_SCALE		12
9318c2ecf20Sopenharmony_ci
9328c2ecf20Sopenharmony_ci#define STB0899_OFF0_UWP_CNTRL3			0xf34c
9338c2ecf20Sopenharmony_ci#define STB0899_BASE_UWP_CNTRL3			0x00000400
9348c2ecf20Sopenharmony_ci#define STB0899_UWP_TH_TRACK			(0x7fff << 15)
9358c2ecf20Sopenharmony_ci#define STB0899_OFFST_UWP_TH_TRACK		15
9368c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UWP_TH_TRACK		15
9378c2ecf20Sopenharmony_ci#define STB0899_UWP_TH_ACQ			(0x7fff << 0)
9388c2ecf20Sopenharmony_ci#define STB0899_OFFST_UWP_TH_ACQ		0
9398c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UWP_TH_ACQ		15
9408c2ecf20Sopenharmony_ci
9418c2ecf20Sopenharmony_ci#define STB0899_OFF0_SYM_CLK_SEL		0xf350
9428c2ecf20Sopenharmony_ci#define STB0899_BASE_SYM_CLK_SEL		0x00000400
9438c2ecf20Sopenharmony_ci#define STB0899_SYM_CLK_SEL			(0x03 << 0)
9448c2ecf20Sopenharmony_ci#define STB0899_OFFST_SYM_CLK_SEL		0
9458c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SYM_CLK_SEL		2
9468c2ecf20Sopenharmony_ci
9478c2ecf20Sopenharmony_ci#define STB0899_OFF0_SOF_SRCH_TO		0xf354
9488c2ecf20Sopenharmony_ci#define STB0899_BASE_SOF_SRCH_TO		0x00000400
9498c2ecf20Sopenharmony_ci#define STB0899_SOF_SEARCH_TIMEOUT		(0x3fffff << 0)
9508c2ecf20Sopenharmony_ci#define STB0899_OFFST_SOF_SEARCH_TIMEOUT	0
9518c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SOF_SEARCH_TIMEOUT	22
9528c2ecf20Sopenharmony_ci
9538c2ecf20Sopenharmony_ci#define STB0899_OFF0_ACQ_CNTRL1			0xf358
9548c2ecf20Sopenharmony_ci#define STB0899_BASE_ACQ_CNTRL1			0x00000400
9558c2ecf20Sopenharmony_ci#define STB0899_FE_FINE_ACQ			(0xff << 8)
9568c2ecf20Sopenharmony_ci#define STB0899_OFFST_FE_FINE_ACQ		8
9578c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FE_FINE_ACQ		8
9588c2ecf20Sopenharmony_ci#define STB0899_FE_COARSE_ACQ			(0xff << 0)
9598c2ecf20Sopenharmony_ci#define STB0899_OFFST_FE_COARSE_ACQ		0
9608c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FE_COARSE_ACQ		8
9618c2ecf20Sopenharmony_ci
9628c2ecf20Sopenharmony_ci#define STB0899_OFF0_ACQ_CNTRL2			0xf35c
9638c2ecf20Sopenharmony_ci#define STB0899_BASE_ACQ_CNTRL2			0x00000400
9648c2ecf20Sopenharmony_ci#define STB0899_ZIGZAG				(0x01 << 25)
9658c2ecf20Sopenharmony_ci#define STB0899_OFFST_ZIGZAG			25
9668c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ZIGZAG			1
9678c2ecf20Sopenharmony_ci#define STB0899_NUM_STEPS			(0xff << 17)
9688c2ecf20Sopenharmony_ci#define STB0899_OFFST_NUM_STEPS			17
9698c2ecf20Sopenharmony_ci#define STB0899_WIDTH_NUM_STEPS			8
9708c2ecf20Sopenharmony_ci#define STB0899_FREQ_STEPSIZE			(0x1ffff << 0)
9718c2ecf20Sopenharmony_ci#define STB0899_OFFST_FREQ_STEPSIZE		0
9728c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FREQ_STEPSIZE		17
9738c2ecf20Sopenharmony_ci
9748c2ecf20Sopenharmony_ci#define STB0899_OFF0_ACQ_CNTRL3			0xf360
9758c2ecf20Sopenharmony_ci#define STB0899_BASE_ACQ_CNTRL3			0x00000400
9768c2ecf20Sopenharmony_ci#define STB0899_THRESHOLD_SCL			(0x3f << 23)
9778c2ecf20Sopenharmony_ci#define STB0899_OFFST_THRESHOLD_SCL		23
9788c2ecf20Sopenharmony_ci#define STB0899_WIDTH_THRESHOLD_SCL		6
9798c2ecf20Sopenharmony_ci#define STB0899_UWP_TH_SRCH			(0x7fff << 8)
9808c2ecf20Sopenharmony_ci#define STB0899_OFFST_UWP_TH_SRCH		8
9818c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UWP_TH_SRCH		15
9828c2ecf20Sopenharmony_ci#define STB0899_AUTO_REACQUIRE			(0x01 << 7)
9838c2ecf20Sopenharmony_ci#define STB0899_OFFST_AUTO_REACQUIRE		7
9848c2ecf20Sopenharmony_ci#define STB0899_WIDTH_AUTO_REACQUIRE		1
9858c2ecf20Sopenharmony_ci#define STB0899_TRACK_LOCK_SEL			(0x01 << 6)
9868c2ecf20Sopenharmony_ci#define STB0899_OFFST_TRACK_LOCK_SEL		6
9878c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TRACK_LOCK_SEL		1
9888c2ecf20Sopenharmony_ci#define STB0899_ACQ_SEARCH_MODE			(0x03 << 4)
9898c2ecf20Sopenharmony_ci#define STB0899_OFFST_ACQ_SEARCH_MODE		4
9908c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ACQ_SEARCH_MODE		2
9918c2ecf20Sopenharmony_ci#define STB0899_CONFIRM_FRAMES			(0x0f << 0)
9928c2ecf20Sopenharmony_ci#define STB0899_OFFST_CONFIRM_FRAMES		0
9938c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CONFIRM_FRAMES		4
9948c2ecf20Sopenharmony_ci
9958c2ecf20Sopenharmony_ci#define STB0899_OFF0_FE_SETTLE			0xf364
9968c2ecf20Sopenharmony_ci#define STB0899_BASE_FE_SETTLE			0x00000400
9978c2ecf20Sopenharmony_ci#define STB0899_SETTLING_TIME			(0x3fffff << 0)
9988c2ecf20Sopenharmony_ci#define STB0899_OFFST_SETTLING_TIME		0
9998c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SETTLING_TIME		22
10008c2ecf20Sopenharmony_ci
10018c2ecf20Sopenharmony_ci#define STB0899_OFF0_AC_DWELL			0xf368
10028c2ecf20Sopenharmony_ci#define STB0899_BASE_AC_DWELL			0x00000400
10038c2ecf20Sopenharmony_ci#define STB0899_DWELL_TIME			(0x3fffff << 0)
10048c2ecf20Sopenharmony_ci#define STB0899_OFFST_DWELL_TIME		0
10058c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DWELL_TIME		22
10068c2ecf20Sopenharmony_ci
10078c2ecf20Sopenharmony_ci#define STB0899_OFF0_ACQUIRE_TRIG		0xf36c
10088c2ecf20Sopenharmony_ci#define STB0899_BASE_ACQUIRE_TRIG		0x00000400
10098c2ecf20Sopenharmony_ci#define STB0899_ACQUIRE				(0x01 << 0)
10108c2ecf20Sopenharmony_ci#define STB0899_OFFST_ACQUIRE			0
10118c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ACQUIRE			1
10128c2ecf20Sopenharmony_ci
10138c2ecf20Sopenharmony_ci#define STB0899_OFF0_LOCK_LOST			0xf370
10148c2ecf20Sopenharmony_ci#define STB0899_BASE_LOCK_LOST			0x00000400
10158c2ecf20Sopenharmony_ci#define STB0899_LOCK_LOST			(0x01 << 0)
10168c2ecf20Sopenharmony_ci#define STB0899_OFFST_LOCK_LOST			0
10178c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LOCK_LOST			1
10188c2ecf20Sopenharmony_ci
10198c2ecf20Sopenharmony_ci#define STB0899_OFF0_ACQ_STAT1			0xf374
10208c2ecf20Sopenharmony_ci#define STB0899_BASE_ACQ_STAT1			0x00000400
10218c2ecf20Sopenharmony_ci#define STB0899_STEP_FREQ			(0x1fffff << 11)
10228c2ecf20Sopenharmony_ci#define STB0899_OFFST_STEP_FREQ			11
10238c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STEP_FREQ			21
10248c2ecf20Sopenharmony_ci#define STB0899_ACQ_STATE			(0x07 << 8)
10258c2ecf20Sopenharmony_ci#define STB0899_OFFST_ACQ_STATE			8
10268c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ACQ_STATE			3
10278c2ecf20Sopenharmony_ci#define STB0899_UW_DETECT_COUNT			(0xff << 0)
10288c2ecf20Sopenharmony_ci#define STB0899_OFFST_UW_DETECT_COUNT		0
10298c2ecf20Sopenharmony_ci#define STB0899_WIDTH_UW_DETECT_COUNT		8
10308c2ecf20Sopenharmony_ci
10318c2ecf20Sopenharmony_ci#define STB0899_OFF0_ACQ_TIMEOUT		0xf378
10328c2ecf20Sopenharmony_ci#define STB0899_BASE_ACQ_TIMEOUT		0x00000400
10338c2ecf20Sopenharmony_ci#define STB0899_ACQ_TIMEOUT			(0x3fffff << 0)
10348c2ecf20Sopenharmony_ci#define STB0899_OFFST_ACQ_TIMEOUT		0
10358c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ACQ_TIMEOUT		22
10368c2ecf20Sopenharmony_ci
10378c2ecf20Sopenharmony_ci#define STB0899_OFF0_ACQ_TIME			0xf37c
10388c2ecf20Sopenharmony_ci#define STB0899_BASE_ACQ_TIME			0x00000400
10398c2ecf20Sopenharmony_ci#define STB0899_ACQ_TIME_SYM			(0xffffff << 0)
10408c2ecf20Sopenharmony_ci#define STB0899_OFFST_ACQ_TIME_SYM		0
10418c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ACQ_TIME_SYM		24
10428c2ecf20Sopenharmony_ci
10438c2ecf20Sopenharmony_ci#define STB0899_OFF0_FINAL_AGC_CNTRL		0xf308
10448c2ecf20Sopenharmony_ci#define STB0899_BASE_FINAL_AGC_CNTRL		0x00000440
10458c2ecf20Sopenharmony_ci#define STB0899_FINAL_GAIN_INIT			(0x3fff << 12)
10468c2ecf20Sopenharmony_ci#define STB0899_OFFST_FINAL_GAIN_INIT		12
10478c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FINAL_GAIN_INIT		14
10488c2ecf20Sopenharmony_ci#define STB0899_FINAL_LOOP_GAIN			(0x0f << 8)
10498c2ecf20Sopenharmony_ci#define STB0899_OFFST_FINAL_LOOP_GAIN		8
10508c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FINAL_LOOP_GAIN		4
10518c2ecf20Sopenharmony_ci#define STB0899_FINAL_LD_GAIN_INIT		(0x01 << 7)
10528c2ecf20Sopenharmony_ci#define STB0899_OFFST_FINAL_LD_GAIN_INIT	7
10538c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FINAL_LD_GAIN_INIT	1
10548c2ecf20Sopenharmony_ci#define STB0899_FINAL_AGC_REF			(0x7f << 0)
10558c2ecf20Sopenharmony_ci#define STB0899_OFFST_FINAL_AGC_REF		0
10568c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FINAL_AGC_REF		7
10578c2ecf20Sopenharmony_ci
10588c2ecf20Sopenharmony_ci#define STB0899_OFF0_FINAL_AGC_GAIN		0xf30c
10598c2ecf20Sopenharmony_ci#define STB0899_BASE_FINAL_AGC_GAIN		0x00000440
10608c2ecf20Sopenharmony_ci#define STB0899_FINAL_AGC_GAIN			(0x3fff << 0)
10618c2ecf20Sopenharmony_ci#define STB0899_OFFST_FINAL_AGC_GAIN		0
10628c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FINAL_AGC_GAIN		14
10638c2ecf20Sopenharmony_ci
10648c2ecf20Sopenharmony_ci#define STB0899_OFF0_EQUALIZER_INIT		0xf310
10658c2ecf20Sopenharmony_ci#define STB0899_BASE_EQUALIZER_INIT		0x00000440
10668c2ecf20Sopenharmony_ci#define STB0899_EQ_SRST				(0x01 << 1)
10678c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_SRST			1
10688c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_SRST			1
10698c2ecf20Sopenharmony_ci#define STB0899_EQ_INIT				(0x01 << 0)
10708c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_INIT			0
10718c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_INIT			1
10728c2ecf20Sopenharmony_ci
10738c2ecf20Sopenharmony_ci#define STB0899_OFF0_EQ_CNTRL			0xf314
10748c2ecf20Sopenharmony_ci#define STB0899_BASE_EQ_CNTRL			0x00000440
10758c2ecf20Sopenharmony_ci#define STB0899_EQ_ADAPT_MODE			(0x01 << 18)
10768c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_ADAPT_MODE		18
10778c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_ADAPT_MODE		1
10788c2ecf20Sopenharmony_ci#define STB0899_EQ_DELAY			(0x0f << 14)
10798c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_DELAY			14
10808c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_DELAY			4
10818c2ecf20Sopenharmony_ci#define STB0899_EQ_QUANT_LEVEL			(0xff << 6)
10828c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_QUANT_LEVEL		6
10838c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_QUANT_LEVEL		8
10848c2ecf20Sopenharmony_ci#define STB0899_EQ_DISABLE_UPDATE		(0x01 << 5)
10858c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_DISABLE_UPDATE		5
10868c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_DISABLE_UPDATE		1
10878c2ecf20Sopenharmony_ci#define STB0899_EQ_BYPASS			(0x01 << 4)
10888c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_BYPASS			4
10898c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_BYPASS			1
10908c2ecf20Sopenharmony_ci#define STB0899_EQ_SHIFT			(0x0f << 0)
10918c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_SHIFT			0
10928c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_SHIFT			4
10938c2ecf20Sopenharmony_ci
10948c2ecf20Sopenharmony_ci#define STB0899_OFF0_EQ_I_INIT_COEFF_0		0xf320
10958c2ecf20Sopenharmony_ci#define STB0899_OFF1_EQ_I_INIT_COEFF_1		0xf324
10968c2ecf20Sopenharmony_ci#define STB0899_OFF2_EQ_I_INIT_COEFF_2		0xf328
10978c2ecf20Sopenharmony_ci#define STB0899_OFF3_EQ_I_INIT_COEFF_3		0xf32c
10988c2ecf20Sopenharmony_ci#define STB0899_OFF4_EQ_I_INIT_COEFF_4		0xf330
10998c2ecf20Sopenharmony_ci#define STB0899_OFF5_EQ_I_INIT_COEFF_5		0xf334
11008c2ecf20Sopenharmony_ci#define STB0899_OFF6_EQ_I_INIT_COEFF_6		0xf338
11018c2ecf20Sopenharmony_ci#define STB0899_OFF7_EQ_I_INIT_COEFF_7		0xf33c
11028c2ecf20Sopenharmony_ci#define STB0899_OFF8_EQ_I_INIT_COEFF_8		0xf340
11038c2ecf20Sopenharmony_ci#define STB0899_OFF9_EQ_I_INIT_COEFF_9		0xf344
11048c2ecf20Sopenharmony_ci#define STB0899_OFFa_EQ_I_INIT_COEFF_10		0xf348
11058c2ecf20Sopenharmony_ci#define STB0899_BASE_EQ_I_INIT_COEFF_N		0x00000440
11068c2ecf20Sopenharmony_ci#define STB0899_EQ_I_INIT_COEFF_N		(0x0fff << 0)
11078c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_I_INIT_COEFF_N		0
11088c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_I_INIT_COEFF_N		12
11098c2ecf20Sopenharmony_ci
11108c2ecf20Sopenharmony_ci#define STB0899_OFF0_EQ_Q_INIT_COEFF_0		0xf350
11118c2ecf20Sopenharmony_ci#define STB0899_OFF1_EQ_Q_INIT_COEFF_1		0xf354
11128c2ecf20Sopenharmony_ci#define STB0899_OFF2_EQ_Q_INIT_COEFF_2		0xf358
11138c2ecf20Sopenharmony_ci#define STB0899_OFF3_EQ_Q_INIT_COEFF_3		0xf35c
11148c2ecf20Sopenharmony_ci#define STB0899_OFF4_EQ_Q_INIT_COEFF_4		0xf360
11158c2ecf20Sopenharmony_ci#define STB0899_OFF5_EQ_Q_INIT_COEFF_5		0xf364
11168c2ecf20Sopenharmony_ci#define STB0899_OFF6_EQ_Q_INIT_COEFF_6		0xf368
11178c2ecf20Sopenharmony_ci#define STB0899_OFF7_EQ_Q_INIT_COEFF_7		0xf36c
11188c2ecf20Sopenharmony_ci#define STB0899_OFF8_EQ_Q_INIT_COEFF_8		0xf370
11198c2ecf20Sopenharmony_ci#define STB0899_OFF9_EQ_Q_INIT_COEFF_9		0xf374
11208c2ecf20Sopenharmony_ci#define STB0899_OFFa_EQ_Q_INIT_COEFF_10		0xf378
11218c2ecf20Sopenharmony_ci#define STB0899_BASE_EQ_Q_INIT_COEFF_N		0x00000440
11228c2ecf20Sopenharmony_ci#define STB0899_EQ_Q_INIT_COEFF_N		(0x0fff << 0)
11238c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_Q_INIT_COEFF_N		0
11248c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_Q_INIT_COEFF_N		12
11258c2ecf20Sopenharmony_ci
11268c2ecf20Sopenharmony_ci#define STB0899_OFF0_EQ_I_OUT_COEFF_0		0xf300
11278c2ecf20Sopenharmony_ci#define STB0899_OFF1_EQ_I_OUT_COEFF_1		0xf304
11288c2ecf20Sopenharmony_ci#define STB0899_OFF2_EQ_I_OUT_COEFF_2		0xf308
11298c2ecf20Sopenharmony_ci#define STB0899_OFF3_EQ_I_OUT_COEFF_3		0xf30c
11308c2ecf20Sopenharmony_ci#define STB0899_OFF4_EQ_I_OUT_COEFF_4		0xf310
11318c2ecf20Sopenharmony_ci#define STB0899_OFF5_EQ_I_OUT_COEFF_5		0xf314
11328c2ecf20Sopenharmony_ci#define STB0899_OFF6_EQ_I_OUT_COEFF_6		0xf318
11338c2ecf20Sopenharmony_ci#define STB0899_OFF7_EQ_I_OUT_COEFF_7		0xf31c
11348c2ecf20Sopenharmony_ci#define STB0899_OFF8_EQ_I_OUT_COEFF_8		0xf320
11358c2ecf20Sopenharmony_ci#define STB0899_OFF9_EQ_I_OUT_COEFF_9		0xf324
11368c2ecf20Sopenharmony_ci#define STB0899_OFFa_EQ_I_OUT_COEFF_10		0xf328
11378c2ecf20Sopenharmony_ci#define STB0899_BASE_EQ_I_OUT_COEFF_N		0x00000460
11388c2ecf20Sopenharmony_ci#define STB0899_EQ_I_OUT_COEFF_N		(0x0fff << 0)
11398c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_I_OUT_COEFF_N		0
11408c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_I_OUT_COEFF_N		12
11418c2ecf20Sopenharmony_ci
11428c2ecf20Sopenharmony_ci#define STB0899_OFF0_EQ_Q_OUT_COEFF_0		0xf330
11438c2ecf20Sopenharmony_ci#define STB0899_OFF1_EQ_Q_OUT_COEFF_1		0xf334
11448c2ecf20Sopenharmony_ci#define STB0899_OFF2_EQ_Q_OUT_COEFF_2		0xf338
11458c2ecf20Sopenharmony_ci#define STB0899_OFF3_EQ_Q_OUT_COEFF_3		0xf33c
11468c2ecf20Sopenharmony_ci#define STB0899_OFF4_EQ_Q_OUT_COEFF_4		0xf340
11478c2ecf20Sopenharmony_ci#define STB0899_OFF5_EQ_Q_OUT_COEFF_5		0xf344
11488c2ecf20Sopenharmony_ci#define STB0899_OFF6_EQ_Q_OUT_COEFF_6		0xf348
11498c2ecf20Sopenharmony_ci#define STB0899_OFF7_EQ_Q_OUT_COEFF_7		0xf34c
11508c2ecf20Sopenharmony_ci#define STB0899_OFF8_EQ_Q_OUT_COEFF_8		0xf350
11518c2ecf20Sopenharmony_ci#define STB0899_OFF9_EQ_Q_OUT_COEFF_9		0xf354
11528c2ecf20Sopenharmony_ci#define STB0899_OFFa_EQ_Q_OUT_COEFF_10		0xf358
11538c2ecf20Sopenharmony_ci#define STB0899_BASE_EQ_Q_OUT_COEFF_N		0x00000460
11548c2ecf20Sopenharmony_ci#define STB0899_EQ_Q_OUT_COEFF_N		(0x0fff << 0)
11558c2ecf20Sopenharmony_ci#define STB0899_OFFST_EQ_Q_OUT_COEFF_N		0
11568c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EQ_Q_OUT_COEFF_N		12
11578c2ecf20Sopenharmony_ci
11588c2ecf20Sopenharmony_ci/*	S2 FEC	*/
11598c2ecf20Sopenharmony_ci#define STB0899_OFF0_BLOCK_LNGTH		0xfa04
11608c2ecf20Sopenharmony_ci#define STB0899_BASE_BLOCK_LNGTH		0x00000000
11618c2ecf20Sopenharmony_ci#define STB0899_BLOCK_LENGTH			(0xff << 0)
11628c2ecf20Sopenharmony_ci#define STB0899_OFFST_BLOCK_LENGTH		0
11638c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BLOCK_LENGTH		8
11648c2ecf20Sopenharmony_ci
11658c2ecf20Sopenharmony_ci#define STB0899_OFF0_ROW_STR			0xfa08
11668c2ecf20Sopenharmony_ci#define STB0899_BASE_ROW_STR			0x00000000
11678c2ecf20Sopenharmony_ci#define STB0899_ROW_STRIDE			(0xff << 0)
11688c2ecf20Sopenharmony_ci#define STB0899_OFFST_ROW_STRIDE		0
11698c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ROW_STRIDE		8
11708c2ecf20Sopenharmony_ci
11718c2ecf20Sopenharmony_ci#define STB0899_OFF0_MAX_ITER			0xfa0c
11728c2ecf20Sopenharmony_ci#define STB0899_BASE_MAX_ITER			0x00000000
11738c2ecf20Sopenharmony_ci#define STB0899_MAX_ITERATIONS			(0xff << 0)
11748c2ecf20Sopenharmony_ci#define STB0899_OFFST_MAX_ITERATIONS		0
11758c2ecf20Sopenharmony_ci#define STB0899_WIDTH_MAX_ITERATIONS		8
11768c2ecf20Sopenharmony_ci
11778c2ecf20Sopenharmony_ci#define STB0899_OFF0_BN_END_ADDR		0xfa10
11788c2ecf20Sopenharmony_ci#define STB0899_BASE_BN_END_ADDR		0x00000000
11798c2ecf20Sopenharmony_ci#define STB0899_BN_END_ADDR			(0x0fff << 0)
11808c2ecf20Sopenharmony_ci#define STB0899_OFFST_BN_END_ADDR		0
11818c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BN_END_ADDR		12
11828c2ecf20Sopenharmony_ci
11838c2ecf20Sopenharmony_ci#define STB0899_OFF0_CN_END_ADDR		0xfa14
11848c2ecf20Sopenharmony_ci#define STB0899_BASE_CN_END_ADDR		0x00000000
11858c2ecf20Sopenharmony_ci#define STB0899_CN_END_ADDR			(0x0fff << 0)
11868c2ecf20Sopenharmony_ci#define STB0899_OFFST_CN_END_ADDR		0
11878c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CN_END_ADDR		12
11888c2ecf20Sopenharmony_ci
11898c2ecf20Sopenharmony_ci#define STB0899_OFF0_INFO_LENGTH		0xfa1c
11908c2ecf20Sopenharmony_ci#define STB0899_BASE_INFO_LENGTH		0x00000000
11918c2ecf20Sopenharmony_ci#define STB0899_INFO_LENGTH			(0xff << 0)
11928c2ecf20Sopenharmony_ci#define STB0899_OFFST_INFO_LENGTH		0
11938c2ecf20Sopenharmony_ci#define STB0899_WIDTH_INFO_LENGTH		8
11948c2ecf20Sopenharmony_ci
11958c2ecf20Sopenharmony_ci#define STB0899_OFF0_BOT_ADDR			0xfa20
11968c2ecf20Sopenharmony_ci#define STB0899_BASE_BOT_ADDR			0x00000000
11978c2ecf20Sopenharmony_ci#define STB0899_BOTTOM_BASE_ADDR		(0x03ff << 0)
11988c2ecf20Sopenharmony_ci#define STB0899_OFFST_BOTTOM_BASE_ADDR		0
11998c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BOTTOM_BASE_ADDR		10
12008c2ecf20Sopenharmony_ci
12018c2ecf20Sopenharmony_ci#define STB0899_OFF0_BCH_BLK_LN			0xfa24
12028c2ecf20Sopenharmony_ci#define STB0899_BASE_BCH_BLK_LN			0x00000000
12038c2ecf20Sopenharmony_ci#define STB0899_BCH_BLOCK_LENGTH		(0xffff << 0)
12048c2ecf20Sopenharmony_ci#define STB0899_OFFST_BCH_BLOCK_LENGTH		0
12058c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BCH_BLOCK_LENGTH		16
12068c2ecf20Sopenharmony_ci
12078c2ecf20Sopenharmony_ci#define STB0899_OFF0_BCH_T			0xfa28
12088c2ecf20Sopenharmony_ci#define STB0899_BASE_BCH_T			0x00000000
12098c2ecf20Sopenharmony_ci#define STB0899_BCH_T				(0x0f << 0)
12108c2ecf20Sopenharmony_ci#define STB0899_OFFST_BCH_T			0
12118c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BCH_T			4
12128c2ecf20Sopenharmony_ci
12138c2ecf20Sopenharmony_ci#define STB0899_OFF0_CNFG_MODE			0xfa00
12148c2ecf20Sopenharmony_ci#define STB0899_BASE_CNFG_MODE			0x00000800
12158c2ecf20Sopenharmony_ci#define STB0899_MODCOD				(0x1f << 2)
12168c2ecf20Sopenharmony_ci#define STB0899_OFFST_MODCOD			2
12178c2ecf20Sopenharmony_ci#define STB0899_WIDTH_MODCOD			5
12188c2ecf20Sopenharmony_ci#define STB0899_MODCOD_SEL			(0x01 << 1)
12198c2ecf20Sopenharmony_ci#define STB0899_OFFST_MODCOD_SEL		1
12208c2ecf20Sopenharmony_ci#define STB0899_WIDTH_MODCOD_SEL		1
12218c2ecf20Sopenharmony_ci#define STB0899_CONFIG_MODE			(0x01 << 0)
12228c2ecf20Sopenharmony_ci#define STB0899_OFFST_CONFIG_MODE		0
12238c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CONFIG_MODE		1
12248c2ecf20Sopenharmony_ci
12258c2ecf20Sopenharmony_ci#define STB0899_OFF0_LDPC_STAT			0xfa04
12268c2ecf20Sopenharmony_ci#define STB0899_BASE_LDPC_STAT			0x00000800
12278c2ecf20Sopenharmony_ci#define STB0899_ITERATION			(0xff << 3)
12288c2ecf20Sopenharmony_ci#define STB0899_OFFST_ITERATION			3
12298c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ITERATION			8
12308c2ecf20Sopenharmony_ci#define STB0899_LDPC_DEC_STATE			(0x07 << 0)
12318c2ecf20Sopenharmony_ci#define STB0899_OFFST_LDPC_DEC_STATE		0
12328c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LDPC_DEC_STATE		3
12338c2ecf20Sopenharmony_ci
12348c2ecf20Sopenharmony_ci#define STB0899_OFF0_ITER_SCALE			0xfa08
12358c2ecf20Sopenharmony_ci#define STB0899_BASE_ITER_SCALE			0x00000800
12368c2ecf20Sopenharmony_ci#define STB0899_ITERATION_SCALE			(0xff << 0)
12378c2ecf20Sopenharmony_ci#define STB0899_OFFST_ITERATION_SCALE		0
12388c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ITERATION_SCALE		8
12398c2ecf20Sopenharmony_ci
12408c2ecf20Sopenharmony_ci#define STB0899_OFF0_INPUT_MODE			0xfa0c
12418c2ecf20Sopenharmony_ci#define STB0899_BASE_INPUT_MODE			0x00000800
12428c2ecf20Sopenharmony_ci#define STB0899_SD_BLOCK1_STREAM0		(0x01 << 0)
12438c2ecf20Sopenharmony_ci#define STB0899_OFFST_SD_BLOCK1_STREAM0		0
12448c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SD_BLOCK1_STREAM0		1
12458c2ecf20Sopenharmony_ci
12468c2ecf20Sopenharmony_ci#define STB0899_OFF0_LDPCDECRST			0xfa10
12478c2ecf20Sopenharmony_ci#define STB0899_BASE_LDPCDECRST			0x00000800
12488c2ecf20Sopenharmony_ci#define STB0899_LDPC_DEC_RST			(0x01 << 0)
12498c2ecf20Sopenharmony_ci#define STB0899_OFFST_LDPC_DEC_RST		0
12508c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LDPC_DEC_RST		1
12518c2ecf20Sopenharmony_ci
12528c2ecf20Sopenharmony_ci#define STB0899_OFF0_CLK_PER_BYTE_RW		0xfa14
12538c2ecf20Sopenharmony_ci#define STB0899_BASE_CLK_PER_BYTE_RW		0x00000800
12548c2ecf20Sopenharmony_ci#define STB0899_CLKS_PER_BYTE			(0x0f << 0)
12558c2ecf20Sopenharmony_ci#define STB0899_OFFST_CLKS_PER_BYTE		0
12568c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CLKS_PER_BYTE		5
12578c2ecf20Sopenharmony_ci
12588c2ecf20Sopenharmony_ci#define STB0899_OFF0_BCH_ERRORS			0xfa18
12598c2ecf20Sopenharmony_ci#define STB0899_BASE_BCH_ERRORS			0x00000800
12608c2ecf20Sopenharmony_ci#define STB0899_BCH_ERRORS			(0x0f << 0)
12618c2ecf20Sopenharmony_ci#define STB0899_OFFST_BCH_ERRORS		0
12628c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BCH_ERRORS		4
12638c2ecf20Sopenharmony_ci
12648c2ecf20Sopenharmony_ci#define STB0899_OFF0_LDPC_ERRORS		0xfa1c
12658c2ecf20Sopenharmony_ci#define STB0899_BASE_LDPC_ERRORS		0x00000800
12668c2ecf20Sopenharmony_ci#define STB0899_LDPC_ERRORS			(0xffff << 0)
12678c2ecf20Sopenharmony_ci#define STB0899_OFFST_LDPC_ERRORS		0
12688c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LDPC_ERRORS		16
12698c2ecf20Sopenharmony_ci
12708c2ecf20Sopenharmony_ci#define STB0899_OFF0_BCH_MODE			0xfa20
12718c2ecf20Sopenharmony_ci#define STB0899_BASE_BCH_MODE			0x00000800
12728c2ecf20Sopenharmony_ci#define STB0899_BCH_CORRECT_N			(0x01 << 1)
12738c2ecf20Sopenharmony_ci#define STB0899_OFFST_BCH_CORRECT_N		1
12748c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BCH_CORRECT_N		1
12758c2ecf20Sopenharmony_ci#define STB0899_FULL_BYPASS			(0x01 << 0)
12768c2ecf20Sopenharmony_ci#define STB0899_OFFST_FULL_BYPASS		0
12778c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FULL_BYPASS		1
12788c2ecf20Sopenharmony_ci
12798c2ecf20Sopenharmony_ci#define STB0899_OFF0_ERR_ACC_PER		0xfa24
12808c2ecf20Sopenharmony_ci#define STB0899_BASE_ERR_ACC_PER		0x00000800
12818c2ecf20Sopenharmony_ci#define STB0899_BCH_ERR_ACC_PERIOD		(0x0f << 0)
12828c2ecf20Sopenharmony_ci#define STB0899_OFFST_BCH_ERR_ACC_PERIOD	0
12838c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BCH_ERR_ACC_PERIOD	4
12848c2ecf20Sopenharmony_ci
12858c2ecf20Sopenharmony_ci#define STB0899_OFF0_BCH_ERR_ACC		0xfa28
12868c2ecf20Sopenharmony_ci#define STB0899_BASE_BCH_ERR_ACC		0x00000800
12878c2ecf20Sopenharmony_ci#define STB0899_BCH_ERR_ACCUM			(0xff << 0)
12888c2ecf20Sopenharmony_ci#define STB0899_OFFST_BCH_ERR_ACCUM		0
12898c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BCH_ERR_ACCUM		8
12908c2ecf20Sopenharmony_ci
12918c2ecf20Sopenharmony_ci#define STB0899_OFF0_FEC_CORE_ID_REG		0xfa2c
12928c2ecf20Sopenharmony_ci#define STB0899_BASE_FEC_CORE_ID_REG		0x00000800
12938c2ecf20Sopenharmony_ci#define STB0899_FEC_CORE_ID			(0xffffffff << 0)
12948c2ecf20Sopenharmony_ci#define STB0899_OFFST_FEC_CORE_ID		0
12958c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FEC_CORE_ID		32
12968c2ecf20Sopenharmony_ci
12978c2ecf20Sopenharmony_ci#define STB0899_OFF0_FEC_VER_ID_REG		0xfa34
12988c2ecf20Sopenharmony_ci#define STB0899_BASE_FEC_VER_ID_REG		0x00000800
12998c2ecf20Sopenharmony_ci#define STB0899_FEC_VER_ID			(0xff << 0)
13008c2ecf20Sopenharmony_ci#define STB0899_OFFST_FEC_VER_ID		0
13018c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FEC_VER_ID		8
13028c2ecf20Sopenharmony_ci
13038c2ecf20Sopenharmony_ci#define STB0899_OFF0_FEC_TP_SEL			0xfa38
13048c2ecf20Sopenharmony_ci#define STB0899_BASE_FEC_TP_SEL			0x00000800
13058c2ecf20Sopenharmony_ci
13068c2ecf20Sopenharmony_ci#define STB0899_OFF0_CSM_CNTRL1			0xf310
13078c2ecf20Sopenharmony_ci#define STB0899_BASE_CSM_CNTRL1			0x00000400
13088c2ecf20Sopenharmony_ci#define STB0899_CSM_FORCE_FREQLOCK		(0x01 << 19)
13098c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_FORCE_FREQLOCK	19
13108c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_FORCE_FREQLOCK	1
13118c2ecf20Sopenharmony_ci#define STB0899_CSM_FREQ_LOCKSTATE		(0x01 << 18)
13128c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_FREQ_LOCKSTATE	18
13138c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_FREQ_LOCKSTATE	1
13148c2ecf20Sopenharmony_ci#define STB0899_CSM_AUTO_PARAM			(0x01 << 17)
13158c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_AUTO_PARAM		17
13168c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_AUTO_PARAM		1
13178c2ecf20Sopenharmony_ci#define STB0899_FE_LOOP_SHIFT			(0x07 << 14)
13188c2ecf20Sopenharmony_ci#define STB0899_OFFST_FE_LOOP_SHIFT		14
13198c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FE_LOOP_SHIFT		3
13208c2ecf20Sopenharmony_ci#define STB0899_CSM_AGC_SHIFT			(0x07 << 11)
13218c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_AGC_SHIFT		11
13228c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_AGC_SHIFT		3
13238c2ecf20Sopenharmony_ci#define STB0899_CSM_AGC_GAIN			(0x1ff << 2)
13248c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_AGC_GAIN		2
13258c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_AGC_GAIN		9
13268c2ecf20Sopenharmony_ci#define STB0899_CSM_TWO_PASS			(0x01 << 1)
13278c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_TWO_PASS		1
13288c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_TWO_PASS		1
13298c2ecf20Sopenharmony_ci#define STB0899_CSM_DVT_TABLE			(0x01 << 0)
13308c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_DVT_TABLE		0
13318c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_DVT_TABLE		1
13328c2ecf20Sopenharmony_ci
13338c2ecf20Sopenharmony_ci#define STB0899_OFF0_CSM_CNTRL2			0xf314
13348c2ecf20Sopenharmony_ci#define STB0899_BASE_CSM_CNTRL2			0x00000400
13358c2ecf20Sopenharmony_ci#define STB0899_CSM_GAMMA_RHO_ACQ		(0x1ff << 9)
13368c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_GAMMA_RHOACQ		9
13378c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_GAMMA_RHOACQ		9
13388c2ecf20Sopenharmony_ci#define STB0899_CSM_GAMMA_ACQ			(0x1ff << 0)
13398c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_GAMMA_ACQ		0
13408c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_GAMMA_ACQ		9
13418c2ecf20Sopenharmony_ci
13428c2ecf20Sopenharmony_ci#define STB0899_OFF0_CSM_CNTRL3			0xf318
13438c2ecf20Sopenharmony_ci#define STB0899_BASE_CSM_CNTRL3			0x00000400
13448c2ecf20Sopenharmony_ci#define STB0899_CSM_GAMMA_RHO_TRACK		(0x1ff << 9)
13458c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_GAMMA_RHOTRACK	9
13468c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_GAMMA_RHOTRACK	9
13478c2ecf20Sopenharmony_ci#define STB0899_CSM_GAMMA_TRACK			(0x1ff << 0)
13488c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_GAMMA_TRACK		0
13498c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_GAMMA_TRACK		9
13508c2ecf20Sopenharmony_ci
13518c2ecf20Sopenharmony_ci#define STB0899_OFF0_CSM_CNTRL4			0xf31c
13528c2ecf20Sopenharmony_ci#define STB0899_BASE_CSM_CNTRL4			0x00000400
13538c2ecf20Sopenharmony_ci#define STB0899_CSM_PHASEDIFF_THRESH		(0x0f << 8)
13548c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_PHASEDIFF_THRESH	8
13558c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_PHASEDIFF_THRESH	4
13568c2ecf20Sopenharmony_ci#define STB0899_CSM_LOCKCOUNT_THRESH		(0xff << 0)
13578c2ecf20Sopenharmony_ci#define STB0899_OFFST_CSM_LOCKCOUNT_THRESH	0
13588c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CSM_LOCKCOUNT_THRESH	8
13598c2ecf20Sopenharmony_ci
13608c2ecf20Sopenharmony_ci/*	Check on chapter 8 page 42	*/
13618c2ecf20Sopenharmony_ci#define STB0899_ERRCTRL1			0xf574
13628c2ecf20Sopenharmony_ci#define STB0899_ERRCTRL2			0xf575
13638c2ecf20Sopenharmony_ci#define STB0899_ERRCTRL3			0xf576
13648c2ecf20Sopenharmony_ci#define STB0899_ERR_SRC_S1			(0x1f << 3)
13658c2ecf20Sopenharmony_ci#define STB0899_OFFST_ERR_SRC_S1		3
13668c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ERR_SRC_S1		5
13678c2ecf20Sopenharmony_ci#define STB0899_ERR_SRC_S2			(0x0f << 0)
13688c2ecf20Sopenharmony_ci#define STB0899_OFFST_ERR_SRC_S2		0
13698c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ERR_SRC_S2		4
13708c2ecf20Sopenharmony_ci#define STB0899_NOE				(0x07 << 0)
13718c2ecf20Sopenharmony_ci#define STB0899_OFFST_NOE			0
13728c2ecf20Sopenharmony_ci#define STB0899_WIDTH_NOE			3
13738c2ecf20Sopenharmony_ci
13748c2ecf20Sopenharmony_ci#define STB0899_ECNT1M				0xf524
13758c2ecf20Sopenharmony_ci#define STB0899_ECNT1L				0xf525
13768c2ecf20Sopenharmony_ci#define STB0899_ECNT2M				0xf526
13778c2ecf20Sopenharmony_ci#define STB0899_ECNT2L				0xf527
13788c2ecf20Sopenharmony_ci#define STB0899_ECNT3M				0xf528
13798c2ecf20Sopenharmony_ci#define STB0899_ECNT3L				0xf529
13808c2ecf20Sopenharmony_ci
13818c2ecf20Sopenharmony_ci#define STB0899_DMONMSK1			0xf57b
13828c2ecf20Sopenharmony_ci#define STB0899_DMONMSK1_WAIT_1STEP		(1 << 7)
13838c2ecf20Sopenharmony_ci#define STB0899_DMONMSK1_FREE_14		(1 << 6)
13848c2ecf20Sopenharmony_ci#define STB0899_DMONMSK1_AVRGVIT_CALC		(1 << 5)
13858c2ecf20Sopenharmony_ci#define STB0899_DMONMSK1_FREE_12		(1 << 4)
13868c2ecf20Sopenharmony_ci#define STB0899_DMONMSK1_FREE_11		(1 << 3)
13878c2ecf20Sopenharmony_ci#define STB0899_DMONMSK1_B0DIV_CALC		(1 << 2)
13888c2ecf20Sopenharmony_ci#define STB0899_DMONMSK1_KDIVB1_CALC		(1 << 1)
13898c2ecf20Sopenharmony_ci#define STB0899_DMONMSK1_KDIVB2_CALC		(1 << 0)
13908c2ecf20Sopenharmony_ci
13918c2ecf20Sopenharmony_ci#define STB0899_DMONMSK0			0xf57c
13928c2ecf20Sopenharmony_ci#define STB0899_DMONMSK0_SMOTTH_CALC		(1 << 7)
13938c2ecf20Sopenharmony_ci#define STB0899_DMONMSK0_FREE_6			(1 << 6)
13948c2ecf20Sopenharmony_ci#define STB0899_DMONMSK0_SIGPOWER_CALC		(1 << 5)
13958c2ecf20Sopenharmony_ci#define STB0899_DMONMSK0_QSEUIL_CALC		(1 << 4)
13968c2ecf20Sopenharmony_ci#define STB0899_DMONMSK0_FREE_3			(1 << 3)
13978c2ecf20Sopenharmony_ci#define STB0899_DMONMSK0_FREE_2			(1 << 2)
13988c2ecf20Sopenharmony_ci#define STB0899_DMONMSK0_KVDIVB1_CALC		(1 << 1)
13998c2ecf20Sopenharmony_ci#define STB0899_DMONMSK0_KVDIVB2_CALC		(1 << 0)
14008c2ecf20Sopenharmony_ci
14018c2ecf20Sopenharmony_ci#define STB0899_TSULC				0xf549
14028c2ecf20Sopenharmony_ci#define STB0899_ULNOSYNCBYTES			(0x01 << 7)
14038c2ecf20Sopenharmony_ci#define STB0899_OFFST_ULNOSYNCBYTES		7
14048c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ULNOSYNCBYTES		1
14058c2ecf20Sopenharmony_ci#define STB0899_ULPARITY_ON			(0x01 << 6)
14068c2ecf20Sopenharmony_ci#define STB0899_OFFST_ULPARITY_ON		6
14078c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ULPARITY_ON		1
14088c2ecf20Sopenharmony_ci#define STB0899_ULSYNCOUTRS			(0x01 << 5)
14098c2ecf20Sopenharmony_ci#define STB0899_OFFST_ULSYNCOUTRS		5
14108c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ULSYNCOUTRS		1
14118c2ecf20Sopenharmony_ci#define STB0899_ULDSS_PACKETS			(0x01 << 0)
14128c2ecf20Sopenharmony_ci#define STB0899_OFFST_ULDSS_PACKETS		0
14138c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ULDSS_PACKETS		1
14148c2ecf20Sopenharmony_ci
14158c2ecf20Sopenharmony_ci#define STB0899_TSLPL				0xf54b
14168c2ecf20Sopenharmony_ci#define STB0899_LLDVBS2_MODE			(0x01 << 4)
14178c2ecf20Sopenharmony_ci#define STB0899_OFFST_LLDVBS2_MODE		4
14188c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LLDVBS2_MODE		1
14198c2ecf20Sopenharmony_ci#define STB0899_LLISSYI_ON			(0x01 << 3)
14208c2ecf20Sopenharmony_ci#define STB0899_OFFST_LLISSYI_ON		3
14218c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LLISSYI_ON		1
14228c2ecf20Sopenharmony_ci#define STB0899_LLNPD_ON			(0x01 << 2)
14238c2ecf20Sopenharmony_ci#define STB0899_OFFST_LLNPD_ON			2
14248c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LLNPD_ON			1
14258c2ecf20Sopenharmony_ci#define STB0899_LLCRC8_ON			(0x01 << 1)
14268c2ecf20Sopenharmony_ci#define STB0899_OFFST_LLCRC8_ON			1
14278c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LLCRC8_ON			1
14288c2ecf20Sopenharmony_ci
14298c2ecf20Sopenharmony_ci#define STB0899_TSCFGH				0xf54c
14308c2ecf20Sopenharmony_ci#define STB0899_OUTRS_PS			(0x01 << 6)
14318c2ecf20Sopenharmony_ci#define STB0899_OFFST_OUTRS_PS			6
14328c2ecf20Sopenharmony_ci#define STB0899_WIDTH_OUTRS_PS			1
14338c2ecf20Sopenharmony_ci#define STB0899_SYNCBYTE			(0x01 << 5)
14348c2ecf20Sopenharmony_ci#define STB0899_OFFST_SYNCBYTE			5
14358c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SYNCBYTE			1
14368c2ecf20Sopenharmony_ci#define STB0899_PFBIT				(0x01 << 4)
14378c2ecf20Sopenharmony_ci#define STB0899_OFFST_PFBIT			4
14388c2ecf20Sopenharmony_ci#define STB0899_WIDTH_PFBIT			1
14398c2ecf20Sopenharmony_ci#define STB0899_ERR_BIT				(0x01 << 3)
14408c2ecf20Sopenharmony_ci#define STB0899_OFFST_ERR_BIT			3
14418c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ERR_BIT			1
14428c2ecf20Sopenharmony_ci#define STB0899_MPEG				(0x01 << 2)
14438c2ecf20Sopenharmony_ci#define STB0899_OFFST_MPEG			2
14448c2ecf20Sopenharmony_ci#define STB0899_WIDTH_MPEG			1
14458c2ecf20Sopenharmony_ci#define STB0899_CLK_POL				(0x01 << 1)
14468c2ecf20Sopenharmony_ci#define STB0899_OFFST_CLK_POL			1
14478c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CLK_POL			1
14488c2ecf20Sopenharmony_ci#define STB0899_FORCE0				(0x01 << 0)
14498c2ecf20Sopenharmony_ci#define STB0899_OFFST_FORCE0			0
14508c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FORCE0			1
14518c2ecf20Sopenharmony_ci
14528c2ecf20Sopenharmony_ci#define STB0899_TSCFGM				0xf54d
14538c2ecf20Sopenharmony_ci#define STB0899_LLPRIORITY			(0x01 << 3)
14548c2ecf20Sopenharmony_ci#define STB0899_OFFST_LLPRIORIY			3
14558c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LLPRIORITY		1
14568c2ecf20Sopenharmony_ci#define STB0899_EN188				(0x01 << 2)
14578c2ecf20Sopenharmony_ci#define STB0899_OFFST_EN188			2
14588c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EN188			1
14598c2ecf20Sopenharmony_ci
14608c2ecf20Sopenharmony_ci#define STB0899_TSCFGL				0xf54e
14618c2ecf20Sopenharmony_ci#define STB0899_DEL_ERRPCK			(0x01 << 7)
14628c2ecf20Sopenharmony_ci#define STB0899_OFFST_DEL_ERRPCK		7
14638c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DEL_ERRPCK		1
14648c2ecf20Sopenharmony_ci#define STB0899_ERRFLAGSTD			(0x01 << 5)
14658c2ecf20Sopenharmony_ci#define STB0899_OFFST_ERRFLAGSTD		5
14668c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ERRFLAGSTD		1
14678c2ecf20Sopenharmony_ci#define STB0899_MPEGERR				(0x01 << 4)
14688c2ecf20Sopenharmony_ci#define STB0899_OFFST_MPEGERR			4
14698c2ecf20Sopenharmony_ci#define STB0899_WIDTH_MPEGERR			1
14708c2ecf20Sopenharmony_ci#define STB0899_BCH_CHK				(0x01 << 3)
14718c2ecf20Sopenharmony_ci#define STB0899_OFFST_BCH_CHK			5
14728c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BCH_CHK			1
14738c2ecf20Sopenharmony_ci#define STB0899_CRC8CHK				(0x01 << 2)
14748c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRC8CHK			2
14758c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRC8CHK			1
14768c2ecf20Sopenharmony_ci#define STB0899_SPEC_INFO			(0x01 << 1)
14778c2ecf20Sopenharmony_ci#define STB0899_OFFST_SPEC_INFO			1
14788c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SPEC_INFO			1
14798c2ecf20Sopenharmony_ci#define STB0899_LOW_PRIO_CLK			(0x01 << 0)
14808c2ecf20Sopenharmony_ci#define STB0899_OFFST_LOW_PRIO_CLK		0
14818c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LOW_PRIO_CLK		1
14828c2ecf20Sopenharmony_ci#define STB0899_ERROR_NORM			(0x00 << 0)
14838c2ecf20Sopenharmony_ci#define STB0899_OFFST_ERROR_NORM		0
14848c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ERROR_NORM		0
14858c2ecf20Sopenharmony_ci
14868c2ecf20Sopenharmony_ci#define STB0899_TSOUT				0xf54f
14878c2ecf20Sopenharmony_ci#define STB0899_RSSYNCDEL			0xf550
14888c2ecf20Sopenharmony_ci#define STB0899_TSINHDELH			0xf551
14898c2ecf20Sopenharmony_ci#define STB0899_TSINHDELM			0xf552
14908c2ecf20Sopenharmony_ci#define STB0899_TSINHDELL			0xf553
14918c2ecf20Sopenharmony_ci#define STB0899_TSLLSTKM			0xf55a
14928c2ecf20Sopenharmony_ci#define STB0899_TSLLSTKL			0xf55b
14938c2ecf20Sopenharmony_ci#define STB0899_TSULSTKM			0xf55c
14948c2ecf20Sopenharmony_ci#define STB0899_TSULSTKL			0xf55d
14958c2ecf20Sopenharmony_ci#define STB0899_TSSTATUS			0xf561
14968c2ecf20Sopenharmony_ci
14978c2ecf20Sopenharmony_ci#define STB0899_PDELCTRL			0xf600
14988c2ecf20Sopenharmony_ci#define STB0899_INVERT_RES			(0x01 << 7)
14998c2ecf20Sopenharmony_ci#define STB0899_OFFST_INVERT_RES		7
15008c2ecf20Sopenharmony_ci#define STB0899_WIDTH_INVERT_RES		1
15018c2ecf20Sopenharmony_ci#define STB0899_FORCE_ACCEPTED			(0x01 << 6)
15028c2ecf20Sopenharmony_ci#define STB0899_OFFST_FORCE_ACCEPTED		6
15038c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FORCE_ACCEPTED		1
15048c2ecf20Sopenharmony_ci#define STB0899_FILTER_EN			(0x01 << 5)
15058c2ecf20Sopenharmony_ci#define STB0899_OFFST_FILTER_EN			5
15068c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FILTER_EN			1
15078c2ecf20Sopenharmony_ci#define STB0899_LOCKFALL_THRESH			(0x01 << 4)
15088c2ecf20Sopenharmony_ci#define STB0899_OFFST_LOCKFALL_THRESH		4
15098c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LOCKFALL_THRESH		1
15108c2ecf20Sopenharmony_ci#define STB0899_HYST_EN				(0x01 << 3)
15118c2ecf20Sopenharmony_ci#define STB0899_OFFST_HYST_EN			3
15128c2ecf20Sopenharmony_ci#define STB0899_WIDTH_HYST_EN			1
15138c2ecf20Sopenharmony_ci#define STB0899_HYST_SWRST			(0x01 << 2)
15148c2ecf20Sopenharmony_ci#define STB0899_OFFST_HYST_SWRST		2
15158c2ecf20Sopenharmony_ci#define STB0899_WIDTH_HYST_SWRST		1
15168c2ecf20Sopenharmony_ci#define STB0899_ALGO_EN				(0x01 << 1)
15178c2ecf20Sopenharmony_ci#define STB0899_OFFST_ALGO_EN			1
15188c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ALGO_EN			1
15198c2ecf20Sopenharmony_ci#define STB0899_ALGO_SWRST			(0x01 << 0)
15208c2ecf20Sopenharmony_ci#define STB0899_OFFST_ALGO_SWRST		0
15218c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ALGO_SWRST		1
15228c2ecf20Sopenharmony_ci
15238c2ecf20Sopenharmony_ci#define STB0899_PDELCTRL2			0xf601
15248c2ecf20Sopenharmony_ci#define STB0899_BBHCTRL1			0xf602
15258c2ecf20Sopenharmony_ci#define STB0899_BBHCTRL2			0xf603
15268c2ecf20Sopenharmony_ci#define STB0899_HYSTTHRESH			0xf604
15278c2ecf20Sopenharmony_ci
15288c2ecf20Sopenharmony_ci#define STB0899_MATCSTM				0xf605
15298c2ecf20Sopenharmony_ci#define STB0899_MATCSTL				0xf606
15308c2ecf20Sopenharmony_ci#define STB0899_UPLCSTM				0xf607
15318c2ecf20Sopenharmony_ci#define STB0899_UPLCSTL				0xf608
15328c2ecf20Sopenharmony_ci#define STB0899_DFLCSTM				0xf609
15338c2ecf20Sopenharmony_ci#define STB0899_DFLCSTL				0xf60a
15348c2ecf20Sopenharmony_ci#define STB0899_SYNCCST				0xf60b
15358c2ecf20Sopenharmony_ci#define STB0899_SYNCDCSTM			0xf60c
15368c2ecf20Sopenharmony_ci#define STB0899_SYNCDCSTL			0xf60d
15378c2ecf20Sopenharmony_ci#define STB0899_ISI_ENTRY			0xf60e
15388c2ecf20Sopenharmony_ci#define STB0899_ISI_BIT_EN			0xf60f
15398c2ecf20Sopenharmony_ci#define STB0899_MATSTRM				0xf610
15408c2ecf20Sopenharmony_ci#define STB0899_MATSTRL				0xf611
15418c2ecf20Sopenharmony_ci#define STB0899_UPLSTRM				0xf612
15428c2ecf20Sopenharmony_ci#define STB0899_UPLSTRL				0xf613
15438c2ecf20Sopenharmony_ci#define STB0899_DFLSTRM				0xf614
15448c2ecf20Sopenharmony_ci#define STB0899_DFLSTRL				0xf615
15458c2ecf20Sopenharmony_ci#define STB0899_SYNCSTR				0xf616
15468c2ecf20Sopenharmony_ci#define STB0899_SYNCDSTRM			0xf617
15478c2ecf20Sopenharmony_ci#define STB0899_SYNCDSTRL			0xf618
15488c2ecf20Sopenharmony_ci
15498c2ecf20Sopenharmony_ci#define STB0899_CFGPDELSTATUS1			0xf619
15508c2ecf20Sopenharmony_ci#define STB0899_BADDFL				(0x01 << 6)
15518c2ecf20Sopenharmony_ci#define STB0899_OFFST_BADDFL			6
15528c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BADDFL			1
15538c2ecf20Sopenharmony_ci#define STB0899_CONTINUOUS_STREAM		(0x01 << 5)
15548c2ecf20Sopenharmony_ci#define STB0899_OFFST_CONTINUOUS_STREAM		5
15558c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CONTINUOUS_STREAM		1
15568c2ecf20Sopenharmony_ci#define STB0899_ACCEPTED_STREAM			(0x01 << 4)
15578c2ecf20Sopenharmony_ci#define STB0899_OFFST_ACCEPTED_STREAM		4
15588c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ACCEPTED_STREAM		1
15598c2ecf20Sopenharmony_ci#define STB0899_BCH_ERRFLAG			(0x01 << 3)
15608c2ecf20Sopenharmony_ci#define STB0899_OFFST_BCH_ERRFLAG		3
15618c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BCH_ERRFLAG		1
15628c2ecf20Sopenharmony_ci#define STB0899_CRCRES				(0x01 << 2)
15638c2ecf20Sopenharmony_ci#define STB0899_OFFST_CRCRES			2
15648c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CRCRES			1
15658c2ecf20Sopenharmony_ci#define STB0899_CFGPDELSTATUS_LOCK		(0x01 << 1)
15668c2ecf20Sopenharmony_ci#define STB0899_OFFST_CFGPDELSTATUS_LOCK	1
15678c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CFGPDELSTATUS_LOCK	1
15688c2ecf20Sopenharmony_ci#define STB0899_1STLOCK				(0x01 << 0)
15698c2ecf20Sopenharmony_ci#define STB0899_OFFST_1STLOCK			0
15708c2ecf20Sopenharmony_ci#define STB0899_WIDTH_1STLOCK			1
15718c2ecf20Sopenharmony_ci
15728c2ecf20Sopenharmony_ci#define STB0899_CFGPDELSTATUS2			0xf61a
15738c2ecf20Sopenharmony_ci#define STB0899_BBFERRORM			0xf61b
15748c2ecf20Sopenharmony_ci#define STB0899_BBFERRORL			0xf61c
15758c2ecf20Sopenharmony_ci#define STB0899_UPKTERRORM			0xf61d
15768c2ecf20Sopenharmony_ci#define STB0899_UPKTERRORL			0xf61e
15778c2ecf20Sopenharmony_ci
15788c2ecf20Sopenharmony_ci#define STB0899_TSTCK				0xff10
15798c2ecf20Sopenharmony_ci
15808c2ecf20Sopenharmony_ci#define STB0899_TSTRES				0xff11
15818c2ecf20Sopenharmony_ci#define STB0899_FRESLDPC			(0x01 << 7)
15828c2ecf20Sopenharmony_ci#define STB0899_OFFST_FRESLDPC			7
15838c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FRESLDPC			1
15848c2ecf20Sopenharmony_ci#define STB0899_FRESRS				(0x01 << 6)
15858c2ecf20Sopenharmony_ci#define STB0899_OFFST_FRESRS			6
15868c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FRESRS			1
15878c2ecf20Sopenharmony_ci#define STB0899_FRESVIT				(0x01 << 5)
15888c2ecf20Sopenharmony_ci#define STB0899_OFFST_FRESVIT			5
15898c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FRESVIT			1
15908c2ecf20Sopenharmony_ci#define STB0899_FRESMAS1_2			(0x01 << 4)
15918c2ecf20Sopenharmony_ci#define STB0899_OFFST_FRESMAS1_2		4
15928c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FRESMAS1_2		1
15938c2ecf20Sopenharmony_ci#define STB0899_FRESACS				(0x01 << 3)
15948c2ecf20Sopenharmony_ci#define STB0899_OFFST_FRESACS			3
15958c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FRESACS			1
15968c2ecf20Sopenharmony_ci#define STB0899_FRESSYM				(0x01 << 2)
15978c2ecf20Sopenharmony_ci#define STB0899_OFFST_FRESSYM			2
15988c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FRESSYM			1
15998c2ecf20Sopenharmony_ci#define STB0899_FRESMAS				(0x01 << 1)
16008c2ecf20Sopenharmony_ci#define STB0899_OFFST_FRESMAS			1
16018c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FRESMAS			1
16028c2ecf20Sopenharmony_ci#define STB0899_FRESINT				(0x01 << 0)
16038c2ecf20Sopenharmony_ci#define STB0899_OFFST_FRESINIT			0
16048c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FRESINIT			1
16058c2ecf20Sopenharmony_ci
16068c2ecf20Sopenharmony_ci#define STB0899_TSTOUT				0xff12
16078c2ecf20Sopenharmony_ci#define STB0899_EN_SIGNATURE			(0x01 << 7)
16088c2ecf20Sopenharmony_ci#define STB0899_OFFST_EN_SIGNATURE		7
16098c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EN_SIGNATURE		1
16108c2ecf20Sopenharmony_ci#define STB0899_BCLK_CLK			(0x01 << 6)
16118c2ecf20Sopenharmony_ci#define STB0899_OFFST_BCLK_CLK			6
16128c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BCLK_CLK			1
16138c2ecf20Sopenharmony_ci#define STB0899_SGNL_OUT			(0x01 << 5)
16148c2ecf20Sopenharmony_ci#define STB0899_OFFST_SGNL_OUT			5
16158c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SGNL_OUT			1
16168c2ecf20Sopenharmony_ci#define STB0899_TS				(0x01 << 4)
16178c2ecf20Sopenharmony_ci#define STB0899_OFFST_TS			4
16188c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TS			1
16198c2ecf20Sopenharmony_ci#define STB0899_CTEST				(0x01 << 0)
16208c2ecf20Sopenharmony_ci#define STB0899_OFFST_CTEST			0
16218c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CTEST			1
16228c2ecf20Sopenharmony_ci
16238c2ecf20Sopenharmony_ci#define STB0899_TSTIN				0xff13
16248c2ecf20Sopenharmony_ci#define STB0899_TEST_IN				(0x01 << 7)
16258c2ecf20Sopenharmony_ci#define STB0899_OFFST_TEST_IN			7
16268c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TEST_IN			1
16278c2ecf20Sopenharmony_ci#define STB0899_EN_ADC				(0x01 << 6)
16288c2ecf20Sopenharmony_ci#define STB0899_OFFST_EN_ADC			6
16298c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ENADC			1
16308c2ecf20Sopenharmony_ci#define STB0899_SGN_ADC				(0x01 << 5)
16318c2ecf20Sopenharmony_ci#define STB0899_OFFST_SGN_ADC			5
16328c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SGN_ADC			1
16338c2ecf20Sopenharmony_ci#define STB0899_BCLK_IN				(0x01 << 4)
16348c2ecf20Sopenharmony_ci#define STB0899_OFFST_BCLK_IN			4
16358c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BCLK_IN			1
16368c2ecf20Sopenharmony_ci#define STB0899_JETONIN_MODE			(0x01 << 3)
16378c2ecf20Sopenharmony_ci#define STB0899_OFFST_JETONIN_MODE		3
16388c2ecf20Sopenharmony_ci#define STB0899_WIDTH_JETONIN_MODE		1
16398c2ecf20Sopenharmony_ci#define STB0899_BCLK_VALUE			(0x01 << 2)
16408c2ecf20Sopenharmony_ci#define STB0899_OFFST_BCLK_VALUE		2
16418c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BCLK_VALUE		1
16428c2ecf20Sopenharmony_ci#define STB0899_SGNRST_T12			(0x01 << 1)
16438c2ecf20Sopenharmony_ci#define STB0899_OFFST_SGNRST_T12		1
16448c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SGNRST_T12		1
16458c2ecf20Sopenharmony_ci#define STB0899_LOWSP_ENAX			(0x01 << 0)
16468c2ecf20Sopenharmony_ci#define STB0899_OFFST_LOWSP_ENAX		0
16478c2ecf20Sopenharmony_ci#define STB0899_WIDTH_LOWSP_ENAX		1
16488c2ecf20Sopenharmony_ci
16498c2ecf20Sopenharmony_ci#define STB0899_TSTSYS				0xff14
16508c2ecf20Sopenharmony_ci#define STB0899_TSTCHIP				0xff15
16518c2ecf20Sopenharmony_ci#define STB0899_TSTFREE				0xff16
16528c2ecf20Sopenharmony_ci#define STB0899_TSTI2C				0xff17
16538c2ecf20Sopenharmony_ci#define STB0899_BITSPEEDM			0xff1c
16548c2ecf20Sopenharmony_ci#define STB0899_BITSPEEDL			0xff1d
16558c2ecf20Sopenharmony_ci#define STB0899_TBUSBIT				0xff1e
16568c2ecf20Sopenharmony_ci#define STB0899_TSTDIS				0xff24
16578c2ecf20Sopenharmony_ci#define STB0899_TSTDISRX			0xff25
16588c2ecf20Sopenharmony_ci#define STB0899_TSTJETON			0xff28
16598c2ecf20Sopenharmony_ci#define STB0899_TSTDCADJ			0xff40
16608c2ecf20Sopenharmony_ci#define STB0899_TSTAGC1				0xff41
16618c2ecf20Sopenharmony_ci#define STB0899_TSTAGC1N			0xff42
16628c2ecf20Sopenharmony_ci#define STB0899_TSTPOLYPH			0xff48
16638c2ecf20Sopenharmony_ci#define STB0899_TSTR				0xff49
16648c2ecf20Sopenharmony_ci#define STB0899_TSTAGC2				0xff4a
16658c2ecf20Sopenharmony_ci#define STB0899_TSTCTL1				0xff4b
16668c2ecf20Sopenharmony_ci#define STB0899_TSTCTL2				0xff4c
16678c2ecf20Sopenharmony_ci#define STB0899_TSTCTL3				0xff4d
16688c2ecf20Sopenharmony_ci#define STB0899_TSTDEMAP			0xff50
16698c2ecf20Sopenharmony_ci#define STB0899_TSTDEMAP2			0xff51
16708c2ecf20Sopenharmony_ci#define STB0899_TSTDEMMON			0xff52
16718c2ecf20Sopenharmony_ci#define STB0899_TSTRATE				0xff53
16728c2ecf20Sopenharmony_ci#define STB0899_TSTSELOUT			0xff54
16738c2ecf20Sopenharmony_ci#define STB0899_TSYNC				0xff55
16748c2ecf20Sopenharmony_ci#define STB0899_TSTERR				0xff56
16758c2ecf20Sopenharmony_ci#define STB0899_TSTRAM1				0xff58
16768c2ecf20Sopenharmony_ci#define STB0899_TSTVSELOUT			0xff59
16778c2ecf20Sopenharmony_ci#define STB0899_TSTFORCEIN			0xff5a
16788c2ecf20Sopenharmony_ci#define STB0899_TSTRS1				0xff5c
16798c2ecf20Sopenharmony_ci#define STB0899_TSTRS2				0xff5d
16808c2ecf20Sopenharmony_ci#define STB0899_TSTRS3				0xff53
16818c2ecf20Sopenharmony_ci
16828c2ecf20Sopenharmony_ci#define STB0899_INTBUFSTATUS			0xf200
16838c2ecf20Sopenharmony_ci#define STB0899_INTBUFCTRL			0xf201
16848c2ecf20Sopenharmony_ci#define STB0899_PCKLENUL			0xf55e
16858c2ecf20Sopenharmony_ci#define STB0899_PCKLENLL			0xf55f
16868c2ecf20Sopenharmony_ci#define STB0899_RSPCKLEN			0xf560
16878c2ecf20Sopenharmony_ci
16888c2ecf20Sopenharmony_ci/*	2 registers	*/
16898c2ecf20Sopenharmony_ci#define STB0899_SYNCDCST			0xf60c
16908c2ecf20Sopenharmony_ci
16918c2ecf20Sopenharmony_ci/*	DiSEqC	*/
16928c2ecf20Sopenharmony_ci#define STB0899_DISCNTRL1			0xf0a0
16938c2ecf20Sopenharmony_ci#define STB0899_TIMOFF				(0x01 << 7)
16948c2ecf20Sopenharmony_ci#define STB0899_OFFST_TIMOFF			7
16958c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TIMOFF			1
16968c2ecf20Sopenharmony_ci#define STB0899_DISEQCRESET			(0x01 << 6)
16978c2ecf20Sopenharmony_ci#define STB0899_OFFST_DISEQCRESET		6
16988c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DISEQCRESET		1
16998c2ecf20Sopenharmony_ci#define STB0899_TIMCMD				(0x03 << 4)
17008c2ecf20Sopenharmony_ci#define STB0899_OFFST_TIMCMD			4
17018c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TIMCMD			2
17028c2ecf20Sopenharmony_ci#define STB0899_DISPRECHARGE			(0x01 << 2)
17038c2ecf20Sopenharmony_ci#define STB0899_OFFST_DISPRECHARGE		2
17048c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DISPRECHARGE		1
17058c2ecf20Sopenharmony_ci#define STB0899_DISEQCMODE			(0x03 << 0)
17068c2ecf20Sopenharmony_ci#define STB0899_OFFST_DISEQCMODE		0
17078c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DISEQCMODE		2
17088c2ecf20Sopenharmony_ci
17098c2ecf20Sopenharmony_ci#define STB0899_DISCNTRL2			0xf0a1
17108c2ecf20Sopenharmony_ci#define STB0899_RECEIVER_ON			(0x01 << 7)
17118c2ecf20Sopenharmony_ci#define STB0899_OFFST_RECEIVER_ON		7
17128c2ecf20Sopenharmony_ci#define STB0899_WIDTH_RECEIVER_ON		1
17138c2ecf20Sopenharmony_ci#define STB0899_IGNO_SHORT_22K			(0x01 << 6)
17148c2ecf20Sopenharmony_ci#define STB0899_OFFST_IGNO_SHORT_22K		6
17158c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IGNO_SHORT_22K		1
17168c2ecf20Sopenharmony_ci#define STB0899_ONECHIP_TRX			(0x01 << 5)
17178c2ecf20Sopenharmony_ci#define STB0899_OFFST_ONECHIP_TRX		5
17188c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ONECHIP_TRX		1
17198c2ecf20Sopenharmony_ci#define STB0899_EXT_ENVELOP			(0x01 << 4)
17208c2ecf20Sopenharmony_ci#define STB0899_OFFST_EXT_ENVELOP		4
17218c2ecf20Sopenharmony_ci#define STB0899_WIDTH_EXT_ENVELOP		1
17228c2ecf20Sopenharmony_ci#define STB0899_PIN_SELECT			(0x03 << 2)
17238c2ecf20Sopenharmony_ci#define STB0899_OFFST_PIN_SELCT			2
17248c2ecf20Sopenharmony_ci#define STB0899_WIDTH_PIN_SELCT			2
17258c2ecf20Sopenharmony_ci#define STB0899_IRQ_RXEND			(0x01 << 1)
17268c2ecf20Sopenharmony_ci#define STB0899_OFFST_IRQ_RXEND			1
17278c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IRQ_RXEND			1
17288c2ecf20Sopenharmony_ci#define STB0899_IRQ_4NBYTES			(0x01 << 0)
17298c2ecf20Sopenharmony_ci#define STB0899_OFFST_IRQ_4NBYTES		0
17308c2ecf20Sopenharmony_ci#define STB0899_WIDTH_IRQ_4NBYTES		1
17318c2ecf20Sopenharmony_ci
17328c2ecf20Sopenharmony_ci#define STB0899_DISRX_ST0			0xf0a4
17338c2ecf20Sopenharmony_ci#define STB0899_RXEND				(0x01 << 7)
17348c2ecf20Sopenharmony_ci#define STB0899_OFFST_RXEND			7
17358c2ecf20Sopenharmony_ci#define STB0899_WIDTH_RXEND			1
17368c2ecf20Sopenharmony_ci#define STB0899_RXACTIVE			(0x01 << 6)
17378c2ecf20Sopenharmony_ci#define STB0899_OFFST_RXACTIVE			6
17388c2ecf20Sopenharmony_ci#define STB0899_WIDTH_RXACTIVE			1
17398c2ecf20Sopenharmony_ci#define STB0899_SHORT22K			(0x01 << 5)
17408c2ecf20Sopenharmony_ci#define STB0899_OFFST_SHORT22K			5
17418c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SHORT22K			1
17428c2ecf20Sopenharmony_ci#define STB0899_CONTTONE			(0x01 << 4)
17438c2ecf20Sopenharmony_ci#define STB0899_OFFST_CONTTONE			4
17448c2ecf20Sopenharmony_ci#define STB0899_WIDTH_CONTONE			1
17458c2ecf20Sopenharmony_ci#define STB0899_4BFIFOREDY			(0x01 << 3)
17468c2ecf20Sopenharmony_ci#define STB0899_OFFST_4BFIFOREDY		3
17478c2ecf20Sopenharmony_ci#define STB0899_WIDTH_4BFIFOREDY		1
17488c2ecf20Sopenharmony_ci#define STB0899_FIFOEMPTY			(0x01 << 2)
17498c2ecf20Sopenharmony_ci#define STB0899_OFFST_FIFOEMPTY			2
17508c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FIFOEMPTY			1
17518c2ecf20Sopenharmony_ci#define STB0899_ABORTTRX			(0x01 << 0)
17528c2ecf20Sopenharmony_ci#define STB0899_OFFST_ABORTTRX			0
17538c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ABORTTRX			1
17548c2ecf20Sopenharmony_ci
17558c2ecf20Sopenharmony_ci#define STB0899_DISRX_ST1			0xf0a5
17568c2ecf20Sopenharmony_ci#define STB0899_RXFAIL				(0x01 << 7)
17578c2ecf20Sopenharmony_ci#define STB0899_OFFST_RXFAIL			7
17588c2ecf20Sopenharmony_ci#define STB0899_WIDTH_RXFAIL			1
17598c2ecf20Sopenharmony_ci#define STB0899_FIFOPFAIL			(0x01 << 6)
17608c2ecf20Sopenharmony_ci#define STB0899_OFFST_FIFOPFAIL			6
17618c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FIFOPFAIL			1
17628c2ecf20Sopenharmony_ci#define STB0899_RXNONBYTES			(0x01 << 5)
17638c2ecf20Sopenharmony_ci#define STB0899_OFFST_RXNONBYTES		5
17648c2ecf20Sopenharmony_ci#define STB0899_WIDTH_RXNONBYTES		1
17658c2ecf20Sopenharmony_ci#define STB0899_FIFOOVF				(0x01 << 4)
17668c2ecf20Sopenharmony_ci#define STB0899_OFFST_FIFOOVF			4
17678c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FIFOOVF			1
17688c2ecf20Sopenharmony_ci#define STB0899_FIFOBYTENBR			(0x0f << 0)
17698c2ecf20Sopenharmony_ci#define STB0899_OFFST_FIFOBYTENBR		0
17708c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FIFOBYTENBR		4
17718c2ecf20Sopenharmony_ci
17728c2ecf20Sopenharmony_ci#define STB0899_DISPARITY			0xf0a6
17738c2ecf20Sopenharmony_ci
17748c2ecf20Sopenharmony_ci#define STB0899_DISFIFO				0xf0a7
17758c2ecf20Sopenharmony_ci
17768c2ecf20Sopenharmony_ci#define STB0899_DISSTATUS			0xf0a8
17778c2ecf20Sopenharmony_ci#define STB0899_FIFOFULL			(0x01 << 6)
17788c2ecf20Sopenharmony_ci#define STB0899_OFFST_FIFOFULL			6
17798c2ecf20Sopenharmony_ci#define STB0899_WIDTH_FIFOFULL			1
17808c2ecf20Sopenharmony_ci#define STB0899_TXIDLE				(0x01 << 5)
17818c2ecf20Sopenharmony_ci#define STB0899_OFFST_TXIDLE			5
17828c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TXIDLE			1
17838c2ecf20Sopenharmony_ci#define STB0899_GAPBURST			(0x01 << 4)
17848c2ecf20Sopenharmony_ci#define STB0899_OFFST_GAPBURST			4
17858c2ecf20Sopenharmony_ci#define STB0899_WIDTH_GAPBURST			1
17868c2ecf20Sopenharmony_ci#define STB0899_TXFIFOBYTES			(0x0f << 0)
17878c2ecf20Sopenharmony_ci#define STB0899_OFFST_TXFIFOBYTES		0
17888c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TXFIFOBYTES		4
17898c2ecf20Sopenharmony_ci#define STB0899_DISF22				0xf0a9
17908c2ecf20Sopenharmony_ci
17918c2ecf20Sopenharmony_ci#define STB0899_DISF22RX			0xf0aa
17928c2ecf20Sopenharmony_ci
17938c2ecf20Sopenharmony_ci/*	General Purpose	*/
17948c2ecf20Sopenharmony_ci#define STB0899_SYSREG				0xf101
17958c2ecf20Sopenharmony_ci#define STB0899_ACRPRESC			0xf110
17968c2ecf20Sopenharmony_ci#define STB0899_OFFST_RSVD2			7
17978c2ecf20Sopenharmony_ci#define STB0899_WIDTH_RSVD2			1
17988c2ecf20Sopenharmony_ci#define STB0899_OFFST_ACRPRESC			4
17998c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ACRPRESC			3
18008c2ecf20Sopenharmony_ci#define STB0899_OFFST_RSVD1			3
18018c2ecf20Sopenharmony_ci#define STB0899_WIDTH_RSVD1			1
18028c2ecf20Sopenharmony_ci#define STB0899_OFFST_ACRPRESC2			0
18038c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ACRPRESC2			3
18048c2ecf20Sopenharmony_ci
18058c2ecf20Sopenharmony_ci#define STB0899_ACRDIV1				0xf111
18068c2ecf20Sopenharmony_ci#define STB0899_ACRDIV2				0xf112
18078c2ecf20Sopenharmony_ci#define STB0899_DACR1				0xf113
18088c2ecf20Sopenharmony_ci#define STB0899_DACR2				0xf114
18098c2ecf20Sopenharmony_ci#define STB0899_OUTCFG				0xf11c
18108c2ecf20Sopenharmony_ci#define STB0899_MODECFG				0xf11d
18118c2ecf20Sopenharmony_ci#define STB0899_NCOARSE				0xf1b3
18128c2ecf20Sopenharmony_ci
18138c2ecf20Sopenharmony_ci#define STB0899_SYNTCTRL			0xf1b6
18148c2ecf20Sopenharmony_ci#define STB0899_STANDBY				(0x01 << 7)
18158c2ecf20Sopenharmony_ci#define STB0899_OFFST_STANDBY			7
18168c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STANDBY			1
18178c2ecf20Sopenharmony_ci#define STB0899_BYPASSPLL			(0x01 << 6)
18188c2ecf20Sopenharmony_ci#define STB0899_OFFST_BYPASSPLL			6
18198c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BYPASSPLL			1
18208c2ecf20Sopenharmony_ci#define STB0899_SEL1XRATIO			(0x01 << 5)
18218c2ecf20Sopenharmony_ci#define STB0899_OFFST_SEL1XRATIO		5
18228c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SEL1XRATIO		1
18238c2ecf20Sopenharmony_ci#define STB0899_SELOSCI				(0x01 << 1)
18248c2ecf20Sopenharmony_ci#define STB0899_OFFST_SELOSCI			1
18258c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SELOSCI			1
18268c2ecf20Sopenharmony_ci
18278c2ecf20Sopenharmony_ci#define STB0899_FILTCTRL			0xf1b7
18288c2ecf20Sopenharmony_ci#define STB0899_SYSCTRL				0xf1b8
18298c2ecf20Sopenharmony_ci
18308c2ecf20Sopenharmony_ci#define STB0899_STOPCLK1			0xf1c2
18318c2ecf20Sopenharmony_ci#define STB0899_STOP_CKINTBUF108		(0x01 << 7)
18328c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOP_CKINTBUF108		7
18338c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOP_CKINTBUF108		1
18348c2ecf20Sopenharmony_ci#define STB0899_STOP_CKINTBUF216		(0x01 << 6)
18358c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOP_CKINTBUF216		6
18368c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOP_CKINTBUF216		1
18378c2ecf20Sopenharmony_ci#define STB0899_STOP_CHK8PSK			(0x01 << 5)
18388c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOP_CHK8PSK		5
18398c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOP_CHK8PSK		1
18408c2ecf20Sopenharmony_ci#define STB0899_STOP_CKFEC108			(0x01 << 4)
18418c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOP_CKFEC108		4
18428c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOP_CKFEC108		1
18438c2ecf20Sopenharmony_ci#define STB0899_STOP_CKFEC216			(0x01 << 3)
18448c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOP_CKFEC216		3
18458c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOP_CKFEC216		1
18468c2ecf20Sopenharmony_ci#define STB0899_STOP_CKCORE216			(0x01 << 2)
18478c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOP_CKCORE216		2
18488c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOP_CKCORE216		1
18498c2ecf20Sopenharmony_ci#define STB0899_STOP_CKADCI108			(0x01 << 1)
18508c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOP_CKADCI108		1
18518c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOP_CKADCI108		1
18528c2ecf20Sopenharmony_ci#define STB0899_STOP_INVCKADCI108		(0x01 << 0)
18538c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOP_INVCKADCI108		0
18548c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOP_INVCKADCI108		1
18558c2ecf20Sopenharmony_ci
18568c2ecf20Sopenharmony_ci#define STB0899_STOPCLK2			0xf1c3
18578c2ecf20Sopenharmony_ci#define STB0899_STOP_CKS2DMD108			(0x01 << 2)
18588c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOP_CKS2DMD108		2
18598c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOP_CKS2DMD108		1
18608c2ecf20Sopenharmony_ci#define STB0899_STOP_CKPKDLIN108		(0x01 << 1)
18618c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOP_CKPKDLIN108		1
18628c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOP_CKPKDLIN108		1
18638c2ecf20Sopenharmony_ci#define STB0899_STOP_CKPKDLIN216		(0x01 << 0)
18648c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOP_CKPKDLIN216		0
18658c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOP_CKPKDLIN216		1
18668c2ecf20Sopenharmony_ci
18678c2ecf20Sopenharmony_ci#define STB0899_TSTTNR1				0xf1e0
18688c2ecf20Sopenharmony_ci#define STB0899_BYPASS_ADC			(0x01 << 7)
18698c2ecf20Sopenharmony_ci#define STB0899_OFFST_BYPASS_ADC		7
18708c2ecf20Sopenharmony_ci#define STB0899_WIDTH_BYPASS_ADC		1
18718c2ecf20Sopenharmony_ci#define STB0899_INVADCICKOUT			(0x01 << 6)
18728c2ecf20Sopenharmony_ci#define STB0899_OFFST_INVADCICKOUT		6
18738c2ecf20Sopenharmony_ci#define STB0899_WIDTH_INVADCICKOUT		1
18748c2ecf20Sopenharmony_ci#define STB0899_ADCTEST_VOLTAGE			(0x03 << 4)
18758c2ecf20Sopenharmony_ci#define STB0899_OFFST_ADCTEST_VOLTAGE		4
18768c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ADCTEST_VOLTAGE		1
18778c2ecf20Sopenharmony_ci#define STB0899_ADC_RESET			(0x01 << 3)
18788c2ecf20Sopenharmony_ci#define STB0899_OFFST_ADC_RESET			3
18798c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ADC_RESET			1
18808c2ecf20Sopenharmony_ci#define STB0899_TSTTNR1_2			(0x01 << 2)
18818c2ecf20Sopenharmony_ci#define STB0899_OFFST_TSTTNR1_2			2
18828c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TSTTNR1_2			1
18838c2ecf20Sopenharmony_ci#define STB0899_ADCPON				(0x01 << 1)
18848c2ecf20Sopenharmony_ci#define STB0899_OFFST_ADCPON			1
18858c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ADCPON			1
18868c2ecf20Sopenharmony_ci#define STB0899_ADCIN_MODE			(0x01 << 0)
18878c2ecf20Sopenharmony_ci#define STB0899_OFFST_ADCIN_MODE		0
18888c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ADCIN_MODE		1
18898c2ecf20Sopenharmony_ci
18908c2ecf20Sopenharmony_ci#define STB0899_TSTTNR2				0xf1e1
18918c2ecf20Sopenharmony_ci#define STB0899_TSTTNR2_7			(0x01 << 7)
18928c2ecf20Sopenharmony_ci#define STB0899_OFFST_TSTTNR2_7			7
18938c2ecf20Sopenharmony_ci#define STB0899_WIDTH_TSTTNR2_7			1
18948c2ecf20Sopenharmony_ci#define STB0899_NOT_DISRX_WIRED			(0x01 << 6)
18958c2ecf20Sopenharmony_ci#define STB0899_OFFST_NOT_DISRX_WIRED		6
18968c2ecf20Sopenharmony_ci#define STB0899_WIDTH_NOT_DISRX_WIRED		1
18978c2ecf20Sopenharmony_ci#define STB0899_DISEQC_DCURRENT			(0x01 << 5)
18988c2ecf20Sopenharmony_ci#define STB0899_OFFST_DISEQC_DCURRENT		5
18998c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DISEQC_DCURRENT		1
19008c2ecf20Sopenharmony_ci#define STB0899_DISEQC_ZCURRENT			(0x01 << 4)
19018c2ecf20Sopenharmony_ci#define STB0899_OFFST_DISEQC_ZCURRENT		4
19028c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DISEQC_ZCURRENT		1
19038c2ecf20Sopenharmony_ci#define STB0899_DISEQC_SINC_SOURCE		(0x03 << 2)
19048c2ecf20Sopenharmony_ci#define STB0899_OFFST_DISEQC_SINC_SOURCE	2
19058c2ecf20Sopenharmony_ci#define STB0899_WIDTH_DISEQC_SINC_SOURCE	2
19068c2ecf20Sopenharmony_ci#define STB0899_SELIQSRC			(0x03 << 0)
19078c2ecf20Sopenharmony_ci#define STB0899_OFFST_SELIQSRC			0
19088c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SELIQSRC			2
19098c2ecf20Sopenharmony_ci
19108c2ecf20Sopenharmony_ci#define STB0899_TSTTNR3				0xf1e2
19118c2ecf20Sopenharmony_ci
19128c2ecf20Sopenharmony_ci#define STB0899_I2CCFG				0xf129
19138c2ecf20Sopenharmony_ci#define STB0899_I2CCFGRSVD			(0x0f << 4)
19148c2ecf20Sopenharmony_ci#define STB0899_OFFST_I2CCFGRSVD		4
19158c2ecf20Sopenharmony_ci#define STB0899_WIDTH_I2CCFGRSVD		4
19168c2ecf20Sopenharmony_ci#define STB0899_I2CFASTMODE			(0x01 << 3)
19178c2ecf20Sopenharmony_ci#define STB0899_OFFST_I2CFASTMODE		3
19188c2ecf20Sopenharmony_ci#define STB0899_WIDTH_I2CFASTMODE		1
19198c2ecf20Sopenharmony_ci#define STB0899_STATUSWR			(0x01 << 2)
19208c2ecf20Sopenharmony_ci#define STB0899_OFFST_STATUSWR			2
19218c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STATUSWR			1
19228c2ecf20Sopenharmony_ci#define STB0899_I2CADDRINC			(0x03 << 0)
19238c2ecf20Sopenharmony_ci#define STB0899_OFFST_I2CADDRINC		0
19248c2ecf20Sopenharmony_ci#define STB0899_WIDTH_I2CADDRINC		2
19258c2ecf20Sopenharmony_ci
19268c2ecf20Sopenharmony_ci#define STB0899_I2CRPT				0xf12a
19278c2ecf20Sopenharmony_ci#define STB0899_I2CTON				(0x01 << 7)
19288c2ecf20Sopenharmony_ci#define STB0899_OFFST_I2CTON			7
19298c2ecf20Sopenharmony_ci#define STB0899_WIDTH_I2CTON			1
19308c2ecf20Sopenharmony_ci#define STB0899_ENARPTLEVEL			(0x01 << 6)
19318c2ecf20Sopenharmony_ci#define STB0899_OFFST_ENARPTLEVEL		6
19328c2ecf20Sopenharmony_ci#define STB0899_WIDTH_ENARPTLEVEL		2
19338c2ecf20Sopenharmony_ci#define STB0899_SCLTDELAY			(0x01 << 3)
19348c2ecf20Sopenharmony_ci#define STB0899_OFFST_SCLTDELAY			3
19358c2ecf20Sopenharmony_ci#define STB0899_WIDTH_SCLTDELAY			1
19368c2ecf20Sopenharmony_ci#define STB0899_STOPENA				(0x01 << 2)
19378c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOPENA			2
19388c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOPENA			1
19398c2ecf20Sopenharmony_ci#define STB0899_STOPSDAT2SDA			(0x01 << 1)
19408c2ecf20Sopenharmony_ci#define STB0899_OFFST_STOPSDAT2SDA		1
19418c2ecf20Sopenharmony_ci#define STB0899_WIDTH_STOPSDAT2SDA		1
19428c2ecf20Sopenharmony_ci
19438c2ecf20Sopenharmony_ci#define STB0899_IOPVALUE8			0xf136
19448c2ecf20Sopenharmony_ci#define STB0899_IOPVALUE7			0xf137
19458c2ecf20Sopenharmony_ci#define STB0899_IOPVALUE6			0xf138
19468c2ecf20Sopenharmony_ci#define STB0899_IOPVALUE5			0xf139
19478c2ecf20Sopenharmony_ci#define STB0899_IOPVALUE4			0xf13a
19488c2ecf20Sopenharmony_ci#define STB0899_IOPVALUE3			0xf13b
19498c2ecf20Sopenharmony_ci#define STB0899_IOPVALUE2			0xf13c
19508c2ecf20Sopenharmony_ci#define STB0899_IOPVALUE1			0xf13d
19518c2ecf20Sopenharmony_ci#define STB0899_IOPVALUE0			0xf13e
19528c2ecf20Sopenharmony_ci
19538c2ecf20Sopenharmony_ci#define STB0899_GPIO00CFG			0xf140
19548c2ecf20Sopenharmony_ci
19558c2ecf20Sopenharmony_ci#define STB0899_GPIO01CFG			0xf141
19568c2ecf20Sopenharmony_ci#define STB0899_GPIO02CFG			0xf142
19578c2ecf20Sopenharmony_ci#define STB0899_GPIO03CFG			0xf143
19588c2ecf20Sopenharmony_ci#define STB0899_GPIO04CFG			0xf144
19598c2ecf20Sopenharmony_ci#define STB0899_GPIO05CFG			0xf145
19608c2ecf20Sopenharmony_ci#define STB0899_GPIO06CFG			0xf146
19618c2ecf20Sopenharmony_ci#define STB0899_GPIO07CFG			0xf147
19628c2ecf20Sopenharmony_ci#define STB0899_GPIO08CFG			0xf148
19638c2ecf20Sopenharmony_ci#define STB0899_GPIO09CFG			0xf149
19648c2ecf20Sopenharmony_ci#define STB0899_GPIO10CFG			0xf14a
19658c2ecf20Sopenharmony_ci#define STB0899_GPIO11CFG			0xf14b
19668c2ecf20Sopenharmony_ci#define STB0899_GPIO12CFG			0xf14c
19678c2ecf20Sopenharmony_ci#define STB0899_GPIO13CFG			0xf14d
19688c2ecf20Sopenharmony_ci#define STB0899_GPIO14CFG			0xf14e
19698c2ecf20Sopenharmony_ci#define STB0899_GPIO15CFG			0xf14f
19708c2ecf20Sopenharmony_ci#define STB0899_GPIO16CFG			0xf150
19718c2ecf20Sopenharmony_ci#define STB0899_GPIO17CFG			0xf151
19728c2ecf20Sopenharmony_ci#define STB0899_GPIO18CFG			0xf152
19738c2ecf20Sopenharmony_ci#define STB0899_GPIO19CFG			0xf153
19748c2ecf20Sopenharmony_ci#define STB0899_GPIO20CFG			0xf154
19758c2ecf20Sopenharmony_ci
19768c2ecf20Sopenharmony_ci#define STB0899_SDATCFG				0xf155
19778c2ecf20Sopenharmony_ci#define STB0899_SCLTCFG				0xf156
19788c2ecf20Sopenharmony_ci#define STB0899_AGCRFCFG			0xf157
19798c2ecf20Sopenharmony_ci#define STB0899_GPIO22				0xf158	/* AGCBB2CFG	*/
19808c2ecf20Sopenharmony_ci#define STB0899_GPIO21				0xf159  /* AGCBB1CFG	*/
19818c2ecf20Sopenharmony_ci#define STB0899_DIRCLKCFG			0xf15a
19828c2ecf20Sopenharmony_ci#define STB0899_CLKOUT27CFG			0xf15b
19838c2ecf20Sopenharmony_ci#define STB0899_STDBYCFG			0xf15c
19848c2ecf20Sopenharmony_ci#define STB0899_CS0CFG				0xf15d
19858c2ecf20Sopenharmony_ci#define STB0899_CS1CFG				0xf15e
19868c2ecf20Sopenharmony_ci#define STB0899_DISEQCOCFG			0xf15f
19878c2ecf20Sopenharmony_ci
19888c2ecf20Sopenharmony_ci#define STB0899_GPIO32CFG			0xf160
19898c2ecf20Sopenharmony_ci#define STB0899_GPIO33CFG			0xf161
19908c2ecf20Sopenharmony_ci#define STB0899_GPIO34CFG			0xf162
19918c2ecf20Sopenharmony_ci#define STB0899_GPIO35CFG			0xf163
19928c2ecf20Sopenharmony_ci#define STB0899_GPIO36CFG			0xf164
19938c2ecf20Sopenharmony_ci#define STB0899_GPIO37CFG			0xf165
19948c2ecf20Sopenharmony_ci#define STB0899_GPIO38CFG			0xf166
19958c2ecf20Sopenharmony_ci#define STB0899_GPIO39CFG			0xf167
19968c2ecf20Sopenharmony_ci
19978c2ecf20Sopenharmony_ci#define STB0899_IRQSTATUS_3			0xf120
19988c2ecf20Sopenharmony_ci#define STB0899_IRQSTATUS_2			0xf121
19998c2ecf20Sopenharmony_ci#define STB0899_IRQSTATUS_1			0xf122
20008c2ecf20Sopenharmony_ci#define STB0899_IRQSTATUS_0			0xf123
20018c2ecf20Sopenharmony_ci
20028c2ecf20Sopenharmony_ci#define STB0899_IRQMSK_3			0xf124
20038c2ecf20Sopenharmony_ci#define STB0899_IRQMSK_2			0xf125
20048c2ecf20Sopenharmony_ci#define STB0899_IRQMSK_1			0xf126
20058c2ecf20Sopenharmony_ci#define STB0899_IRQMSK_0			0xf127
20068c2ecf20Sopenharmony_ci
20078c2ecf20Sopenharmony_ci#define STB0899_IRQCFG				0xf128
20088c2ecf20Sopenharmony_ci
20098c2ecf20Sopenharmony_ci#define STB0899_GHOSTREG			0xf000
20108c2ecf20Sopenharmony_ci
20118c2ecf20Sopenharmony_ci#define STB0899_S2DEMOD				0xf3fc
20128c2ecf20Sopenharmony_ci#define STB0899_S2FEC				0xfafc
20138c2ecf20Sopenharmony_ci
20148c2ecf20Sopenharmony_ci
20158c2ecf20Sopenharmony_ci#endif
2016