cx231xx-reg.h 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565
  1. /*
  2. cx231xx-reg.h - driver for Conexant Cx23100/101/102
  3. USB video capture devices
  4. Copyright (C) 2008 <srinivasa.deevi at conexant dot com>
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. */
  17. #ifndef _CX231XX_REG_H
  18. #define _CX231XX_REG_H
  19. /*****************************************************************************
  20. * VBI codes *
  21. *****************************************************************************/
  22. #define SAV_ACTIVE_VIDEO_FIELD1 0x80
  23. #define EAV_ACTIVE_VIDEO_FIELD1 0x90
  24. #define SAV_ACTIVE_VIDEO_FIELD2 0xc0
  25. #define EAV_ACTIVE_VIDEO_FIELD2 0xd0
  26. #define SAV_VBLANK_FIELD1 0xa0
  27. #define EAV_VBLANK_FIELD1 0xb0
  28. #define SAV_VBLANK_FIELD2 0xe0
  29. #define EAV_VBLANK_FIELD2 0xf0
  30. #define SAV_VBI_FIELD1 0x20
  31. #define EAV_VBI_FIELD1 0x30
  32. #define SAV_VBI_FIELD2 0x60
  33. #define EAV_VBI_FIELD2 0x70
  34. /*****************************************************************************/
  35. /* Audio ADC Registers */
  36. #define CH_PWR_CTRL1 0x0000000e
  37. #define CH_PWR_CTRL2 0x0000000f
  38. /*****************************************************************************/
  39. #define HOST_REG1 0x000
  40. #define FLD_FORCE_CHIP_SEL 0x80
  41. #define FLD_AUTO_INC_DIS 0x20
  42. #define FLD_PREFETCH_EN 0x10
  43. /* Reserved [2:3] */
  44. #define FLD_DIGITAL_PWR_DN 0x02
  45. #define FLD_SLEEP 0x01
  46. /*****************************************************************************/
  47. #define HOST_REG2 0x001
  48. /*****************************************************************************/
  49. #define HOST_REG3 0x002
  50. /*****************************************************************************/
  51. /* added for polaris */
  52. #define GPIO_PIN_CTL0 0x3
  53. #define GPIO_PIN_CTL1 0x4
  54. #define GPIO_PIN_CTL2 0x5
  55. #define GPIO_PIN_CTL3 0x6
  56. #define TS1_PIN_CTL0 0x7
  57. #define TS1_PIN_CTL1 0x8
  58. /*****************************************************************************/
  59. #define FLD_CLK_IN_EN 0x80
  60. #define FLD_XTAL_CTRL 0x70
  61. #define FLD_BB_CLK_MODE 0x0C
  62. #define FLD_REF_DIV_PLL 0x02
  63. #define FLD_REF_SEL_PLL1 0x01
  64. /*****************************************************************************/
  65. #define CHIP_CTRL 0x100
  66. /* Reserved [27] */
  67. /* Reserved [31:21] */
  68. #define FLD_CHIP_ACFG_DIS 0x00100000
  69. /* Reserved [19] */
  70. #define FLD_DUAL_MODE_ADC2 0x00040000
  71. #define FLD_SIF_EN 0x00020000
  72. #define FLD_SOFT_RST 0x00010000
  73. #define FLD_DEVICE_ID 0x0000ffff
  74. /*****************************************************************************/
  75. #define AFE_CTRL 0x104
  76. #define AFE_CTRL_C2HH_SRC_CTRL 0x104
  77. #define FLD_DIF_OUT_SEL 0xc0000000
  78. #define FLD_AUX_PLL_CLK_ALT_SEL 0x3c000000
  79. #define FLD_UV_ORDER_MODE 0x02000000
  80. #define FLD_FUNC_MODE 0x01800000
  81. #define FLD_ROT1_PHASE_CTL 0x007f8000
  82. #define FLD_AUD_IN_SEL 0x00004000
  83. #define FLD_LUMA_IN_SEL 0x00002000
  84. #define FLD_CHROMA_IN_SEL 0x00001000
  85. /* reserve [11:10] */
  86. #define FLD_INV_SPEC_DIS 0x00000200
  87. #define FLD_VGA_SEL_CH3 0x00000100
  88. #define FLD_VGA_SEL_CH2 0x00000080
  89. #define FLD_VGA_SEL_CH1 0x00000040
  90. #define FLD_DCR_BYP_CH1 0x00000020
  91. #define FLD_DCR_BYP_CH2 0x00000010
  92. #define FLD_DCR_BYP_CH3 0x00000008
  93. #define FLD_EN_12DB_CH3 0x00000004
  94. #define FLD_EN_12DB_CH2 0x00000002
  95. #define FLD_EN_12DB_CH1 0x00000001
  96. /* redefine in Cx231xx */
  97. /*****************************************************************************/
  98. #define DC_CTRL1 0x108
  99. /* reserve [31:30] */
  100. #define FLD_CLAMP_LVL_CH1 0x3fff8000
  101. #define FLD_CLAMP_LVL_CH2 0x00007fff
  102. /*****************************************************************************/
  103. /*****************************************************************************/
  104. #define DC_CTRL2 0x10c
  105. /* reserve [31:28] */
  106. #define FLD_CLAMP_LVL_CH3 0x00fffe00
  107. #define FLD_CLAMP_WIND_LENTH 0x000001e0
  108. #define FLD_C2HH_SAT_MIN 0x0000001e
  109. #define FLD_FLT_BYP_SEL 0x00000001
  110. /*****************************************************************************/
  111. /*****************************************************************************/
  112. #define DC_CTRL3 0x110
  113. /* reserve [31:16] */
  114. #define FLD_ERR_GAIN_CTL 0x00070000
  115. #define FLD_LPF_MIN 0x0000ffff
  116. /*****************************************************************************/
  117. /*****************************************************************************/
  118. #define DC_CTRL4 0x114
  119. /* reserve [31:31] */
  120. #define FLD_INTG_CH1 0x7fffffff
  121. /*****************************************************************************/
  122. /*****************************************************************************/
  123. #define DC_CTRL5 0x118
  124. /* reserve [31:31] */
  125. #define FLD_INTG_CH2 0x7fffffff
  126. /*****************************************************************************/
  127. /*****************************************************************************/
  128. #define DC_CTRL6 0x11c
  129. /* reserve [31:31] */
  130. #define FLD_INTG_CH3 0x7fffffff
  131. /*****************************************************************************/
  132. /*****************************************************************************/
  133. #define PIN_CTRL 0x120
  134. #define FLD_OEF_AGC_RF 0x00000001
  135. #define FLD_OEF_AGC_IFVGA 0x00000002
  136. #define FLD_OEF_AGC_IF 0x00000004
  137. #define FLD_REG_BO_PUD 0x80000000
  138. #define FLD_IR_IRQ_STAT 0x40000000
  139. #define FLD_AUD_IRQ_STAT 0x20000000
  140. #define FLD_VID_IRQ_STAT 0x10000000
  141. /* Reserved [27:26] */
  142. #define FLD_IRQ_N_OUT_EN 0x02000000
  143. #define FLD_IRQ_N_POLAR 0x01000000
  144. /* Reserved [23:6] */
  145. #define FLD_OE_AUX_PLL_CLK 0x00000020
  146. #define FLD_OE_I2S_BCLK 0x00000010
  147. #define FLD_OE_I2S_WCLK 0x00000008
  148. #define FLD_OE_AGC_IF 0x00000004
  149. #define FLD_OE_AGC_IFVGA 0x00000002
  150. #define FLD_OE_AGC_RF 0x00000001
  151. /*****************************************************************************/
  152. #define AUD_IO_CTRL 0x124
  153. /* Reserved [31:8] */
  154. #define FLD_I2S_PORT_DIR 0x00000080
  155. #define FLD_I2S_OUT_SRC 0x00000040
  156. #define FLD_AUD_CHAN3_SRC 0x00000030
  157. #define FLD_AUD_CHAN2_SRC 0x0000000c
  158. #define FLD_AUD_CHAN1_SRC 0x00000003
  159. /*****************************************************************************/
  160. #define AUD_LOCK1 0x128
  161. #define FLD_AUD_LOCK_KI_SHIFT 0xc0000000
  162. #define FLD_AUD_LOCK_KD_SHIFT 0x30000000
  163. /* Reserved [27:25] */
  164. #define FLD_EN_AV_LOCK 0x01000000
  165. #define FLD_VID_COUNT 0x00ffffff
  166. /*****************************************************************************/
  167. #define AUD_LOCK2 0x12c
  168. #define FLD_AUD_LOCK_KI_MULT 0xf0000000
  169. #define FLD_AUD_LOCK_KD_MULT 0x0F000000
  170. /* Reserved [23:22] */
  171. #define FLD_AUD_LOCK_FREQ_SHIFT 0x00300000
  172. #define FLD_AUD_COUNT 0x000fffff
  173. /*****************************************************************************/
  174. #define AFE_DIAG_CTRL1 0x134
  175. /* Reserved [31:16] */
  176. #define FLD_CUV_DLY_LENGTH 0x0000ff00
  177. #define FLD_YC_DLY_LENGTH 0x000000ff
  178. /*****************************************************************************/
  179. /* Poalris redefine */
  180. #define AFE_DIAG_CTRL3 0x138
  181. /* Reserved [31:26] */
  182. #define FLD_AUD_DUAL_FLAG_POL 0x02000000
  183. #define FLD_VID_DUAL_FLAG_POL 0x01000000
  184. /* Reserved [23:23] */
  185. #define FLD_COL_CLAMP_DIS_CH1 0x00400000
  186. #define FLD_COL_CLAMP_DIS_CH2 0x00200000
  187. #define FLD_COL_CLAMP_DIS_CH3 0x00100000
  188. #define TEST_CTRL1 0x144
  189. /* Reserved [31:29] */
  190. #define FLD_LBIST_EN 0x10000000
  191. /* Reserved [27:10] */
  192. #define FLD_FI_BIST_INTR_R 0x0000200
  193. #define FLD_FI_BIST_INTR_L 0x0000100
  194. #define FLD_BIST_FAIL_AUD_PLL 0x0000080
  195. #define FLD_BIST_INTR_AUD_PLL 0x0000040
  196. #define FLD_BIST_FAIL_VID_PLL 0x0000020
  197. #define FLD_BIST_INTR_VID_PLL 0x0000010
  198. /* Reserved [3:1] */
  199. #define FLD_CIR_TEST_DIS 0x00000001
  200. /*****************************************************************************/
  201. #define TEST_CTRL2 0x148
  202. #define FLD_TSXCLK_POL_CTL 0x80000000
  203. #define FLD_ISO_CTL_SEL 0x40000000
  204. #define FLD_ISO_CTL_EN 0x20000000
  205. #define FLD_BIST_DEBUGZ 0x10000000
  206. #define FLD_AUD_BIST_TEST_H 0x0f000000
  207. /* Reserved [23:22] */
  208. #define FLD_FLTRN_BIST_TEST_H 0x00020000
  209. #define FLD_VID_BIST_TEST_H 0x00010000
  210. /* Reserved [19:17] */
  211. #define FLD_BIST_TEST_H 0x00010000
  212. /* Reserved [15:13] */
  213. #define FLD_TAB_EN 0x00001000
  214. /* Reserved [11:0] */
  215. /*****************************************************************************/
  216. #define BIST_STAT 0x14c
  217. #define FLD_AUD_BIST_FAIL_H 0xfff00000
  218. #define FLD_FLTRN_BIST_FAIL_H 0x00180000
  219. #define FLD_VID_BIST_FAIL_H 0x00070000
  220. #define FLD_AUD_BIST_TST_DONE 0x0000fff0
  221. #define FLD_FLTRN_BIST_TST_DONE 0x00000008
  222. #define FLD_VID_BIST_TST_DONE 0x00000007
  223. /*****************************************************************************/
  224. /* DirectIF registers definition have been moved to DIF_reg.h */
  225. /*****************************************************************************/
  226. #define MODE_CTRL 0x400
  227. #define FLD_AFD_PAL60_DIS 0x20000000
  228. #define FLD_AFD_FORCE_SECAM 0x10000000
  229. #define FLD_AFD_FORCE_PALNC 0x08000000
  230. #define FLD_AFD_FORCE_PAL 0x04000000
  231. #define FLD_AFD_PALM_SEL 0x03000000
  232. #define FLD_CKILL_MODE 0x00300000
  233. #define FLD_COMB_NOTCH_MODE 0x00c00000 /* bit[19:18] */
  234. #define FLD_CLR_LOCK_STAT 0x00020000
  235. #define FLD_FAST_LOCK_MD 0x00010000
  236. #define FLD_WCEN 0x00008000
  237. #define FLD_CAGCEN 0x00004000
  238. #define FLD_CKILLEN 0x00002000
  239. #define FLD_AUTO_SC_LOCK 0x00001000
  240. #define FLD_MAN_SC_FAST_LOCK 0x00000800
  241. #define FLD_INPUT_MODE 0x00000600
  242. #define FLD_AFD_ACQUIRE 0x00000100
  243. #define FLD_AFD_NTSC_SEL 0x00000080
  244. #define FLD_AFD_PAL_SEL 0x00000040
  245. #define FLD_ACFG_DIS 0x00000020
  246. #define FLD_SQ_PIXEL 0x00000010
  247. #define FLD_VID_FMT_SEL 0x0000000f
  248. /*****************************************************************************/
  249. #define OUT_CTRL1 0x404
  250. #define FLD_POLAR 0x7f000000
  251. /* Reserved [23] */
  252. #define FLD_RND_MODE 0x00600000
  253. #define FLD_VIPCLAMP_EN 0x00100000
  254. #define FLD_VIPBLANK_EN 0x00080000
  255. #define FLD_VIP_OPT_AL 0x00040000
  256. #define FLD_IDID0_SOURCE 0x00020000
  257. #define FLD_DCMODE 0x00010000
  258. #define FLD_CLK_GATING 0x0000c000
  259. #define FLD_CLK_INVERT 0x00002000
  260. #define FLD_HSFMT 0x00001000
  261. #define FLD_VALIDFMT 0x00000800
  262. #define FLD_ACTFMT 0x00000400
  263. #define FLD_SWAPRAW 0x00000200
  264. #define FLD_CLAMPRAW_EN 0x00000100
  265. #define FLD_BLUE_FIELD_EN 0x00000080
  266. #define FLD_BLUE_FIELD_ACT 0x00000040
  267. #define FLD_TASKBIT_VAL 0x00000020
  268. #define FLD_ANC_DATA_EN 0x00000010
  269. #define FLD_VBIHACTRAW_EN 0x00000008
  270. #define FLD_MODE10B 0x00000004
  271. #define FLD_OUT_MODE 0x00000003
  272. /*****************************************************************************/
  273. #define OUT_CTRL2 0x408
  274. #define FLD_AUD_GRP 0xc0000000
  275. #define FLD_SAMPLE_RATE 0x30000000
  276. #define FLD_AUD_ANC_EN 0x08000000
  277. #define FLD_EN_C 0x04000000
  278. #define FLD_EN_B 0x02000000
  279. #define FLD_EN_A 0x01000000
  280. /* Reserved [23:20] */
  281. #define FLD_IDID1_LSB 0x000c0000
  282. #define FLD_IDID0_LSB 0x00030000
  283. #define FLD_IDID1_MSB 0x0000ff00
  284. #define FLD_IDID0_MSB 0x000000ff
  285. /*****************************************************************************/
  286. #define GEN_STAT 0x40c
  287. #define FLD_VCR_DETECT 0x00800000
  288. #define FLD_SPECIAL_PLAY_N 0x00400000
  289. #define FLD_VPRES 0x00200000
  290. #define FLD_AGC_LOCK 0x00100000
  291. #define FLD_CSC_LOCK 0x00080000
  292. #define FLD_VLOCK 0x00040000
  293. #define FLD_SRC_LOCK 0x00020000
  294. #define FLD_HLOCK 0x00010000
  295. #define FLD_VSYNC_N 0x00008000
  296. #define FLD_SRC_FIFO_UFLOW 0x00004000
  297. #define FLD_SRC_FIFO_OFLOW 0x00002000
  298. #define FLD_FIELD 0x00001000
  299. #define FLD_AFD_FMT_STAT 0x00000f00
  300. #define FLD_MV_TYPE2_PAIR 0x00000080
  301. #define FLD_MV_T3CS 0x00000040
  302. #define FLD_MV_CS 0x00000020
  303. #define FLD_MV_PSP 0x00000010
  304. /* Reserved [3] */
  305. #define FLD_MV_CDAT 0x00000003
  306. /*****************************************************************************/
  307. #define INT_STAT_MASK 0x410
  308. #define FLD_COMB_3D_FIFO_MSK 0x80000000
  309. #define FLD_WSS_DAT_AVAIL_MSK 0x40000000
  310. #define FLD_GS2_DAT_AVAIL_MSK 0x20000000
  311. #define FLD_GS1_DAT_AVAIL_MSK 0x10000000
  312. #define FLD_CC_DAT_AVAIL_MSK 0x08000000
  313. #define FLD_VPRES_CHANGE_MSK 0x04000000
  314. #define FLD_MV_CHANGE_MSK 0x02000000
  315. #define FLD_END_VBI_EVEN_MSK 0x01000000
  316. #define FLD_END_VBI_ODD_MSK 0x00800000
  317. #define FLD_FMT_CHANGE_MSK 0x00400000
  318. #define FLD_VSYNC_TRAIL_MSK 0x00200000
  319. #define FLD_HLOCK_CHANGE_MSK 0x00100000
  320. #define FLD_VLOCK_CHANGE_MSK 0x00080000
  321. #define FLD_CSC_LOCK_CHANGE_MSK 0x00040000
  322. #define FLD_SRC_FIFO_UFLOW_MSK 0x00020000
  323. #define FLD_SRC_FIFO_OFLOW_MSK 0x00010000
  324. #define FLD_COMB_3D_FIFO_STAT 0x00008000
  325. #define FLD_WSS_DAT_AVAIL_STAT 0x00004000
  326. #define FLD_GS2_DAT_AVAIL_STAT 0x00002000
  327. #define FLD_GS1_DAT_AVAIL_STAT 0x00001000
  328. #define FLD_CC_DAT_AVAIL_STAT 0x00000800
  329. #define FLD_VPRES_CHANGE_STAT 0x00000400
  330. #define FLD_MV_CHANGE_STAT 0x00000200
  331. #define FLD_END_VBI_EVEN_STAT 0x00000100
  332. #define FLD_END_VBI_ODD_STAT 0x00000080
  333. #define FLD_FMT_CHANGE_STAT 0x00000040
  334. #define FLD_VSYNC_TRAIL_STAT 0x00000020
  335. #define FLD_HLOCK_CHANGE_STAT 0x00000010
  336. #define FLD_VLOCK_CHANGE_STAT 0x00000008
  337. #define FLD_CSC_LOCK_CHANGE_STAT 0x00000004
  338. #define FLD_SRC_FIFO_UFLOW_STAT 0x00000002
  339. #define FLD_SRC_FIFO_OFLOW_STAT 0x00000001
  340. /*****************************************************************************/
  341. #define LUMA_CTRL 0x414
  342. #define BRIGHTNESS_CTRL_BYTE 0x414
  343. #define CONTRAST_CTRL_BYTE 0x415
  344. #define LUMA_CTRL_BYTE_3 0x416
  345. #define FLD_LUMA_CORE_SEL 0x00c00000
  346. #define FLD_RANGE 0x00300000
  347. /* Reserved [19] */
  348. #define FLD_PEAK_EN 0x00040000
  349. #define FLD_PEAK_SEL 0x00030000
  350. #define FLD_CNTRST 0x0000ff00
  351. #define FLD_BRITE 0x000000ff
  352. /*****************************************************************************/
  353. #define HSCALE_CTRL 0x418
  354. #define FLD_HFILT 0x03000000
  355. #define FLD_HSCALE 0x00ffffff
  356. /*****************************************************************************/
  357. #define VSCALE_CTRL 0x41c
  358. #define FLD_LINE_AVG_DIS 0x01000000
  359. /* Reserved [23:20] */
  360. #define FLD_VS_INTRLACE 0x00080000
  361. #define FLD_VFILT 0x00070000
  362. /* Reserved [15:13] */
  363. #define FLD_VSCALE 0x00001fff
  364. /*****************************************************************************/
  365. #define CHROMA_CTRL 0x420
  366. #define USAT_CTRL_BYTE 0x420
  367. #define VSAT_CTRL_BYTE 0x421
  368. #define HUE_CTRL_BYTE 0x422
  369. #define FLD_C_LPF_EN 0x20000000
  370. #define FLD_CHR_DELAY 0x1c000000
  371. #define FLD_C_CORE_SEL 0x03000000
  372. #define FLD_HUE 0x00ff0000
  373. #define FLD_VSAT 0x0000ff00
  374. #define FLD_USAT 0x000000ff
  375. /*****************************************************************************/
  376. #define VBI_LINE_CTRL1 0x424
  377. #define FLD_VBI_MD_LINE4 0xff000000
  378. #define FLD_VBI_MD_LINE3 0x00ff0000
  379. #define FLD_VBI_MD_LINE2 0x0000ff00
  380. #define FLD_VBI_MD_LINE1 0x000000ff
  381. /*****************************************************************************/
  382. #define VBI_LINE_CTRL2 0x428
  383. #define FLD_VBI_MD_LINE8 0xff000000
  384. #define FLD_VBI_MD_LINE7 0x00ff0000
  385. #define FLD_VBI_MD_LINE6 0x0000ff00
  386. #define FLD_VBI_MD_LINE5 0x000000ff
  387. /*****************************************************************************/
  388. #define VBI_LINE_CTRL3 0x42c
  389. #define FLD_VBI_MD_LINE12 0xff000000
  390. #define FLD_VBI_MD_LINE11 0x00ff0000
  391. #define FLD_VBI_MD_LINE10 0x0000ff00
  392. #define FLD_VBI_MD_LINE9 0x000000ff
  393. /*****************************************************************************/
  394. #define VBI_LINE_CTRL4 0x430
  395. #define FLD_VBI_MD_LINE16 0xff000000
  396. #define FLD_VBI_MD_LINE15 0x00ff0000
  397. #define FLD_VBI_MD_LINE14 0x0000ff00
  398. #define FLD_VBI_MD_LINE13 0x000000ff
  399. /*****************************************************************************/
  400. #define VBI_LINE_CTRL5 0x434
  401. #define FLD_VBI_MD_LINE17 0x000000ff
  402. /*****************************************************************************/
  403. #define VBI_FC_CFG 0x438
  404. #define FLD_FC_ALT2 0xff000000
  405. #define FLD_FC_ALT1 0x00ff0000
  406. #define FLD_FC_ALT2_TYPE 0x0000f000
  407. #define FLD_FC_ALT1_TYPE 0x00000f00
  408. /* Reserved [7:1] */
  409. #define FLD_FC_SEARCH_MODE 0x00000001
  410. /*****************************************************************************/
  411. #define VBI_MISC_CFG1 0x43c
  412. #define FLD_TTX_PKTADRU 0xfff00000
  413. #define FLD_TTX_PKTADRL 0x000fff00
  414. /* Reserved [7:6] */
  415. #define FLD_MOJI_PACK_DIS 0x00000020
  416. #define FLD_VPS_DEC_DIS 0x00000010
  417. #define FLD_CRI_MARG_SCALE 0x0000000c
  418. #define FLD_EDGE_RESYNC_EN 0x00000002
  419. #define FLD_ADAPT_SLICE_DIS 0x00000001
  420. /*****************************************************************************/
  421. #define VBI_MISC_CFG2 0x440
  422. #define FLD_HAMMING_TYPE 0x0f000000
  423. /* Reserved [23:20] */
  424. #define FLD_WSS_FIFO_RST 0x00080000
  425. #define FLD_GS2_FIFO_RST 0x00040000
  426. #define FLD_GS1_FIFO_RST 0x00020000
  427. #define FLD_CC_FIFO_RST 0x00010000
  428. /* Reserved [15:12] */
  429. #define FLD_VBI3_SDID 0x00000f00
  430. #define FLD_VBI2_SDID 0x000000f0
  431. #define FLD_VBI1_SDID 0x0000000f
  432. /*****************************************************************************/
  433. #define VBI_PAY1 0x444
  434. #define FLD_GS1_FIFO_DAT 0xFF000000
  435. #define FLD_GS1_STAT 0x00FF0000
  436. #define FLD_CC_FIFO_DAT 0x0000FF00
  437. #define FLD_CC_STAT 0x000000FF
  438. /*****************************************************************************/
  439. #define VBI_PAY2 0x448
  440. #define FLD_WSS_FIFO_DAT 0xff000000
  441. #define FLD_WSS_STAT 0x00ff0000
  442. #define FLD_GS2_FIFO_DAT 0x0000ff00
  443. #define FLD_GS2_STAT 0x000000ff
  444. /*****************************************************************************/
  445. #define VBI_CUST1_CFG1 0x44c
  446. /* Reserved [31] */
  447. #define FLD_VBI1_CRIWIN 0x7f000000
  448. #define FLD_VBI1_SLICE_DIST 0x00f00000
  449. #define FLD_VBI1_BITINC 0x000fff00
  450. #define FLD_VBI1_HDELAY 0x000000ff
  451. /*****************************************************************************/
  452. #define VBI_CUST1_CFG2 0x450
  453. #define FLD_VBI1_FC_LENGTH 0x1f000000
  454. #define FLD_VBI1_FRAME_CODE 0x00ffffff
  455. /*****************************************************************************/
  456. #define VBI_CUST1_CFG3 0x454
  457. #define FLD_VBI1_HAM_EN 0x80000000
  458. #define FLD_VBI1_FIFO_MODE 0x70000000
  459. #define FLD_VBI1_FORMAT_TYPE 0x0f000000
  460. #define FLD_VBI1_PAYLD_LENGTH 0x00ff0000
  461. #define FLD_VBI1_CRI_LENGTH 0x0000f000
  462. #define FLD_VBI1_CRI_MARGIN 0x00000f00
  463. #define FLD_VBI1_CRI_TIME 0x000000ff
  464. /*****************************************************************************/
  465. #define VBI_CUST2_CFG1 0x458
  466. /* Reserved [31] */
  467. #define FLD_VBI2_CRIWIN 0x7f000000
  468. #define FLD_VBI2_SLICE_DIST 0x00f00000
  469. #define FLD_VBI2_BITINC 0x000fff00
  470. #define FLD_VBI2_HDELAY 0x000000ff
  471. /*****************************************************************************/
  472. #define VBI_CUST2_CFG2 0x45c
  473. #define FLD_VBI2_FC_LENGTH 0x1f000000
  474. #define FLD_VBI2_FRAME_CODE 0x00ffffff
  475. /*****************************************************************************/
  476. #define VBI_CUST2_CFG3 0x460
  477. #define FLD_VBI2_HAM_EN 0x80000000
  478. #define FLD_VBI2_FIFO_MODE 0x70000000
  479. #define FLD_VBI2_FORMAT_TYPE 0x0f000000
  480. #define FLD_VBI2_PAYLD_LENGTH 0x00ff0000
  481. #define FLD_VBI2_CRI_LENGTH 0x0000f000
  482. #define FLD_VBI2_CRI_MARGIN 0x00000f00
  483. #define FLD_VBI2_CRI_TIME 0x000000ff
  484. /*****************************************************************************/
  485. #define VBI_CUST3_CFG1 0x464
  486. /* Reserved [31] */
  487. #define FLD_VBI3_CRIWIN 0x7f000000
  488. #define FLD_VBI3_SLICE_DIST 0x00f00000
  489. #define FLD_VBI3_BITINC 0x000fff00
  490. #define FLD_VBI3_HDELAY 0x000000ff
  491. /*****************************************************************************/
  492. #define VBI_CUST3_CFG2 0x468
  493. #define FLD_VBI3_FC_LENGTH 0x1f000000
  494. #define FLD_VBI3_FRAME_CODE 0x00ffffff
  495. /*****************************************************************************/
  496. #define VBI_CUST3_CFG3 0x46c
  497. #define FLD_VBI3_HAM_EN 0x80000000
  498. #define FLD_VBI3_FIFO_MODE 0x70000000
  499. #define FLD_VBI3_FORMAT_TYPE 0x0f000000
  500. #define FLD_VBI3_PAYLD_LENGTH 0x00ff0000
  501. #define FLD_VBI3_CRI_LENGTH 0x0000f000
  502. #define FLD_VBI3_CRI_MARGIN 0x00000f00
  503. #define FLD_VBI3_CRI_TIME 0x000000ff
  504. /*****************************************************************************/
  505. #define HORIZ_TIM_CTRL 0x470
  506. #define FLD_BGDEL_CNT 0xff000000
  507. /* Reserved [23:22] */
  508. #define FLD_HACTIVE_CNT 0x003ff000
  509. /* Reserved [11:10] */
  510. #define FLD_HBLANK_CNT 0x000003ff
  511. /*****************************************************************************/
  512. #define VERT_TIM_CTRL 0x474
  513. #define FLD_V656BLANK_CNT 0xff000000
  514. /* Reserved [23:22] */
  515. #define FLD_VACTIVE_CNT 0x003ff000
  516. /* Reserved [11:10] */
  517. #define FLD_VBLANK_CNT 0x000003ff
  518. /*****************************************************************************/
  519. #define SRC_COMB_CFG 0x478
  520. #define FLD_CCOMB_2LN_CHECK 0x80000000
  521. #define FLD_CCOMB_3LN_EN 0x40000000
  522. #define FLD_CCOMB_2LN_EN 0x20000000
  523. #define FLD_CCOMB_3D_EN 0x10000000
  524. /* Reserved [27] */
  525. #define FLD_LCOMB_3LN_EN 0x04000000
  526. #define FLD_LCOMB_2LN_EN 0x02000000
  527. #define FLD_LCOMB_3D_EN 0x01000000
  528. #define FLD_LUMA_LPF_SEL 0x00c00000
  529. #define FLD_UV_LPF_SEL 0x00300000
  530. #define FLD_BLEND_SLOPE 0x000f0000
  531. #define FLD_CCOMB_REDUCE_EN 0x00008000
  532. /* Reserved [14:10] */
  533. #define FLD_SRC_DECIM_RATIO 0x000003ff
  534. /*****************************************************************************/
  535. #define CHROMA_VBIOFF_CFG 0x47c
  536. #define FLD_VBI_VOFFSET 0x1f000000
  537. /* Reserved [23:20] */
  538. #define FLD_SC_STEP 0x000fffff
  539. /*****************************************************************************/
  540. #define FIELD_COUNT 0x480
  541. #define FLD_FIELD_COUNT_FLD 0x000003ff
  542. /*****************************************************************************/
  543. #define MISC_TIM_CTRL 0x484
  544. #define FLD_DEBOUNCE_COUNT 0xc0000000
  545. #define FLD_VT_LINE_CNT_HYST 0x30000000
  546. /* Reserved [27] */
  547. #define FLD_AFD_STAT 0x07ff0000
  548. #define FLD_VPRES_VERT_EN 0x00008000
  549. /* Reserved [14:12] */
  550. #define FLD_HR32 0x00000800
  551. #define FLD_TDALGN 0x00000400
  552. #define FLD_TDFIELD 0x00000200
  553. /* Reserved [8:6] */
  554. #define FLD_TEMPDEC 0x0000003f
  555. /*****************************************************************************/
  556. #define DFE_CTRL1 0x488
  557. #define FLD_CLAMP_AUTO_EN 0x80000000
  558. #define FLD_AGC_AUTO_EN 0x40000000
  559. #define FLD_VGA_CRUSH_EN 0x20000000
  560. #define FLD_VGA_AUTO_EN 0x10000000
  561. #define FLD_VBI_GATE_EN 0x08000000
  562. #define FLD_CLAMP_LEVEL 0x07000000
  563. /* Reserved [23:22] */
  564. #define FLD_CLAMP_SKIP_CNT 0x00300000
  565. #define FLD_AGC_GAIN 0x000fff00
  566. /* Reserved [7:6] */
  567. #define FLD_VGA_GAIN 0x0000003f
  568. /*****************************************************************************/
  569. #define DFE_CTRL2 0x48c
  570. #define FLD_VGA_ACQUIRE_RANGE 0x00ff0000
  571. #define FLD_VGA_TRACK_RANGE 0x0000ff00
  572. #define FLD_VGA_SYNC 0x000000ff
  573. /*****************************************************************************/
  574. #define DFE_CTRL3 0x490
  575. #define FLD_BP_PERCENT 0xff000000
  576. #define FLD_DFT_THRESHOLD 0x00ff0000
  577. /* Reserved [15:12] */
  578. #define FLD_SYNC_WIDTH_SEL 0x00000600
  579. #define FLD_BP_LOOP_GAIN 0x00000300
  580. #define FLD_SYNC_LOOP_GAIN 0x000000c0
  581. /* Reserved [5:4] */
  582. #define FLD_AGC_LOOP_GAIN 0x0000000c
  583. #define FLD_DCC_LOOP_GAIN 0x00000003
  584. /*****************************************************************************/
  585. #define PLL_CTRL 0x494
  586. #define FLD_PLL_KD 0xff000000
  587. #define FLD_PLL_KI 0x00ff0000
  588. #define FLD_PLL_MAX_OFFSET 0x0000ffff
  589. /*****************************************************************************/
  590. #define HTL_CTRL 0x498
  591. /* Reserved [31:24] */
  592. #define FLD_AUTO_LOCK_SPD 0x00080000
  593. #define FLD_MAN_FAST_LOCK 0x00040000
  594. #define FLD_HTL_15K_EN 0x00020000
  595. #define FLD_HTL_500K_EN 0x00010000
  596. #define FLD_HTL_KD 0x0000ff00
  597. #define FLD_HTL_KI 0x000000ff
  598. /*****************************************************************************/
  599. #define COMB_CTRL 0x49c
  600. #define FLD_COMB_PHASE_LIMIT 0xff000000
  601. #define FLD_CCOMB_ERR_LIMIT 0x00ff0000
  602. #define FLD_LUMA_THRESHOLD 0x0000ff00
  603. #define FLD_LCOMB_ERR_LIMIT 0x000000ff
  604. /*****************************************************************************/
  605. #define CRUSH_CTRL 0x4a0
  606. #define FLD_WTW_EN 0x00400000
  607. #define FLD_CRUSH_FREQ 0x00200000
  608. #define FLD_MAJ_SEL_EN 0x00100000
  609. #define FLD_MAJ_SEL 0x000c0000
  610. /* Reserved [17:15] */
  611. #define FLD_SYNC_TIP_REDUCE 0x00007e00
  612. /* Reserved [8:6] */
  613. #define FLD_SYNC_TIP_INC 0x0000003f
  614. /*****************************************************************************/
  615. #define SOFT_RST_CTRL 0x4a4
  616. #define FLD_VD_SOFT_RST 0x00008000
  617. /* Reserved [14:12] */
  618. #define FLD_REG_RST_MSK 0x00000800
  619. #define FLD_VOF_RST_MSK 0x00000400
  620. #define FLD_MVDET_RST_MSK 0x00000200
  621. #define FLD_VBI_RST_MSK 0x00000100
  622. #define FLD_SCALE_RST_MSK 0x00000080
  623. #define FLD_CHROMA_RST_MSK 0x00000040
  624. #define FLD_LUMA_RST_MSK 0x00000020
  625. #define FLD_VTG_RST_MSK 0x00000010
  626. #define FLD_YCSEP_RST_MSK 0x00000008
  627. #define FLD_SRC_RST_MSK 0x00000004
  628. #define FLD_DFE_RST_MSK 0x00000002
  629. /* Reserved [0] */
  630. /*****************************************************************************/
  631. #define MV_DT_CTRL1 0x4a8
  632. /* Reserved [31:29] */
  633. #define FLD_PSP_STOP_LINE 0x1f000000
  634. /* Reserved [23:21] */
  635. #define FLD_PSP_STRT_LINE 0x001f0000
  636. /* Reserved [15] */
  637. #define FLD_PSP_LLIMW 0x00007f00
  638. /* Reserved [7] */
  639. #define FLD_PSP_ULIMW 0x0000007f
  640. /*****************************************************************************/
  641. #define MV_DT_CTRL2 0x4aC
  642. #define FLD_CS_STOPWIN 0xff000000
  643. #define FLD_CS_STRTWIN 0x00ff0000
  644. #define FLD_CS_WIDTH 0x0000ff00
  645. #define FLD_PSP_SPEC_VAL 0x000000ff
  646. /*****************************************************************************/
  647. #define MV_DT_CTRL3 0x4B0
  648. #define FLD_AUTO_RATE_DIS 0x80000000
  649. #define FLD_HLOCK_DIS 0x40000000
  650. #define FLD_SEL_FIELD_CNT 0x20000000
  651. #define FLD_CS_TYPE2_SEL 0x10000000
  652. #define FLD_CS_LINE_THRSH_SEL 0x08000000
  653. #define FLD_CS_ATHRESH_SEL 0x04000000
  654. #define FLD_PSP_SPEC_SEL 0x02000000
  655. #define FLD_PSP_LINES_SEL 0x01000000
  656. #define FLD_FIELD_CNT 0x00f00000
  657. #define FLD_CS_TYPE2_CNT 0x000fc000
  658. #define FLD_CS_LINE_CNT 0x00003f00
  659. #define FLD_CS_ATHRESH_LEV 0x000000ff
  660. /*****************************************************************************/
  661. #define CHIP_VERSION 0x4b4
  662. /* Cx231xx redefine */
  663. #define VERSION 0x4b4
  664. #define FLD_REV_ID 0x000000ff
  665. /*****************************************************************************/
  666. #define MISC_DIAG_CTRL 0x4b8
  667. /* Reserved [31:24] */
  668. #define FLD_SC_CONVERGE_THRESH 0x00ff0000
  669. #define FLD_CCOMB_ERR_LIMIT_3D 0x0000ff00
  670. #define FLD_LCOMB_ERR_LIMIT_3D 0x000000ff
  671. /*****************************************************************************/
  672. #define VBI_PASS_CTRL 0x4bc
  673. #define FLD_VBI_PASS_MD 0x00200000
  674. #define FLD_VBI_SETUP_DIS 0x00100000
  675. #define FLD_PASS_LINE_CTRL 0x000fffff
  676. /*****************************************************************************/
  677. /* Cx231xx redefine */
  678. #define VCR_DET_CTRL 0x4c0
  679. #define FLD_EN_FIELD_PHASE_DET 0x80000000
  680. #define FLD_EN_HEAD_SW_DET 0x40000000
  681. #define FLD_FIELD_PHASE_LENGTH 0x01ff0000
  682. /* Reserved [29:25] */
  683. #define FLD_FIELD_PHASE_DELAY 0x0000ff00
  684. #define FLD_FIELD_PHASE_LIMIT 0x000000f0
  685. #define FLD_HEAD_SW_DET_LIMIT 0x0000000f
  686. /*****************************************************************************/
  687. #define DL_CTL 0x800
  688. #define DL_CTL_ADDRESS_LOW 0x800 /* Byte 1 in DL_CTL */
  689. #define DL_CTL_ADDRESS_HIGH 0x801 /* Byte 2 in DL_CTL */
  690. #define DL_CTL_DATA 0x802 /* Byte 3 in DL_CTL */
  691. #define DL_CTL_CONTROL 0x803 /* Byte 4 in DL_CTL */
  692. /* Reserved [31:5] */
  693. #define FLD_START_8051 0x10000000
  694. #define FLD_DL_ENABLE 0x08000000
  695. #define FLD_DL_AUTO_INC 0x04000000
  696. #define FLD_DL_MAP 0x03000000
  697. /*****************************************************************************/
  698. #define STD_DET_STATUS 0x804
  699. #define FLD_SPARE_STATUS1 0xff000000
  700. #define FLD_SPARE_STATUS0 0x00ff0000
  701. #define FLD_MOD_DET_STATUS1 0x0000ff00
  702. #define FLD_MOD_DET_STATUS0 0x000000ff
  703. /*****************************************************************************/
  704. #define AUD_BUILD_NUM 0x806
  705. #define AUD_VER_NUM 0x807
  706. #define STD_DET_CTL 0x808
  707. #define STD_DET_CTL_AUD_CTL 0x808 /* Byte 1 in STD_DET_CTL */
  708. #define STD_DET_CTL_PREF_MODE 0x809 /* Byte 2 in STD_DET_CTL */
  709. #define FLD_SPARE_CTL0 0xff000000
  710. #define FLD_DIS_DBX 0x00800000
  711. #define FLD_DIS_BTSC 0x00400000
  712. #define FLD_DIS_NICAM_A2 0x00200000
  713. #define FLD_VIDEO_PRESENT 0x00100000
  714. #define FLD_DW8051_VIDEO_FORMAT 0x000f0000
  715. #define FLD_PREF_DEC_MODE 0x0000ff00
  716. #define FLD_AUD_CONFIG 0x000000ff
  717. /*****************************************************************************/
  718. #define DW8051_INT 0x80c
  719. #define FLD_VIDEO_PRESENT_CHANGE 0x80000000
  720. #define FLD_VIDEO_CHANGE 0x40000000
  721. #define FLD_RDS_READY 0x20000000
  722. #define FLD_AC97_INT 0x10000000
  723. #define FLD_NICAM_BIT_ERROR_TOO_HIGH 0x08000000
  724. #define FLD_NICAM_LOCK 0x04000000
  725. #define FLD_NICAM_UNLOCK 0x02000000
  726. #define FLD_DFT4_TH_CMP 0x01000000
  727. /* Reserved [23:22] */
  728. #define FLD_LOCK_IND_INT 0x00200000
  729. #define FLD_DFT3_TH_CMP 0x00100000
  730. #define FLD_DFT2_TH_CMP 0x00080000
  731. #define FLD_DFT1_TH_CMP 0x00040000
  732. #define FLD_FM2_DFT_TH_CMP 0x00020000
  733. #define FLD_FM1_DFT_TH_CMP 0x00010000
  734. #define FLD_VIDEO_PRESENT_EN 0x00008000
  735. #define FLD_VIDEO_CHANGE_EN 0x00004000
  736. #define FLD_RDS_READY_EN 0x00002000
  737. #define FLD_AC97_INT_EN 0x00001000
  738. #define FLD_NICAM_BIT_ERROR_TOO_HIGH_EN 0x00000800
  739. #define FLD_NICAM_LOCK_EN 0x00000400
  740. #define FLD_NICAM_UNLOCK_EN 0x00000200
  741. #define FLD_DFT4_TH_CMP_EN 0x00000100
  742. /* Reserved [7] */
  743. #define FLD_DW8051_INT6_CTL1 0x00000040
  744. #define FLD_DW8051_INT5_CTL1 0x00000020
  745. #define FLD_DW8051_INT4_CTL1 0x00000010
  746. #define FLD_DW8051_INT3_CTL1 0x00000008
  747. #define FLD_DW8051_INT2_CTL1 0x00000004
  748. #define FLD_DW8051_INT1_CTL1 0x00000002
  749. #define FLD_DW8051_INT0_CTL1 0x00000001
  750. /*****************************************************************************/
  751. #define GENERAL_CTL 0x810
  752. #define FLD_RDS_INT 0x80000000
  753. #define FLD_NBER_INT 0x40000000
  754. #define FLD_NLL_INT 0x20000000
  755. #define FLD_IFL_INT 0x10000000
  756. #define FLD_FDL_INT 0x08000000
  757. #define FLD_AFC_INT 0x04000000
  758. #define FLD_AMC_INT 0x02000000
  759. #define FLD_AC97_INT_CTL 0x01000000
  760. #define FLD_RDS_INT_DIS 0x00800000
  761. #define FLD_NBER_INT_DIS 0x00400000
  762. #define FLD_NLL_INT_DIS 0x00200000
  763. #define FLD_IFL_INT_DIS 0x00100000
  764. #define FLD_FDL_INT_DIS 0x00080000
  765. #define FLD_FC_INT_DIS 0x00040000
  766. #define FLD_AMC_INT_DIS 0x00020000
  767. #define FLD_AC97_INT_DIS 0x00010000
  768. #define FLD_REV_NUM 0x0000ff00
  769. /* Reserved [7:5] */
  770. #define FLD_DBX_SOFT_RESET_REG 0x00000010
  771. #define FLD_AD_SOFT_RESET_REG 0x00000008
  772. #define FLD_SRC_SOFT_RESET_REG 0x00000004
  773. #define FLD_CDMOD_SOFT_RESET 0x00000002
  774. #define FLD_8051_SOFT_RESET 0x00000001
  775. /*****************************************************************************/
  776. #define AAGC_CTL 0x814
  777. #define FLD_AFE_12DB_EN 0x80000000
  778. #define FLD_AAGC_DEFAULT_EN 0x40000000
  779. #define FLD_AAGC_DEFAULT 0x3f000000
  780. /* Reserved [23] */
  781. #define FLD_AAGC_GAIN 0x00600000
  782. #define FLD_AAGC_TH 0x001f0000
  783. /* Reserved [15:14] */
  784. #define FLD_AAGC_HYST2 0x00003f00
  785. /* Reserved [7:6] */
  786. #define FLD_AAGC_HYST1 0x0000003f
  787. /*****************************************************************************/
  788. #define IF_SRC_CTL 0x818
  789. #define FLD_DBX_BYPASS 0x80000000
  790. /* Reserved [30:25] */
  791. #define FLD_IF_SRC_MODE 0x01000000
  792. /* Reserved [23:18] */
  793. #define FLD_IF_SRC_PHASE_INC 0x0001ffff
  794. /*****************************************************************************/
  795. #define ANALOG_DEMOD_CTL 0x81c
  796. #define FLD_ROT1_PHACC_PROG 0xffff0000
  797. /* Reserved [15] */
  798. #define FLD_FM1_DELAY_FIX 0x00007000
  799. #define FLD_PDF4_SHIFT 0x00000c00
  800. #define FLD_PDF3_SHIFT 0x00000300
  801. #define FLD_PDF2_SHIFT 0x000000c0
  802. #define FLD_PDF1_SHIFT 0x00000030
  803. #define FLD_FMBYPASS_MODE2 0x00000008
  804. #define FLD_FMBYPASS_MODE1 0x00000004
  805. #define FLD_NICAM_MODE 0x00000002
  806. #define FLD_BTSC_FMRADIO_MODE 0x00000001
  807. /*****************************************************************************/
  808. #define ROT_FREQ_CTL 0x820
  809. #define FLD_ROT3_PHACC_PROG 0xffff0000
  810. #define FLD_ROT2_PHACC_PROG 0x0000ffff
  811. /*****************************************************************************/
  812. #define FM_CTL 0x824
  813. #define FLD_FM2_DC_FB_SHIFT 0xf0000000
  814. #define FLD_FM2_DC_INT_SHIFT 0x0f000000
  815. #define FLD_FM2_AFC_RESET 0x00800000
  816. #define FLD_FM2_DC_PASS_IN 0x00400000
  817. #define FLD_FM2_DAGC_SHIFT 0x00380000
  818. #define FLD_FM2_CORDIC_SHIFT 0x00070000
  819. #define FLD_FM1_DC_FB_SHIFT 0x0000f000
  820. #define FLD_FM1_DC_INT_SHIFT 0x00000f00
  821. #define FLD_FM1_AFC_RESET 0x00000080
  822. #define FLD_FM1_DC_PASS_IN 0x00000040
  823. #define FLD_FM1_DAGC_SHIFT 0x00000038
  824. #define FLD_FM1_CORDIC_SHIFT 0x00000007
  825. /*****************************************************************************/
  826. #define LPF_PDF_CTL 0x828
  827. /* Reserved [31:30] */
  828. #define FLD_LPF32_SHIFT1 0x30000000
  829. #define FLD_LPF32_SHIFT2 0x0c000000
  830. #define FLD_LPF160_SHIFTA 0x03000000
  831. #define FLD_LPF160_SHIFTB 0x00c00000
  832. #define FLD_LPF160_SHIFTC 0x00300000
  833. #define FLD_LPF32_COEF_SEL2 0x000c0000
  834. #define FLD_LPF32_COEF_SEL1 0x00030000
  835. #define FLD_LPF160_COEF_SELC 0x0000c000
  836. #define FLD_LPF160_COEF_SELB 0x00003000
  837. #define FLD_LPF160_COEF_SELA 0x00000c00
  838. #define FLD_LPF160_IN_EN_REG 0x00000300
  839. #define FLD_PDF4_PDF_SEL 0x000000c0
  840. #define FLD_PDF3_PDF_SEL 0x00000030
  841. #define FLD_PDF2_PDF_SEL 0x0000000c
  842. #define FLD_PDF1_PDF_SEL 0x00000003
  843. /*****************************************************************************/
  844. #define DFT1_CTL1 0x82c
  845. #define FLD_DFT1_DWELL 0xffff0000
  846. #define FLD_DFT1_FREQ 0x0000ffff
  847. /*****************************************************************************/
  848. #define DFT1_CTL2 0x830
  849. #define FLD_DFT1_THRESHOLD 0xffffff00
  850. #define FLD_DFT1_CMP_CTL 0x00000080
  851. #define FLD_DFT1_AVG 0x00000070
  852. /* Reserved [3:1] */
  853. #define FLD_DFT1_START 0x00000001
  854. /*****************************************************************************/
  855. #define DFT1_STATUS 0x834
  856. #define FLD_DFT1_DONE 0x80000000
  857. #define FLD_DFT1_TH_CMP_STAT 0x40000000
  858. #define FLD_DFT1_RESULT 0x3fffffff
  859. /*****************************************************************************/
  860. #define DFT2_CTL1 0x838
  861. #define FLD_DFT2_DWELL 0xffff0000
  862. #define FLD_DFT2_FREQ 0x0000ffff
  863. /*****************************************************************************/
  864. #define DFT2_CTL2 0x83C
  865. #define FLD_DFT2_THRESHOLD 0xffffff00
  866. #define FLD_DFT2_CMP_CTL 0x00000080
  867. #define FLD_DFT2_AVG 0x00000070
  868. /* Reserved [3:1] */
  869. #define FLD_DFT2_START 0x00000001
  870. /*****************************************************************************/
  871. #define DFT2_STATUS 0x840
  872. #define FLD_DFT2_DONE 0x80000000
  873. #define FLD_DFT2_TH_CMP_STAT 0x40000000
  874. #define FLD_DFT2_RESULT 0x3fffffff
  875. /*****************************************************************************/
  876. #define DFT3_CTL1 0x844
  877. #define FLD_DFT3_DWELL 0xffff0000
  878. #define FLD_DFT3_FREQ 0x0000ffff
  879. /*****************************************************************************/
  880. #define DFT3_CTL2 0x848
  881. #define FLD_DFT3_THRESHOLD 0xffffff00
  882. #define FLD_DFT3_CMP_CTL 0x00000080
  883. #define FLD_DFT3_AVG 0x00000070
  884. /* Reserved [3:1] */
  885. #define FLD_DFT3_START 0x00000001
  886. /*****************************************************************************/
  887. #define DFT3_STATUS 0x84c
  888. #define FLD_DFT3_DONE 0x80000000
  889. #define FLD_DFT3_TH_CMP_STAT 0x40000000
  890. #define FLD_DFT3_RESULT 0x3fffffff
  891. /*****************************************************************************/
  892. #define DFT4_CTL1 0x850
  893. #define FLD_DFT4_DWELL 0xffff0000
  894. #define FLD_DFT4_FREQ 0x0000ffff
  895. /*****************************************************************************/
  896. #define DFT4_CTL2 0x854
  897. #define FLD_DFT4_THRESHOLD 0xffffff00
  898. #define FLD_DFT4_CMP_CTL 0x00000080
  899. #define FLD_DFT4_AVG 0x00000070
  900. /* Reserved [3:1] */
  901. #define FLD_DFT4_START 0x00000001
  902. /*****************************************************************************/
  903. #define DFT4_STATUS 0x858
  904. #define FLD_DFT4_DONE 0x80000000
  905. #define FLD_DFT4_TH_CMP_STAT 0x40000000
  906. #define FLD_DFT4_RESULT 0x3fffffff
  907. /*****************************************************************************/
  908. #define AM_MTS_DET 0x85c
  909. #define FLD_AM_MTS_MODE 0x80000000
  910. /* Reserved [30:26] */
  911. #define FLD_AM_SUB 0x02000000
  912. #define FLD_AM_GAIN_EN 0x01000000
  913. /* Reserved [23:16] */
  914. #define FLD_AMMTS_GAIN_SCALE 0x0000e000
  915. #define FLD_MTS_PDF_SHIFT 0x00001800
  916. #define FLD_AM_REG_GAIN 0x00000700
  917. #define FLD_AGC_REF 0x000000ff
  918. /*****************************************************************************/
  919. #define ANALOG_MUX_CTL 0x860
  920. /* Reserved [31:29] */
  921. #define FLD_MUX21_SEL 0x10000000
  922. #define FLD_MUX20_SEL 0x08000000
  923. #define FLD_MUX19_SEL 0x04000000
  924. #define FLD_MUX18_SEL 0x02000000
  925. #define FLD_MUX17_SEL 0x01000000
  926. #define FLD_MUX16_SEL 0x00800000
  927. #define FLD_MUX15_SEL 0x00400000
  928. #define FLD_MUX14_SEL 0x00300000
  929. #define FLD_MUX13_SEL 0x000C0000
  930. #define FLD_MUX12_SEL 0x00020000
  931. #define FLD_MUX11_SEL 0x00018000
  932. #define FLD_MUX10_SEL 0x00004000
  933. #define FLD_MUX9_SEL 0x00002000
  934. #define FLD_MUX8_SEL 0x00001000
  935. #define FLD_MUX7_SEL 0x00000800
  936. #define FLD_MUX6_SEL 0x00000600
  937. #define FLD_MUX5_SEL 0x00000100
  938. #define FLD_MUX4_SEL 0x000000c0
  939. #define FLD_MUX3_SEL 0x00000030
  940. #define FLD_MUX2_SEL 0x0000000c
  941. #define FLD_MUX1_SEL 0x00000003
  942. /*****************************************************************************/
  943. /* Cx231xx redefine */
  944. #define DPLL_CTRL1 0x864
  945. #define DIG_PLL_CTL1 0x864
  946. #define FLD_PLL_STATUS 0x07000000
  947. #define FLD_BANDWIDTH_SELECT 0x00030000
  948. #define FLD_PLL_SHIFT_REG 0x00007000
  949. #define FLD_PHASE_SHIFT 0x000007ff
  950. /*****************************************************************************/
  951. /* Cx231xx redefine */
  952. #define DPLL_CTRL2 0x868
  953. #define DIG_PLL_CTL2 0x868
  954. #define FLD_PLL_UNLOCK_THR 0xff000000
  955. #define FLD_PLL_LOCK_THR 0x00ff0000
  956. /* Reserved [15:8] */
  957. #define FLD_AM_PDF_SEL2 0x000000c0
  958. #define FLD_AM_PDF_SEL1 0x00000030
  959. #define FLD_DPLL_FSM_CTRL 0x0000000c
  960. /* Reserved [1] */
  961. #define FLD_PLL_PILOT_DET 0x00000001
  962. /*****************************************************************************/
  963. /* Cx231xx redefine */
  964. #define DPLL_CTRL3 0x86c
  965. #define DIG_PLL_CTL3 0x86c
  966. #define FLD_DISABLE_LOOP 0x01000000
  967. #define FLD_A1_DS1_SEL 0x000c0000
  968. #define FLD_A1_DS2_SEL 0x00030000
  969. #define FLD_A1_KI 0x0000ff00
  970. #define FLD_A1_KD 0x000000ff
  971. /*****************************************************************************/
  972. /* Cx231xx redefine */
  973. #define DPLL_CTRL4 0x870
  974. #define DIG_PLL_CTL4 0x870
  975. #define FLD_A2_DS1_SEL 0x000c0000
  976. #define FLD_A2_DS2_SEL 0x00030000
  977. #define FLD_A2_KI 0x0000ff00
  978. #define FLD_A2_KD 0x000000ff
  979. /*****************************************************************************/
  980. /* Cx231xx redefine */
  981. #define DPLL_CTRL5 0x874
  982. #define DIG_PLL_CTL5 0x874
  983. #define FLD_TRK_DS1_SEL 0x000c0000
  984. #define FLD_TRK_DS2_SEL 0x00030000
  985. #define FLD_TRK_KI 0x0000ff00
  986. #define FLD_TRK_KD 0x000000ff
  987. /*****************************************************************************/
  988. #define DEEMPH_GAIN_CTL 0x878
  989. #define FLD_DEEMPH2_GAIN 0xFFFF0000
  990. #define FLD_DEEMPH1_GAIN 0x0000FFFF
  991. /*****************************************************************************/
  992. /* Cx231xx redefine */
  993. #define DEEMPH_COEFF1 0x87c
  994. #define DEEMPH_COEF1 0x87c
  995. #define FLD_DEEMPH_B0 0xffff0000
  996. #define FLD_DEEMPH_A0 0x0000ffff
  997. /*****************************************************************************/
  998. /* Cx231xx redefine */
  999. #define DEEMPH_COEFF2 0x880
  1000. #define DEEMPH_COEF2 0x880
  1001. #define FLD_DEEMPH_B1 0xFFFF0000
  1002. #define FLD_DEEMPH_A1 0x0000FFFF
  1003. /*****************************************************************************/
  1004. #define DBX1_CTL1 0x884
  1005. #define FLD_DBX1_WBE_GAIN 0xffff0000
  1006. #define FLD_DBX1_IN_GAIN 0x0000ffff
  1007. /*****************************************************************************/
  1008. #define DBX1_CTL2 0x888
  1009. #define FLD_DBX1_SE_BYPASS 0xffff0000
  1010. #define FLD_DBX1_SE_GAIN 0x0000ffff
  1011. /*****************************************************************************/
  1012. #define DBX1_RMS_SE 0x88C
  1013. #define FLD_DBX1_RMS_WBE 0xffff0000
  1014. #define FLD_DBX1_RMS_SE_FLD 0x0000ffff
  1015. /*****************************************************************************/
  1016. #define DBX2_CTL1 0x890
  1017. #define FLD_DBX2_WBE_GAIN 0xffff0000
  1018. #define FLD_DBX2_IN_GAIN 0x0000ffff
  1019. /*****************************************************************************/
  1020. #define DBX2_CTL2 0x894
  1021. #define FLD_DBX2_SE_BYPASS 0xffff0000
  1022. #define FLD_DBX2_SE_GAIN 0x0000ffff
  1023. /*****************************************************************************/
  1024. #define DBX2_RMS_SE 0x898
  1025. #define FLD_DBX2_RMS_WBE 0xffff0000
  1026. #define FLD_DBX2_RMS_SE_FLD 0x0000ffff
  1027. /*****************************************************************************/
  1028. #define AM_FM_DIFF 0x89c
  1029. /* Reserved [31] */
  1030. #define FLD_FM_DIFF_OUT 0x7fff0000
  1031. /* Reserved [15] */
  1032. #define FLD_AM_DIFF_OUT 0x00007fff
  1033. /*****************************************************************************/
  1034. #define NICAM_FAW 0x8a0
  1035. #define FLD_FAWDETWINEND 0xFc000000
  1036. #define FLD_FAWDETWINSTR 0x03ff0000
  1037. /* Reserved [15:12] */
  1038. #define FLD_FAWDETTHRSHLD3 0x00000f00
  1039. #define FLD_FAWDETTHRSHLD2 0x000000f0
  1040. #define FLD_FAWDETTHRSHLD1 0x0000000f
  1041. /*****************************************************************************/
  1042. /* Cx231xx redefine */
  1043. #define DEEMPH_GAIN 0x8a4
  1044. #define NICAM_DEEMPHGAIN 0x8a4
  1045. /* Reserved [31:18] */
  1046. #define FLD_DEEMPHGAIN 0x0003ffff
  1047. /*****************************************************************************/
  1048. /* Cx231xx redefine */
  1049. #define DEEMPH_NUMER1 0x8a8
  1050. #define NICAM_DEEMPHNUMER1 0x8a8
  1051. /* Reserved [31:18] */
  1052. #define FLD_DEEMPHNUMER1 0x0003ffff
  1053. /*****************************************************************************/
  1054. /* Cx231xx redefine */
  1055. #define DEEMPH_NUMER2 0x8ac
  1056. #define NICAM_DEEMPHNUMER2 0x8ac
  1057. /* Reserved [31:18] */
  1058. #define FLD_DEEMPHNUMER2 0x0003ffff
  1059. /*****************************************************************************/
  1060. /* Cx231xx redefine */
  1061. #define DEEMPH_DENOM1 0x8b0
  1062. #define NICAM_DEEMPHDENOM1 0x8b0
  1063. /* Reserved [31:18] */
  1064. #define FLD_DEEMPHDENOM1 0x0003ffff
  1065. /*****************************************************************************/
  1066. /* Cx231xx redefine */
  1067. #define DEEMPH_DENOM2 0x8b4
  1068. #define NICAM_DEEMPHDENOM2 0x8b4
  1069. /* Reserved [31:18] */
  1070. #define FLD_DEEMPHDENOM2 0x0003ffff
  1071. /*****************************************************************************/
  1072. #define NICAM_ERRLOG_CTL1 0x8B8
  1073. /* Reserved [31:28] */
  1074. #define FLD_ERRINTRPTTHSHLD1 0x0fff0000
  1075. /* Reserved [15:12] */
  1076. #define FLD_ERRLOGPERIOD 0x00000fff
  1077. /*****************************************************************************/
  1078. #define NICAM_ERRLOG_CTL2 0x8bc
  1079. /* Reserved [31:28] */
  1080. #define FLD_ERRINTRPTTHSHLD3 0x0fff0000
  1081. /* Reserved [15:12] */
  1082. #define FLD_ERRINTRPTTHSHLD2 0x00000fff
  1083. /*****************************************************************************/
  1084. #define NICAM_ERRLOG_STS1 0x8c0
  1085. /* Reserved [31:28] */
  1086. #define FLD_ERRLOG2 0x0fff0000
  1087. /* Reserved [15:12] */
  1088. #define FLD_ERRLOG1 0x00000fff
  1089. /*****************************************************************************/
  1090. #define NICAM_ERRLOG_STS2 0x8c4
  1091. /* Reserved [31:12] */
  1092. #define FLD_ERRLOG3 0x00000fff
  1093. /*****************************************************************************/
  1094. #define NICAM_STATUS 0x8c8
  1095. /* Reserved [31:20] */
  1096. #define FLD_NICAM_CIB 0x000c0000
  1097. #define FLD_NICAM_LOCK_STAT 0x00020000
  1098. #define FLD_NICAM_MUTE 0x00010000
  1099. #define FLD_NICAMADDIT_DATA 0x0000ffe0
  1100. #define FLD_NICAMCNTRL 0x0000001f
  1101. /*****************************************************************************/
  1102. #define DEMATRIX_CTL 0x8cc
  1103. #define FLD_AC97_IN_SHIFT 0xf0000000
  1104. #define FLD_I2S_IN_SHIFT 0x0f000000
  1105. #define FLD_DEMATRIX_SEL_CTL 0x00ff0000
  1106. /* Reserved [15:11] */
  1107. #define FLD_DMTRX_BYPASS 0x00000400
  1108. #define FLD_DEMATRIX_MODE 0x00000300
  1109. /* Reserved [7:6] */
  1110. #define FLD_PH_DBX_SEL 0x00000020
  1111. #define FLD_PH_CH_SEL 0x00000010
  1112. #define FLD_PHASE_FIX 0x0000000f
  1113. /*****************************************************************************/
  1114. #define PATH1_CTL1 0x8d0
  1115. /* Reserved [31:29] */
  1116. #define FLD_PATH1_MUTE_CTL 0x1f000000
  1117. /* Reserved [23:22] */
  1118. #define FLD_PATH1_AVC_CG 0x00300000
  1119. #define FLD_PATH1_AVC_RT 0x000f0000
  1120. #define FLD_PATH1_AVC_AT 0x0000f000
  1121. #define FLD_PATH1_AVC_STEREO 0x00000800
  1122. #define FLD_PATH1_AVC_CR 0x00000700
  1123. #define FLD_PATH1_AVC_RMS_CON 0x000000f0
  1124. #define FLD_PATH1_SEL_CTL 0x0000000f
  1125. /*****************************************************************************/
  1126. #define PATH1_VOL_CTL 0x8d4
  1127. #define FLD_PATH1_AVC_THRESHOLD 0x7fff0000
  1128. #define FLD_PATH1_BAL_LEFT 0x00008000
  1129. #define FLD_PATH1_BAL_LEVEL 0x00007f00
  1130. #define FLD_PATH1_VOLUME 0x000000ff
  1131. /*****************************************************************************/
  1132. #define PATH1_EQ_CTL 0x8d8
  1133. /* Reserved [31:30] */
  1134. #define FLD_PATH1_EQ_TREBLE_VOL 0x3f000000
  1135. /* Reserved [23:22] */
  1136. #define FLD_PATH1_EQ_MID_VOL 0x003f0000
  1137. /* Reserved [15:14] */
  1138. #define FLD_PATH1_EQ_BASS_VOL 0x00003f00
  1139. /* Reserved [7:1] */
  1140. #define FLD_PATH1_EQ_BAND_SEL 0x00000001
  1141. /*****************************************************************************/
  1142. #define PATH1_SC_CTL 0x8dc
  1143. #define FLD_PATH1_SC_THRESHOLD 0x7fff0000
  1144. #define FLD_PATH1_SC_RT 0x0000f000
  1145. #define FLD_PATH1_SC_AT 0x00000f00
  1146. #define FLD_PATH1_SC_STEREO 0x00000080
  1147. #define FLD_PATH1_SC_CR 0x00000070
  1148. #define FLD_PATH1_SC_RMS_CON 0x0000000f
  1149. /*****************************************************************************/
  1150. #define PATH2_CTL1 0x8e0
  1151. /* Reserved [31:26] */
  1152. #define FLD_PATH2_MUTE_CTL 0x03000000
  1153. /* Reserved [23:22] */
  1154. #define FLD_PATH2_AVC_CG 0x00300000
  1155. #define FLD_PATH2_AVC_RT 0x000f0000
  1156. #define FLD_PATH2_AVC_AT 0x0000f000
  1157. #define FLD_PATH2_AVC_STEREO 0x00000800
  1158. #define FLD_PATH2_AVC_CR 0x00000700
  1159. #define FLD_PATH2_AVC_RMS_CON 0x000000f0
  1160. #define FLD_PATH2_SEL_CTL 0x0000000f
  1161. /*****************************************************************************/
  1162. #define PATH2_VOL_CTL 0x8e4
  1163. #define FLD_PATH2_AVC_THRESHOLD 0xffff0000
  1164. #define FLD_PATH2_BAL_LEFT 0x00008000
  1165. #define FLD_PATH2_BAL_LEVEL 0x00007f00
  1166. #define FLD_PATH2_VOLUME 0x000000ff
  1167. /*****************************************************************************/
  1168. #define PATH2_EQ_CTL 0x8e8
  1169. /* Reserved [31:30] */
  1170. #define FLD_PATH2_EQ_TREBLE_VOL 0x3f000000
  1171. /* Reserved [23:22] */
  1172. #define FLD_PATH2_EQ_MID_VOL 0x003f0000
  1173. /* Reserved [15:14] */
  1174. #define FLD_PATH2_EQ_BASS_VOL 0x00003f00
  1175. /* Reserved [7:1] */
  1176. #define FLD_PATH2_EQ_BAND_SEL 0x00000001
  1177. /*****************************************************************************/
  1178. #define PATH2_SC_CTL 0x8eC
  1179. #define FLD_PATH2_SC_THRESHOLD 0xffff0000
  1180. #define FLD_PATH2_SC_RT 0x0000f000
  1181. #define FLD_PATH2_SC_AT 0x00000f00
  1182. #define FLD_PATH2_SC_STEREO 0x00000080
  1183. #define FLD_PATH2_SC_CR 0x00000070
  1184. #define FLD_PATH2_SC_RMS_CON 0x0000000f
  1185. /*****************************************************************************/
  1186. #define SRC_CTL 0x8f0
  1187. #define FLD_SRC_STATUS 0xffffff00
  1188. #define FLD_FIFO_LF_EN 0x000000fc
  1189. #define FLD_BYPASS_LI 0x00000002
  1190. #define FLD_BYPASS_PF 0x00000001
  1191. /*****************************************************************************/
  1192. #define SRC_LF_COEF 0x8f4
  1193. #define FLD_LOOP_FILTER_COEF2 0xffff0000
  1194. #define FLD_LOOP_FILTER_COEF1 0x0000ffff
  1195. /*****************************************************************************/
  1196. #define SRC1_CTL 0x8f8
  1197. /* Reserved [31:28] */
  1198. #define FLD_SRC1_FIFO_RD_TH 0x0f000000
  1199. /* Reserved [23:18] */
  1200. #define FLD_SRC1_PHASE_INC 0x0003ffff
  1201. /*****************************************************************************/
  1202. #define SRC2_CTL 0x8fc
  1203. /* Reserved [31:28] */
  1204. #define FLD_SRC2_FIFO_RD_TH 0x0f000000
  1205. /* Reserved [23:18] */
  1206. #define FLD_SRC2_PHASE_INC 0x0003ffff
  1207. /*****************************************************************************/
  1208. #define SRC3_CTL 0x900
  1209. /* Reserved [31:28] */
  1210. #define FLD_SRC3_FIFO_RD_TH 0x0f000000
  1211. /* Reserved [23:18] */
  1212. #define FLD_SRC3_PHASE_INC 0x0003ffff
  1213. /*****************************************************************************/
  1214. #define SRC4_CTL 0x904
  1215. /* Reserved [31:28] */
  1216. #define FLD_SRC4_FIFO_RD_TH 0x0f000000
  1217. /* Reserved [23:18] */
  1218. #define FLD_SRC4_PHASE_INC 0x0003ffff
  1219. /*****************************************************************************/
  1220. #define SRC5_CTL 0x908
  1221. /* Reserved [31:28] */
  1222. #define FLD_SRC5_FIFO_RD_TH 0x0f000000
  1223. /* Reserved [23:18] */
  1224. #define FLD_SRC5_PHASE_INC 0x0003ffff
  1225. /*****************************************************************************/
  1226. #define SRC6_CTL 0x90c
  1227. /* Reserved [31:28] */
  1228. #define FLD_SRC6_FIFO_RD_TH 0x0f000000
  1229. /* Reserved [23:18] */
  1230. #define FLD_SRC6_PHASE_INC 0x0003ffff
  1231. /*****************************************************************************/
  1232. #define BAND_OUT_SEL 0x910
  1233. #define FLD_SRC6_IN_SEL 0xc0000000
  1234. #define FLD_SRC6_CLK_SEL 0x30000000
  1235. #define FLD_SRC5_IN_SEL 0x0c000000
  1236. #define FLD_SRC5_CLK_SEL 0x03000000
  1237. #define FLD_SRC4_IN_SEL 0x00c00000
  1238. #define FLD_SRC4_CLK_SEL 0x00300000
  1239. #define FLD_SRC3_IN_SEL 0x000c0000
  1240. #define FLD_SRC3_CLK_SEL 0x00030000
  1241. #define FLD_BASEBAND_BYPASS_CTL 0x0000ff00
  1242. #define FLD_AC97_SRC_SEL 0x000000c0
  1243. #define FLD_I2S_SRC_SEL 0x00000030
  1244. #define FLD_PARALLEL2_SRC_SEL 0x0000000c
  1245. #define FLD_PARALLEL1_SRC_SEL 0x00000003
  1246. /*****************************************************************************/
  1247. #define I2S_IN_CTL 0x914
  1248. /* Reserved [31:11] */
  1249. #define FLD_I2S_UP2X_BW20K 0x00000400
  1250. #define FLD_I2S_UP2X_BYPASS 0x00000200
  1251. #define FLD_I2S_IN_MASTER_MODE 0x00000100
  1252. #define FLD_I2S_IN_SONY_MODE 0x00000080
  1253. #define FLD_I2S_IN_RIGHT_JUST 0x00000040
  1254. #define FLD_I2S_IN_WS_SEL 0x00000020
  1255. #define FLD_I2S_IN_BCN_DEL 0x0000001f
  1256. /*****************************************************************************/
  1257. #define I2S_OUT_CTL 0x918
  1258. /* Reserved [31:17] */
  1259. #define FLD_I2S_OUT_SOFT_RESET_EN 0x00010000
  1260. /* Reserved [15:9] */
  1261. #define FLD_I2S_OUT_MASTER_MODE 0x00000100
  1262. #define FLD_I2S_OUT_SONY_MODE 0x00000080
  1263. #define FLD_I2S_OUT_RIGHT_JUST 0x00000040
  1264. #define FLD_I2S_OUT_WS_SEL 0x00000020
  1265. #define FLD_I2S_OUT_BCN_DEL 0x0000001f
  1266. /*****************************************************************************/
  1267. #define AC97_CTL 0x91c
  1268. /* Reserved [31:26] */
  1269. #define FLD_AC97_UP2X_BW20K 0x02000000
  1270. #define FLD_AC97_UP2X_BYPASS 0x01000000
  1271. /* Reserved [23:17] */
  1272. #define FLD_AC97_RST_ACL 0x00010000
  1273. /* Reserved [15:9] */
  1274. #define FLD_AC97_WAKE_UP_SYNC 0x00000100
  1275. /* Reserved [7:1] */
  1276. #define FLD_AC97_SHUTDOWN 0x00000001
  1277. /* Cx231xx redefine */
  1278. #define QPSK_IAGC_CTL1 0x94c
  1279. #define QPSK_IAGC_CTL2 0x950
  1280. #define QPSK_FEPR_FREQ 0x954
  1281. #define QPSK_BTL_CTL1 0x958
  1282. #define QPSK_BTL_CTL2 0x95c
  1283. #define QPSK_CTL_CTL1 0x960
  1284. #define QPSK_CTL_CTL2 0x964
  1285. #define QPSK_MF_FAGC_CTL 0x968
  1286. #define QPSK_EQ_CTL 0x96c
  1287. #define QPSK_LOCK_CTL 0x970
  1288. /*****************************************************************************/
  1289. #define FM1_DFT_CTL 0x9a8
  1290. #define FLD_FM1_DFT_THRESHOLD 0xffff0000
  1291. /* Reserved [15:8] */
  1292. #define FLD_FM1_DFT_CMP_CTL 0x00000080
  1293. #define FLD_FM1_DFT_AVG 0x00000070
  1294. /* Reserved [3:1] */
  1295. #define FLD_FM1_DFT_START 0x00000001
  1296. /*****************************************************************************/
  1297. #define FM1_DFT_STATUS 0x9ac
  1298. #define FLD_FM1_DFT_DONE 0x80000000
  1299. /* Reserved [30:19] */
  1300. #define FLD_FM_DFT_TH_CMP 0x00040000
  1301. #define FLD_FM1_DFT 0x0003ffff
  1302. /*****************************************************************************/
  1303. #define FM2_DFT_CTL 0x9b0
  1304. #define FLD_FM2_DFT_THRESHOLD 0xffff0000
  1305. /* Reserved [15:8] */
  1306. #define FLD_FM2_DFT_CMP_CTL 0x00000080
  1307. #define FLD_FM2_DFT_AVG 0x00000070
  1308. /* Reserved [3:1] */
  1309. #define FLD_FM2_DFT_START 0x00000001
  1310. /*****************************************************************************/
  1311. #define FM2_DFT_STATUS 0x9b4
  1312. #define FLD_FM2_DFT_DONE 0x80000000
  1313. /* Reserved [30:19] */
  1314. #define FLD_FM2_DFT_TH_CMP_STAT 0x00040000
  1315. #define FLD_FM2_DFT 0x0003ffff
  1316. /*****************************************************************************/
  1317. /* Cx231xx redefine */
  1318. #define AAGC_STATUS_REG 0x9b8
  1319. #define AAGC_STATUS 0x9b8
  1320. /* Reserved [31:27] */
  1321. #define FLD_FM2_DAGC_OUT 0x07000000
  1322. /* Reserved [23:19] */
  1323. #define FLD_FM1_DAGC_OUT 0x00070000
  1324. /* Reserved [15:6] */
  1325. #define FLD_AFE_VGA_OUT 0x0000003f
  1326. /*****************************************************************************/
  1327. #define MTS_GAIN_STATUS 0x9bc
  1328. /* Reserved [31:14] */
  1329. #define FLD_MTS_GAIN 0x00003fff
  1330. #define RDS_OUT 0x9c0
  1331. #define FLD_RDS_Q 0xffff0000
  1332. #define FLD_RDS_I 0x0000ffff
  1333. /*****************************************************************************/
  1334. #define AUTOCONFIG_REG 0x9c4
  1335. /* Reserved [31:4] */
  1336. #define FLD_AUTOCONFIG_MODE 0x0000000f
  1337. #define FM_AFC 0x9c8
  1338. #define FLD_FM2_AFC 0xffff0000
  1339. #define FLD_FM1_AFC 0x0000ffff
  1340. /*****************************************************************************/
  1341. /* Cx231xx redefine */
  1342. #define NEW_SPARE 0x9cc
  1343. #define NEW_SPARE_REG 0x9cc
  1344. /*****************************************************************************/
  1345. #define DBX_ADJ 0x9d0
  1346. /* Reserved [31:28] */
  1347. #define FLD_DBX2_ADJ 0x0fff0000
  1348. /* Reserved [15:12] */
  1349. #define FLD_DBX1_ADJ 0x00000fff
  1350. #define VID_FMT_AUTO 0
  1351. #define VID_FMT_NTSC_M 1
  1352. #define VID_FMT_NTSC_J 2
  1353. #define VID_FMT_NTSC_443 3
  1354. #define VID_FMT_PAL_BDGHI 4
  1355. #define VID_FMT_PAL_M 5
  1356. #define VID_FMT_PAL_N 6
  1357. #define VID_FMT_PAL_NC 7
  1358. #define VID_FMT_PAL_60 8
  1359. #define VID_FMT_SECAM 12
  1360. #define VID_FMT_SECAM_60 13
  1361. #define INPUT_MODE_CVBS_0 0 /* INPUT_MODE_VALUE(0) */
  1362. #define INPUT_MODE_YC_1 1 /* INPUT_MODE_VALUE(1) */
  1363. #define INPUT_MODE_YC2_2 2 /* INPUT_MODE_VALUE(2) */
  1364. #define INPUT_MODE_YUV_3 3 /* INPUT_MODE_VALUE(3) */
  1365. #define LUMA_LPF_LOW_BANDPASS 0 /* 0.6Mhz LPF BW */
  1366. #define LUMA_LPF_MEDIUM_BANDPASS 1 /* 1.0Mhz LPF BW */
  1367. #define LUMA_LPF_HIGH_BANDPASS 2 /* 1.5Mhz LPF BW */
  1368. #define UV_LPF_LOW_BANDPASS 0 /* 0.6Mhz LPF BW */
  1369. #define UV_LPF_MEDIUM_BANDPASS 1 /* 1.0Mhz LPF BW */
  1370. #define UV_LPF_HIGH_BANDPASS 2 /* 1.5Mhz LPF BW */
  1371. #define TWO_TAP_FILT 0
  1372. #define THREE_TAP_FILT 1
  1373. #define FOUR_TAP_FILT 2
  1374. #define FIVE_TAP_FILT 3
  1375. #define AUD_CHAN_SRC_PARALLEL 0
  1376. #define AUD_CHAN_SRC_I2S_INPUT 1
  1377. #define AUD_CHAN_SRC_FLATIRON 2
  1378. #define AUD_CHAN_SRC_PARALLEL3 3
  1379. #define OUT_MODE_601 0
  1380. #define OUT_MODE_656 1
  1381. #define OUT_MODE_VIP11 2
  1382. #define OUT_MODE_VIP20 3
  1383. #define PHASE_INC_49MHZ 0x0df22
  1384. #define PHASE_INC_56MHZ 0x0fa5b
  1385. #define PHASE_INC_28MHZ 0x010000
  1386. #endif