18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * cx88x-hw.h - CX2388x register offsets 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de) 68c2ecf20Sopenharmony_ci * 2001 Michael Eskin 78c2ecf20Sopenharmony_ci * 2002 Yurij Sysoev <yurij@naturesoft.net> 88c2ecf20Sopenharmony_ci * 2003 Gerd Knorr <kraxel@bytesex.org> 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#ifndef _CX88_REG_H_ 128c2ecf20Sopenharmony_ci#define _CX88_REG_H_ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* 158c2ecf20Sopenharmony_ci * PCI IDs and config space 168c2ecf20Sopenharmony_ci */ 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#ifndef PCI_VENDOR_ID_CONEXANT 198c2ecf20Sopenharmony_ci# define PCI_VENDOR_ID_CONEXANT 0x14F1 208c2ecf20Sopenharmony_ci#endif 218c2ecf20Sopenharmony_ci#ifndef PCI_DEVICE_ID_CX2300_VID 228c2ecf20Sopenharmony_ci# define PCI_DEVICE_ID_CX2300_VID 0x8800 238c2ecf20Sopenharmony_ci#endif 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#define CX88X_DEVCTRL 0x40 268c2ecf20Sopenharmony_ci#define CX88X_EN_TBFX 0x02 278c2ecf20Sopenharmony_ci#define CX88X_EN_VSFX 0x04 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci/* 308c2ecf20Sopenharmony_ci * PCI controller registers 318c2ecf20Sopenharmony_ci */ 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci/* Command and Status Register */ 348c2ecf20Sopenharmony_ci#define F0_CMD_STAT_MM 0x2f0004 358c2ecf20Sopenharmony_ci#define F1_CMD_STAT_MM 0x2f0104 368c2ecf20Sopenharmony_ci#define F2_CMD_STAT_MM 0x2f0204 378c2ecf20Sopenharmony_ci#define F3_CMD_STAT_MM 0x2f0304 388c2ecf20Sopenharmony_ci#define F4_CMD_STAT_MM 0x2f0404 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci/* Device Control #1 */ 418c2ecf20Sopenharmony_ci#define F0_DEV_CNTRL1_MM 0x2f0040 428c2ecf20Sopenharmony_ci#define F1_DEV_CNTRL1_MM 0x2f0140 438c2ecf20Sopenharmony_ci#define F2_DEV_CNTRL1_MM 0x2f0240 448c2ecf20Sopenharmony_ci#define F3_DEV_CNTRL1_MM 0x2f0340 458c2ecf20Sopenharmony_ci#define F4_DEV_CNTRL1_MM 0x2f0440 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci/* Device Control #1 */ 488c2ecf20Sopenharmony_ci#define F0_BAR0_MM 0x2f0010 498c2ecf20Sopenharmony_ci#define F1_BAR0_MM 0x2f0110 508c2ecf20Sopenharmony_ci#define F2_BAR0_MM 0x2f0210 518c2ecf20Sopenharmony_ci#define F3_BAR0_MM 0x2f0310 528c2ecf20Sopenharmony_ci#define F4_BAR0_MM 0x2f0410 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci/* 558c2ecf20Sopenharmony_ci * DMA Controller registers 568c2ecf20Sopenharmony_ci */ 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci#define MO_PDMA_STHRSH 0x200000 // Source threshold 598c2ecf20Sopenharmony_ci#define MO_PDMA_STADRS 0x200004 // Source target address 608c2ecf20Sopenharmony_ci#define MO_PDMA_SIADRS 0x200008 // Source internal address 618c2ecf20Sopenharmony_ci#define MO_PDMA_SCNTRL 0x20000C // Source control 628c2ecf20Sopenharmony_ci#define MO_PDMA_DTHRSH 0x200010 // Destination threshold 638c2ecf20Sopenharmony_ci#define MO_PDMA_DTADRS 0x200014 // Destination target address 648c2ecf20Sopenharmony_ci#define MO_PDMA_DIADRS 0x200018 // Destination internal address 658c2ecf20Sopenharmony_ci#define MO_PDMA_DCNTRL 0x20001C // Destination control 668c2ecf20Sopenharmony_ci#define MO_LD_SSID 0x200030 // Load subsystem ID 678c2ecf20Sopenharmony_ci#define MO_DEV_CNTRL2 0x200034 // Device control 688c2ecf20Sopenharmony_ci#define MO_PCI_INTMSK 0x200040 // PCI interrupt mask 698c2ecf20Sopenharmony_ci#define MO_PCI_INTSTAT 0x200044 // PCI interrupt status 708c2ecf20Sopenharmony_ci#define MO_PCI_INTMSTAT 0x200048 // PCI interrupt masked status 718c2ecf20Sopenharmony_ci#define MO_VID_INTMSK 0x200050 // Video interrupt mask 728c2ecf20Sopenharmony_ci#define MO_VID_INTSTAT 0x200054 // Video interrupt status 738c2ecf20Sopenharmony_ci#define MO_VID_INTMSTAT 0x200058 // Video interrupt masked status 748c2ecf20Sopenharmony_ci#define MO_VID_INTSSTAT 0x20005C // Video interrupt set status 758c2ecf20Sopenharmony_ci#define MO_AUD_INTMSK 0x200060 // Audio interrupt mask 768c2ecf20Sopenharmony_ci#define MO_AUD_INTSTAT 0x200064 // Audio interrupt status 778c2ecf20Sopenharmony_ci#define MO_AUD_INTMSTAT 0x200068 // Audio interrupt masked status 788c2ecf20Sopenharmony_ci#define MO_AUD_INTSSTAT 0x20006C // Audio interrupt set status 798c2ecf20Sopenharmony_ci#define MO_TS_INTMSK 0x200070 // Transport stream interrupt mask 808c2ecf20Sopenharmony_ci#define MO_TS_INTSTAT 0x200074 // Transport stream interrupt status 818c2ecf20Sopenharmony_ci#define MO_TS_INTMSTAT 0x200078 // Transport stream interrupt mask status 828c2ecf20Sopenharmony_ci#define MO_TS_INTSSTAT 0x20007C // Transport stream interrupt set status 838c2ecf20Sopenharmony_ci#define MO_VIP_INTMSK 0x200080 // VIP interrupt mask 848c2ecf20Sopenharmony_ci#define MO_VIP_INTSTAT 0x200084 // VIP interrupt status 858c2ecf20Sopenharmony_ci#define MO_VIP_INTMSTAT 0x200088 // VIP interrupt masked status 868c2ecf20Sopenharmony_ci#define MO_VIP_INTSSTAT 0x20008C // VIP interrupt set status 878c2ecf20Sopenharmony_ci#define MO_GPHST_INTMSK 0x200090 // Host interrupt mask 888c2ecf20Sopenharmony_ci#define MO_GPHST_INTSTAT 0x200094 // Host interrupt status 898c2ecf20Sopenharmony_ci#define MO_GPHST_INTMSTAT 0x200098 // Host interrupt masked status 908c2ecf20Sopenharmony_ci#define MO_GPHST_INTSSTAT 0x20009C // Host interrupt set status 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci// DMA Channels 1-6 belong to SPIPE 938c2ecf20Sopenharmony_ci#define MO_DMA7_PTR1 0x300018 // {24}RW* DMA Current Ptr : Ch#7 948c2ecf20Sopenharmony_ci#define MO_DMA8_PTR1 0x30001C // {24}RW* DMA Current Ptr : Ch#8 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ci// DMA Channels 9-20 belong to SPIPE 978c2ecf20Sopenharmony_ci#define MO_DMA21_PTR1 0x300080 // {24}R0* DMA Current Ptr : Ch#21 988c2ecf20Sopenharmony_ci#define MO_DMA22_PTR1 0x300084 // {24}R0* DMA Current Ptr : Ch#22 998c2ecf20Sopenharmony_ci#define MO_DMA23_PTR1 0x300088 // {24}R0* DMA Current Ptr : Ch#23 1008c2ecf20Sopenharmony_ci#define MO_DMA24_PTR1 0x30008C // {24}R0* DMA Current Ptr : Ch#24 1018c2ecf20Sopenharmony_ci#define MO_DMA25_PTR1 0x300090 // {24}R0* DMA Current Ptr : Ch#25 1028c2ecf20Sopenharmony_ci#define MO_DMA26_PTR1 0x300094 // {24}R0* DMA Current Ptr : Ch#26 1038c2ecf20Sopenharmony_ci#define MO_DMA27_PTR1 0x300098 // {24}R0* DMA Current Ptr : Ch#27 1048c2ecf20Sopenharmony_ci#define MO_DMA28_PTR1 0x30009C // {24}R0* DMA Current Ptr : Ch#28 1058c2ecf20Sopenharmony_ci#define MO_DMA29_PTR1 0x3000A0 // {24}R0* DMA Current Ptr : Ch#29 1068c2ecf20Sopenharmony_ci#define MO_DMA30_PTR1 0x3000A4 // {24}R0* DMA Current Ptr : Ch#30 1078c2ecf20Sopenharmony_ci#define MO_DMA31_PTR1 0x3000A8 // {24}R0* DMA Current Ptr : Ch#31 1088c2ecf20Sopenharmony_ci#define MO_DMA32_PTR1 0x3000AC // {24}R0* DMA Current Ptr : Ch#32 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ci#define MO_DMA21_PTR2 0x3000C0 // {24}RW* DMA Tab Ptr : Ch#21 1118c2ecf20Sopenharmony_ci#define MO_DMA22_PTR2 0x3000C4 // {24}RW* DMA Tab Ptr : Ch#22 1128c2ecf20Sopenharmony_ci#define MO_DMA23_PTR2 0x3000C8 // {24}RW* DMA Tab Ptr : Ch#23 1138c2ecf20Sopenharmony_ci#define MO_DMA24_PTR2 0x3000CC // {24}RW* DMA Tab Ptr : Ch#24 1148c2ecf20Sopenharmony_ci#define MO_DMA25_PTR2 0x3000D0 // {24}RW* DMA Tab Ptr : Ch#25 1158c2ecf20Sopenharmony_ci#define MO_DMA26_PTR2 0x3000D4 // {24}RW* DMA Tab Ptr : Ch#26 1168c2ecf20Sopenharmony_ci#define MO_DMA27_PTR2 0x3000D8 // {24}RW* DMA Tab Ptr : Ch#27 1178c2ecf20Sopenharmony_ci#define MO_DMA28_PTR2 0x3000DC // {24}RW* DMA Tab Ptr : Ch#28 1188c2ecf20Sopenharmony_ci#define MO_DMA29_PTR2 0x3000E0 // {24}RW* DMA Tab Ptr : Ch#29 1198c2ecf20Sopenharmony_ci#define MO_DMA30_PTR2 0x3000E4 // {24}RW* DMA Tab Ptr : Ch#30 1208c2ecf20Sopenharmony_ci#define MO_DMA31_PTR2 0x3000E8 // {24}RW* DMA Tab Ptr : Ch#31 1218c2ecf20Sopenharmony_ci#define MO_DMA32_PTR2 0x3000EC // {24}RW* DMA Tab Ptr : Ch#32 1228c2ecf20Sopenharmony_ci 1238c2ecf20Sopenharmony_ci#define MO_DMA21_CNT1 0x300100 // {11}RW* DMA Buffer Size : Ch#21 1248c2ecf20Sopenharmony_ci#define MO_DMA22_CNT1 0x300104 // {11}RW* DMA Buffer Size : Ch#22 1258c2ecf20Sopenharmony_ci#define MO_DMA23_CNT1 0x300108 // {11}RW* DMA Buffer Size : Ch#23 1268c2ecf20Sopenharmony_ci#define MO_DMA24_CNT1 0x30010C // {11}RW* DMA Buffer Size : Ch#24 1278c2ecf20Sopenharmony_ci#define MO_DMA25_CNT1 0x300110 // {11}RW* DMA Buffer Size : Ch#25 1288c2ecf20Sopenharmony_ci#define MO_DMA26_CNT1 0x300114 // {11}RW* DMA Buffer Size : Ch#26 1298c2ecf20Sopenharmony_ci#define MO_DMA27_CNT1 0x300118 // {11}RW* DMA Buffer Size : Ch#27 1308c2ecf20Sopenharmony_ci#define MO_DMA28_CNT1 0x30011C // {11}RW* DMA Buffer Size : Ch#28 1318c2ecf20Sopenharmony_ci#define MO_DMA29_CNT1 0x300120 // {11}RW* DMA Buffer Size : Ch#29 1328c2ecf20Sopenharmony_ci#define MO_DMA30_CNT1 0x300124 // {11}RW* DMA Buffer Size : Ch#30 1338c2ecf20Sopenharmony_ci#define MO_DMA31_CNT1 0x300128 // {11}RW* DMA Buffer Size : Ch#31 1348c2ecf20Sopenharmony_ci#define MO_DMA32_CNT1 0x30012C // {11}RW* DMA Buffer Size : Ch#32 1358c2ecf20Sopenharmony_ci 1368c2ecf20Sopenharmony_ci#define MO_DMA21_CNT2 0x300140 // {11}RW* DMA Table Size : Ch#21 1378c2ecf20Sopenharmony_ci#define MO_DMA22_CNT2 0x300144 // {11}RW* DMA Table Size : Ch#22 1388c2ecf20Sopenharmony_ci#define MO_DMA23_CNT2 0x300148 // {11}RW* DMA Table Size : Ch#23 1398c2ecf20Sopenharmony_ci#define MO_DMA24_CNT2 0x30014C // {11}RW* DMA Table Size : Ch#24 1408c2ecf20Sopenharmony_ci#define MO_DMA25_CNT2 0x300150 // {11}RW* DMA Table Size : Ch#25 1418c2ecf20Sopenharmony_ci#define MO_DMA26_CNT2 0x300154 // {11}RW* DMA Table Size : Ch#26 1428c2ecf20Sopenharmony_ci#define MO_DMA27_CNT2 0x300158 // {11}RW* DMA Table Size : Ch#27 1438c2ecf20Sopenharmony_ci#define MO_DMA28_CNT2 0x30015C // {11}RW* DMA Table Size : Ch#28 1448c2ecf20Sopenharmony_ci#define MO_DMA29_CNT2 0x300160 // {11}RW* DMA Table Size : Ch#29 1458c2ecf20Sopenharmony_ci#define MO_DMA30_CNT2 0x300164 // {11}RW* DMA Table Size : Ch#30 1468c2ecf20Sopenharmony_ci#define MO_DMA31_CNT2 0x300168 // {11}RW* DMA Table Size : Ch#31 1478c2ecf20Sopenharmony_ci#define MO_DMA32_CNT2 0x30016C // {11}RW* DMA Table Size : Ch#32 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ci/* 1508c2ecf20Sopenharmony_ci * Video registers 1518c2ecf20Sopenharmony_ci */ 1528c2ecf20Sopenharmony_ci 1538c2ecf20Sopenharmony_ci#define MO_VIDY_DMA 0x310000 // {64}RWp Video Y 1548c2ecf20Sopenharmony_ci#define MO_VIDU_DMA 0x310008 // {64}RWp Video U 1558c2ecf20Sopenharmony_ci#define MO_VIDV_DMA 0x310010 // {64}RWp Video V 1568c2ecf20Sopenharmony_ci#define MO_VBI_DMA 0x310018 // {64}RWp VBI (Vertical blanking interval) 1578c2ecf20Sopenharmony_ci 1588c2ecf20Sopenharmony_ci#define MO_DEVICE_STATUS 0x310100 1598c2ecf20Sopenharmony_ci#define MO_INPUT_FORMAT 0x310104 1608c2ecf20Sopenharmony_ci#define MO_AGC_BURST 0x31010c 1618c2ecf20Sopenharmony_ci#define MO_CONTR_BRIGHT 0x310110 1628c2ecf20Sopenharmony_ci#define MO_UV_SATURATION 0x310114 1638c2ecf20Sopenharmony_ci#define MO_HUE 0x310118 1648c2ecf20Sopenharmony_ci#define MO_HTOTAL 0x310120 1658c2ecf20Sopenharmony_ci#define MO_HDELAY_EVEN 0x310124 1668c2ecf20Sopenharmony_ci#define MO_HDELAY_ODD 0x310128 1678c2ecf20Sopenharmony_ci#define MO_VDELAY_ODD 0x31012c 1688c2ecf20Sopenharmony_ci#define MO_VDELAY_EVEN 0x310130 1698c2ecf20Sopenharmony_ci#define MO_HACTIVE_EVEN 0x31013c 1708c2ecf20Sopenharmony_ci#define MO_HACTIVE_ODD 0x310140 1718c2ecf20Sopenharmony_ci#define MO_VACTIVE_EVEN 0x310144 1728c2ecf20Sopenharmony_ci#define MO_VACTIVE_ODD 0x310148 1738c2ecf20Sopenharmony_ci#define MO_HSCALE_EVEN 0x31014c 1748c2ecf20Sopenharmony_ci#define MO_HSCALE_ODD 0x310150 1758c2ecf20Sopenharmony_ci#define MO_VSCALE_EVEN 0x310154 1768c2ecf20Sopenharmony_ci#define MO_FILTER_EVEN 0x31015c 1778c2ecf20Sopenharmony_ci#define MO_VSCALE_ODD 0x310158 1788c2ecf20Sopenharmony_ci#define MO_FILTER_ODD 0x310160 1798c2ecf20Sopenharmony_ci#define MO_OUTPUT_FORMAT 0x310164 1808c2ecf20Sopenharmony_ci 1818c2ecf20Sopenharmony_ci#define MO_PLL_REG 0x310168 // PLL register 1828c2ecf20Sopenharmony_ci#define MO_PLL_ADJ_CTRL 0x31016c // PLL adjust control register 1838c2ecf20Sopenharmony_ci#define MO_SCONV_REG 0x310170 // sample rate conversion register 1848c2ecf20Sopenharmony_ci#define MO_SCONV_FIFO 0x310174 // sample rate conversion fifo 1858c2ecf20Sopenharmony_ci#define MO_SUB_STEP 0x310178 // subcarrier step size 1868c2ecf20Sopenharmony_ci#define MO_SUB_STEP_DR 0x31017c // subcarrier step size for DR line 1878c2ecf20Sopenharmony_ci 1888c2ecf20Sopenharmony_ci#define MO_CAPTURE_CTRL 0x310180 // capture control 1898c2ecf20Sopenharmony_ci#define MO_COLOR_CTRL 0x310184 1908c2ecf20Sopenharmony_ci#define MO_VBI_PACKET 0x310188 // vbi packet size / delay 1918c2ecf20Sopenharmony_ci#define MO_FIELD_COUNT 0x310190 // field counter 1928c2ecf20Sopenharmony_ci#define MO_VIP_CONFIG 0x310194 1938c2ecf20Sopenharmony_ci#define MO_VBOS_CONTROL 0x3101a8 1948c2ecf20Sopenharmony_ci 1958c2ecf20Sopenharmony_ci#define MO_AGC_BACK_VBI 0x310200 1968c2ecf20Sopenharmony_ci#define MO_AGC_SYNC_TIP1 0x310208 1978c2ecf20Sopenharmony_ci 1988c2ecf20Sopenharmony_ci#define MO_VIDY_GPCNT 0x31C020 // {16}RO Video Y general purpose counter 1998c2ecf20Sopenharmony_ci#define MO_VIDU_GPCNT 0x31C024 // {16}RO Video U general purpose counter 2008c2ecf20Sopenharmony_ci#define MO_VIDV_GPCNT 0x31C028 // {16}RO Video V general purpose counter 2018c2ecf20Sopenharmony_ci#define MO_VBI_GPCNT 0x31C02C // {16}RO VBI general purpose counter 2028c2ecf20Sopenharmony_ci#define MO_VIDY_GPCNTRL 0x31C030 // {2}WO Video Y general purpose control 2038c2ecf20Sopenharmony_ci#define MO_VIDU_GPCNTRL 0x31C034 // {2}WO Video U general purpose control 2048c2ecf20Sopenharmony_ci#define MO_VIDV_GPCNTRL 0x31C038 // {2}WO Video V general purpose control 2058c2ecf20Sopenharmony_ci#define MO_VBI_GPCNTRL 0x31C03C // {2}WO VBI general purpose counter 2068c2ecf20Sopenharmony_ci#define MO_VID_DMACNTRL 0x31C040 // {8}RW Video DMA control 2078c2ecf20Sopenharmony_ci#define MO_VID_XFR_STAT 0x31C044 // {1}RO Video transfer status 2088c2ecf20Sopenharmony_ci 2098c2ecf20Sopenharmony_ci/* 2108c2ecf20Sopenharmony_ci * audio registers 2118c2ecf20Sopenharmony_ci */ 2128c2ecf20Sopenharmony_ci 2138c2ecf20Sopenharmony_ci#define MO_AUDD_DMA 0x320000 // {64}RWp Audio downstream 2148c2ecf20Sopenharmony_ci#define MO_AUDU_DMA 0x320008 // {64}RWp Audio upstream 2158c2ecf20Sopenharmony_ci#define MO_AUDR_DMA 0x320010 // {64}RWp Audio RDS (downstream) 2168c2ecf20Sopenharmony_ci#define MO_AUDD_GPCNT 0x32C020 // {16}RO Audio down general purpose counter 2178c2ecf20Sopenharmony_ci#define MO_AUDU_GPCNT 0x32C024 // {16}RO Audio up general purpose counter 2188c2ecf20Sopenharmony_ci#define MO_AUDR_GPCNT 0x32C028 // {16}RO Audio RDS general purpose counter 2198c2ecf20Sopenharmony_ci#define MO_AUDD_GPCNTRL 0x32C030 // {2}WO Audio down general purpose control 2208c2ecf20Sopenharmony_ci#define MO_AUDU_GPCNTRL 0x32C034 // {2}WO Audio up general purpose control 2218c2ecf20Sopenharmony_ci#define MO_AUDR_GPCNTRL 0x32C038 // {2}WO Audio RDS general purpose control 2228c2ecf20Sopenharmony_ci#define MO_AUD_DMACNTRL 0x32C040 // {6}RW Audio DMA control 2238c2ecf20Sopenharmony_ci#define MO_AUD_XFR_STAT 0x32C044 // {1}RO Audio transfer status 2248c2ecf20Sopenharmony_ci#define MO_AUDD_LNGTH 0x32C048 // {12}RW Audio down line length 2258c2ecf20Sopenharmony_ci#define MO_AUDR_LNGTH 0x32C04C // {12}RW Audio RDS line length 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ci#define AUD_INIT 0x320100 2288c2ecf20Sopenharmony_ci#define AUD_INIT_LD 0x320104 2298c2ecf20Sopenharmony_ci#define AUD_SOFT_RESET 0x320108 2308c2ecf20Sopenharmony_ci#define AUD_I2SINPUTCNTL 0x320120 2318c2ecf20Sopenharmony_ci#define AUD_BAUDRATE 0x320124 2328c2ecf20Sopenharmony_ci#define AUD_I2SOUTPUTCNTL 0x320128 2338c2ecf20Sopenharmony_ci#define AAGC_HYST 0x320134 2348c2ecf20Sopenharmony_ci#define AAGC_GAIN 0x320138 2358c2ecf20Sopenharmony_ci#define AAGC_DEF 0x32013c 2368c2ecf20Sopenharmony_ci#define AUD_IIR1_0_SEL 0x320150 2378c2ecf20Sopenharmony_ci#define AUD_IIR1_0_SHIFT 0x320154 2388c2ecf20Sopenharmony_ci#define AUD_IIR1_1_SEL 0x320158 2398c2ecf20Sopenharmony_ci#define AUD_IIR1_1_SHIFT 0x32015c 2408c2ecf20Sopenharmony_ci#define AUD_IIR1_2_SEL 0x320160 2418c2ecf20Sopenharmony_ci#define AUD_IIR1_2_SHIFT 0x320164 2428c2ecf20Sopenharmony_ci#define AUD_IIR1_3_SEL 0x320168 2438c2ecf20Sopenharmony_ci#define AUD_IIR1_3_SHIFT 0x32016c 2448c2ecf20Sopenharmony_ci#define AUD_IIR1_4_SEL 0x320170 2458c2ecf20Sopenharmony_ci#define AUD_IIR1_4_SHIFT 0x32017c 2468c2ecf20Sopenharmony_ci#define AUD_IIR1_5_SEL 0x320180 2478c2ecf20Sopenharmony_ci#define AUD_IIR1_5_SHIFT 0x320184 2488c2ecf20Sopenharmony_ci#define AUD_IIR2_0_SEL 0x320190 2498c2ecf20Sopenharmony_ci#define AUD_IIR2_0_SHIFT 0x320194 2508c2ecf20Sopenharmony_ci#define AUD_IIR2_1_SEL 0x320198 2518c2ecf20Sopenharmony_ci#define AUD_IIR2_1_SHIFT 0x32019c 2528c2ecf20Sopenharmony_ci#define AUD_IIR2_2_SEL 0x3201a0 2538c2ecf20Sopenharmony_ci#define AUD_IIR2_2_SHIFT 0x3201a4 2548c2ecf20Sopenharmony_ci#define AUD_IIR2_3_SEL 0x3201a8 2558c2ecf20Sopenharmony_ci#define AUD_IIR2_3_SHIFT 0x3201ac 2568c2ecf20Sopenharmony_ci#define AUD_IIR3_0_SEL 0x3201c0 2578c2ecf20Sopenharmony_ci#define AUD_IIR3_0_SHIFT 0x3201c4 2588c2ecf20Sopenharmony_ci#define AUD_IIR3_1_SEL 0x3201c8 2598c2ecf20Sopenharmony_ci#define AUD_IIR3_1_SHIFT 0x3201cc 2608c2ecf20Sopenharmony_ci#define AUD_IIR3_2_SEL 0x3201d0 2618c2ecf20Sopenharmony_ci#define AUD_IIR3_2_SHIFT 0x3201d4 2628c2ecf20Sopenharmony_ci#define AUD_IIR4_0_SEL 0x3201e0 2638c2ecf20Sopenharmony_ci#define AUD_IIR4_0_SHIFT 0x3201e4 2648c2ecf20Sopenharmony_ci#define AUD_IIR4_1_SEL 0x3201e8 2658c2ecf20Sopenharmony_ci#define AUD_IIR4_1_SHIFT 0x3201ec 2668c2ecf20Sopenharmony_ci#define AUD_IIR4_2_SEL 0x3201f0 2678c2ecf20Sopenharmony_ci#define AUD_IIR4_2_SHIFT 0x3201f4 2688c2ecf20Sopenharmony_ci#define AUD_IIR4_0_CA0 0x320200 2698c2ecf20Sopenharmony_ci#define AUD_IIR4_0_CA1 0x320204 2708c2ecf20Sopenharmony_ci#define AUD_IIR4_0_CA2 0x320208 2718c2ecf20Sopenharmony_ci#define AUD_IIR4_0_CB0 0x32020c 2728c2ecf20Sopenharmony_ci#define AUD_IIR4_0_CB1 0x320210 2738c2ecf20Sopenharmony_ci#define AUD_IIR4_1_CA0 0x320214 2748c2ecf20Sopenharmony_ci#define AUD_IIR4_1_CA1 0x320218 2758c2ecf20Sopenharmony_ci#define AUD_IIR4_1_CA2 0x32021c 2768c2ecf20Sopenharmony_ci#define AUD_IIR4_1_CB0 0x320220 2778c2ecf20Sopenharmony_ci#define AUD_IIR4_1_CB1 0x320224 2788c2ecf20Sopenharmony_ci#define AUD_IIR4_2_CA0 0x320228 2798c2ecf20Sopenharmony_ci#define AUD_IIR4_2_CA1 0x32022c 2808c2ecf20Sopenharmony_ci#define AUD_IIR4_2_CA2 0x320230 2818c2ecf20Sopenharmony_ci#define AUD_IIR4_2_CB0 0x320234 2828c2ecf20Sopenharmony_ci#define AUD_IIR4_2_CB1 0x320238 2838c2ecf20Sopenharmony_ci#define AUD_HP_MD_IIR4_1 0x320250 2848c2ecf20Sopenharmony_ci#define AUD_HP_PROG_IIR4_1 0x320254 2858c2ecf20Sopenharmony_ci#define AUD_FM_MODE_ENABLE 0x320258 2868c2ecf20Sopenharmony_ci#define AUD_POLY0_DDS_CONSTANT 0x320270 2878c2ecf20Sopenharmony_ci#define AUD_DN0_FREQ 0x320274 2888c2ecf20Sopenharmony_ci#define AUD_DN1_FREQ 0x320278 2898c2ecf20Sopenharmony_ci#define AUD_DN1_FREQ_SHIFT 0x32027c 2908c2ecf20Sopenharmony_ci#define AUD_DN1_AFC 0x320280 2918c2ecf20Sopenharmony_ci#define AUD_DN1_SRC_SEL 0x320284 2928c2ecf20Sopenharmony_ci#define AUD_DN1_SHFT 0x320288 2938c2ecf20Sopenharmony_ci#define AUD_DN2_FREQ 0x32028c 2948c2ecf20Sopenharmony_ci#define AUD_DN2_FREQ_SHIFT 0x320290 2958c2ecf20Sopenharmony_ci#define AUD_DN2_AFC 0x320294 2968c2ecf20Sopenharmony_ci#define AUD_DN2_SRC_SEL 0x320298 2978c2ecf20Sopenharmony_ci#define AUD_DN2_SHFT 0x32029c 2988c2ecf20Sopenharmony_ci#define AUD_CRDC0_SRC_SEL 0x320300 2998c2ecf20Sopenharmony_ci#define AUD_CRDC0_SHIFT 0x320304 3008c2ecf20Sopenharmony_ci#define AUD_CORDIC_SHIFT_0 0x320308 3018c2ecf20Sopenharmony_ci#define AUD_CRDC1_SRC_SEL 0x32030c 3028c2ecf20Sopenharmony_ci#define AUD_CRDC1_SHIFT 0x320310 3038c2ecf20Sopenharmony_ci#define AUD_CORDIC_SHIFT_1 0x320314 3048c2ecf20Sopenharmony_ci#define AUD_DCOC_0_SRC 0x320320 3058c2ecf20Sopenharmony_ci#define AUD_DCOC0_SHIFT 0x320324 3068c2ecf20Sopenharmony_ci#define AUD_DCOC_0_SHIFT_IN0 0x320328 3078c2ecf20Sopenharmony_ci#define AUD_DCOC_0_SHIFT_IN1 0x32032c 3088c2ecf20Sopenharmony_ci#define AUD_DCOC_1_SRC 0x320330 3098c2ecf20Sopenharmony_ci#define AUD_DCOC1_SHIFT 0x320334 3108c2ecf20Sopenharmony_ci#define AUD_DCOC_1_SHIFT_IN0 0x320338 3118c2ecf20Sopenharmony_ci#define AUD_DCOC_1_SHIFT_IN1 0x32033c 3128c2ecf20Sopenharmony_ci#define AUD_DCOC_2_SRC 0x320340 3138c2ecf20Sopenharmony_ci#define AUD_DCOC2_SHIFT 0x320344 3148c2ecf20Sopenharmony_ci#define AUD_DCOC_2_SHIFT_IN0 0x320348 3158c2ecf20Sopenharmony_ci#define AUD_DCOC_2_SHIFT_IN1 0x32034c 3168c2ecf20Sopenharmony_ci#define AUD_DCOC_PASS_IN 0x320350 3178c2ecf20Sopenharmony_ci#define AUD_PDET_SRC 0x320370 3188c2ecf20Sopenharmony_ci#define AUD_PDET_SHIFT 0x320374 3198c2ecf20Sopenharmony_ci#define AUD_PILOT_BQD_1_K0 0x320380 3208c2ecf20Sopenharmony_ci#define AUD_PILOT_BQD_1_K1 0x320384 3218c2ecf20Sopenharmony_ci#define AUD_PILOT_BQD_1_K2 0x320388 3228c2ecf20Sopenharmony_ci#define AUD_PILOT_BQD_1_K3 0x32038c 3238c2ecf20Sopenharmony_ci#define AUD_PILOT_BQD_1_K4 0x320390 3248c2ecf20Sopenharmony_ci#define AUD_PILOT_BQD_2_K0 0x320394 3258c2ecf20Sopenharmony_ci#define AUD_PILOT_BQD_2_K1 0x320398 3268c2ecf20Sopenharmony_ci#define AUD_PILOT_BQD_2_K2 0x32039c 3278c2ecf20Sopenharmony_ci#define AUD_PILOT_BQD_2_K3 0x3203a0 3288c2ecf20Sopenharmony_ci#define AUD_PILOT_BQD_2_K4 0x3203a4 3298c2ecf20Sopenharmony_ci#define AUD_THR_FR 0x3203c0 3308c2ecf20Sopenharmony_ci#define AUD_X_PROG 0x3203c4 3318c2ecf20Sopenharmony_ci#define AUD_Y_PROG 0x3203c8 3328c2ecf20Sopenharmony_ci#define AUD_HARMONIC_MULT 0x3203cc 3338c2ecf20Sopenharmony_ci#define AUD_C1_UP_THR 0x3203d0 3348c2ecf20Sopenharmony_ci#define AUD_C1_LO_THR 0x3203d4 3358c2ecf20Sopenharmony_ci#define AUD_C2_UP_THR 0x3203d8 3368c2ecf20Sopenharmony_ci#define AUD_C2_LO_THR 0x3203dc 3378c2ecf20Sopenharmony_ci#define AUD_PLL_EN 0x320400 3388c2ecf20Sopenharmony_ci#define AUD_PLL_SRC 0x320404 3398c2ecf20Sopenharmony_ci#define AUD_PLL_SHIFT 0x320408 3408c2ecf20Sopenharmony_ci#define AUD_PLL_IF_SEL 0x32040c 3418c2ecf20Sopenharmony_ci#define AUD_PLL_IF_SHIFT 0x320410 3428c2ecf20Sopenharmony_ci#define AUD_BIQUAD_PLL_K0 0x320414 3438c2ecf20Sopenharmony_ci#define AUD_BIQUAD_PLL_K1 0x320418 3448c2ecf20Sopenharmony_ci#define AUD_BIQUAD_PLL_K2 0x32041c 3458c2ecf20Sopenharmony_ci#define AUD_BIQUAD_PLL_K3 0x320420 3468c2ecf20Sopenharmony_ci#define AUD_BIQUAD_PLL_K4 0x320424 3478c2ecf20Sopenharmony_ci#define AUD_DEEMPH0_SRC_SEL 0x320440 3488c2ecf20Sopenharmony_ci#define AUD_DEEMPH0_SHIFT 0x320444 3498c2ecf20Sopenharmony_ci#define AUD_DEEMPH0_G0 0x320448 3508c2ecf20Sopenharmony_ci#define AUD_DEEMPH0_A0 0x32044c 3518c2ecf20Sopenharmony_ci#define AUD_DEEMPH0_B0 0x320450 3528c2ecf20Sopenharmony_ci#define AUD_DEEMPH0_A1 0x320454 3538c2ecf20Sopenharmony_ci#define AUD_DEEMPH0_B1 0x320458 3548c2ecf20Sopenharmony_ci#define AUD_DEEMPH1_SRC_SEL 0x32045c 3558c2ecf20Sopenharmony_ci#define AUD_DEEMPH1_SHIFT 0x320460 3568c2ecf20Sopenharmony_ci#define AUD_DEEMPH1_G0 0x320464 3578c2ecf20Sopenharmony_ci#define AUD_DEEMPH1_A0 0x320468 3588c2ecf20Sopenharmony_ci#define AUD_DEEMPH1_B0 0x32046c 3598c2ecf20Sopenharmony_ci#define AUD_DEEMPH1_A1 0x320470 3608c2ecf20Sopenharmony_ci#define AUD_DEEMPH1_B1 0x320474 3618c2ecf20Sopenharmony_ci#define AUD_OUT0_SEL 0x320490 3628c2ecf20Sopenharmony_ci#define AUD_OUT0_SHIFT 0x320494 3638c2ecf20Sopenharmony_ci#define AUD_OUT1_SEL 0x320498 3648c2ecf20Sopenharmony_ci#define AUD_OUT1_SHIFT 0x32049c 3658c2ecf20Sopenharmony_ci#define AUD_RDSI_SEL 0x3204a0 3668c2ecf20Sopenharmony_ci#define AUD_RDSI_SHIFT 0x3204a4 3678c2ecf20Sopenharmony_ci#define AUD_RDSQ_SEL 0x3204a8 3688c2ecf20Sopenharmony_ci#define AUD_RDSQ_SHIFT 0x3204ac 3698c2ecf20Sopenharmony_ci#define AUD_DBX_IN_GAIN 0x320500 3708c2ecf20Sopenharmony_ci#define AUD_DBX_WBE_GAIN 0x320504 3718c2ecf20Sopenharmony_ci#define AUD_DBX_SE_GAIN 0x320508 3728c2ecf20Sopenharmony_ci#define AUD_DBX_RMS_WBE 0x32050c 3738c2ecf20Sopenharmony_ci#define AUD_DBX_RMS_SE 0x320510 3748c2ecf20Sopenharmony_ci#define AUD_DBX_SE_BYPASS 0x320514 3758c2ecf20Sopenharmony_ci#define AUD_FAWDETCTL 0x320530 3768c2ecf20Sopenharmony_ci#define AUD_FAWDETWINCTL 0x320534 3778c2ecf20Sopenharmony_ci#define AUD_DEEMPHGAIN_R 0x320538 3788c2ecf20Sopenharmony_ci#define AUD_DEEMPHNUMER1_R 0x32053c 3798c2ecf20Sopenharmony_ci#define AUD_DEEMPHNUMER2_R 0x320540 3808c2ecf20Sopenharmony_ci#define AUD_DEEMPHDENOM1_R 0x320544 3818c2ecf20Sopenharmony_ci#define AUD_DEEMPHDENOM2_R 0x320548 3828c2ecf20Sopenharmony_ci#define AUD_ERRLOGPERIOD_R 0x32054c 3838c2ecf20Sopenharmony_ci#define AUD_ERRINTRPTTHSHLD1_R 0x320550 3848c2ecf20Sopenharmony_ci#define AUD_ERRINTRPTTHSHLD2_R 0x320554 3858c2ecf20Sopenharmony_ci#define AUD_ERRINTRPTTHSHLD3_R 0x320558 3868c2ecf20Sopenharmony_ci#define AUD_NICAM_STATUS1 0x32055c 3878c2ecf20Sopenharmony_ci#define AUD_NICAM_STATUS2 0x320560 3888c2ecf20Sopenharmony_ci#define AUD_ERRLOG1 0x320564 3898c2ecf20Sopenharmony_ci#define AUD_ERRLOG2 0x320568 3908c2ecf20Sopenharmony_ci#define AUD_ERRLOG3 0x32056c 3918c2ecf20Sopenharmony_ci#define AUD_DAC_BYPASS_L 0x320580 3928c2ecf20Sopenharmony_ci#define AUD_DAC_BYPASS_R 0x320584 3938c2ecf20Sopenharmony_ci#define AUD_DAC_BYPASS_CTL 0x320588 3948c2ecf20Sopenharmony_ci#define AUD_CTL 0x32058c 3958c2ecf20Sopenharmony_ci#define AUD_STATUS 0x320590 3968c2ecf20Sopenharmony_ci#define AUD_VOL_CTL 0x320594 3978c2ecf20Sopenharmony_ci#define AUD_BAL_CTL 0x320598 3988c2ecf20Sopenharmony_ci#define AUD_START_TIMER 0x3205b0 3998c2ecf20Sopenharmony_ci#define AUD_MODE_CHG_TIMER 0x3205b4 4008c2ecf20Sopenharmony_ci#define AUD_POLYPH80SCALEFAC 0x3205b8 4018c2ecf20Sopenharmony_ci#define AUD_DMD_RA_DDS 0x3205bc 4028c2ecf20Sopenharmony_ci#define AUD_I2S_RA_DDS 0x3205c0 4038c2ecf20Sopenharmony_ci#define AUD_RATE_THRES_DMD 0x3205d0 4048c2ecf20Sopenharmony_ci#define AUD_RATE_THRES_I2S 0x3205d4 4058c2ecf20Sopenharmony_ci#define AUD_RATE_ADJ1 0x3205d8 4068c2ecf20Sopenharmony_ci#define AUD_RATE_ADJ2 0x3205dc 4078c2ecf20Sopenharmony_ci#define AUD_RATE_ADJ3 0x3205e0 4088c2ecf20Sopenharmony_ci#define AUD_RATE_ADJ4 0x3205e4 4098c2ecf20Sopenharmony_ci#define AUD_RATE_ADJ5 0x3205e8 4108c2ecf20Sopenharmony_ci#define AUD_APB_IN_RATE_ADJ 0x3205ec 4118c2ecf20Sopenharmony_ci#define AUD_I2SCNTL 0x3205ec 4128c2ecf20Sopenharmony_ci#define AUD_PHASE_FIX_CTL 0x3205f0 4138c2ecf20Sopenharmony_ci#define AUD_PLL_PRESCALE 0x320600 4148c2ecf20Sopenharmony_ci#define AUD_PLL_DDS 0x320604 4158c2ecf20Sopenharmony_ci#define AUD_PLL_INT 0x320608 4168c2ecf20Sopenharmony_ci#define AUD_PLL_FRAC 0x32060c 4178c2ecf20Sopenharmony_ci#define AUD_PLL_JTAG 0x320620 4188c2ecf20Sopenharmony_ci#define AUD_PLL_SPMP 0x320624 4198c2ecf20Sopenharmony_ci#define AUD_AFE_12DB_EN 0x320628 4208c2ecf20Sopenharmony_ci 4218c2ecf20Sopenharmony_ci// Audio QAM Register Addresses 4228c2ecf20Sopenharmony_ci#define AUD_PDF_DDS_CNST_BYTE2 0x320d01 4238c2ecf20Sopenharmony_ci#define AUD_PDF_DDS_CNST_BYTE1 0x320d02 4248c2ecf20Sopenharmony_ci#define AUD_PDF_DDS_CNST_BYTE0 0x320d03 4258c2ecf20Sopenharmony_ci#define AUD_PHACC_FREQ_8MSB 0x320d2a 4268c2ecf20Sopenharmony_ci#define AUD_PHACC_FREQ_8LSB 0x320d2b 4278c2ecf20Sopenharmony_ci#define AUD_QAM_MODE 0x320d04 4288c2ecf20Sopenharmony_ci 4298c2ecf20Sopenharmony_ci/* 4308c2ecf20Sopenharmony_ci * transport stream registers 4318c2ecf20Sopenharmony_ci */ 4328c2ecf20Sopenharmony_ci 4338c2ecf20Sopenharmony_ci#define MO_TS_DMA 0x330000 // {64}RWp Transport stream downstream 4348c2ecf20Sopenharmony_ci#define MO_TS_GPCNT 0x33C020 // {16}RO TS general purpose counter 4358c2ecf20Sopenharmony_ci#define MO_TS_GPCNTRL 0x33C030 // {2}WO TS general purpose control 4368c2ecf20Sopenharmony_ci#define MO_TS_DMACNTRL 0x33C040 // {6}RW TS DMA control 4378c2ecf20Sopenharmony_ci#define MO_TS_XFR_STAT 0x33C044 // {1}RO TS transfer status 4388c2ecf20Sopenharmony_ci#define MO_TS_LNGTH 0x33C048 // {12}RW TS line length 4398c2ecf20Sopenharmony_ci 4408c2ecf20Sopenharmony_ci#define TS_HW_SOP_CNTRL 0x33C04C 4418c2ecf20Sopenharmony_ci#define TS_GEN_CNTRL 0x33C050 4428c2ecf20Sopenharmony_ci#define TS_BD_PKT_STAT 0x33C054 4438c2ecf20Sopenharmony_ci#define TS_SOP_STAT 0x33C058 4448c2ecf20Sopenharmony_ci#define TS_FIFO_OVFL_STAT 0x33C05C 4458c2ecf20Sopenharmony_ci#define TS_VALERR_CNTRL 0x33C060 4468c2ecf20Sopenharmony_ci 4478c2ecf20Sopenharmony_ci/* 4488c2ecf20Sopenharmony_ci * VIP registers 4498c2ecf20Sopenharmony_ci */ 4508c2ecf20Sopenharmony_ci 4518c2ecf20Sopenharmony_ci#define MO_VIPD_DMA 0x340000 // {64}RWp VIP downstream 4528c2ecf20Sopenharmony_ci#define MO_VIPU_DMA 0x340008 // {64}RWp VIP upstream 4538c2ecf20Sopenharmony_ci#define MO_VIPD_GPCNT 0x34C020 // {16}RO VIP down general purpose counter 4548c2ecf20Sopenharmony_ci#define MO_VIPU_GPCNT 0x34C024 // {16}RO VIP up general purpose counter 4558c2ecf20Sopenharmony_ci#define MO_VIPD_GPCNTRL 0x34C030 // {2}WO VIP down general purpose control 4568c2ecf20Sopenharmony_ci#define MO_VIPU_GPCNTRL 0x34C034 // {2}WO VIP up general purpose control 4578c2ecf20Sopenharmony_ci#define MO_VIP_DMACNTRL 0x34C040 // {6}RW VIP DMA control 4588c2ecf20Sopenharmony_ci#define MO_VIP_XFR_STAT 0x34C044 // {1}RO VIP transfer status 4598c2ecf20Sopenharmony_ci#define MO_VIP_CFG 0x340048 // VIP configuration 4608c2ecf20Sopenharmony_ci#define MO_VIPU_CNTRL 0x34004C // VIP upstream control #1 4618c2ecf20Sopenharmony_ci#define MO_VIPD_CNTRL 0x340050 // VIP downstream control #2 4628c2ecf20Sopenharmony_ci#define MO_VIPD_LNGTH 0x340054 // VIP downstream line length 4638c2ecf20Sopenharmony_ci#define MO_VIP_BRSTLN 0x340058 // VIP burst length 4648c2ecf20Sopenharmony_ci#define MO_VIP_INTCNTRL 0x34C05C // VIP Interrupt Control 4658c2ecf20Sopenharmony_ci#define MO_VIP_XFTERM 0x340060 // VIP transfer terminate 4668c2ecf20Sopenharmony_ci 4678c2ecf20Sopenharmony_ci/* 4688c2ecf20Sopenharmony_ci * misc registers 4698c2ecf20Sopenharmony_ci */ 4708c2ecf20Sopenharmony_ci 4718c2ecf20Sopenharmony_ci#define MO_M2M_DMA 0x350000 // {64}RWp Mem2Mem DMA Bfr 4728c2ecf20Sopenharmony_ci#define MO_GP0_IO 0x350010 // {32}RW* GPIOoutput enablesdata I/O 4738c2ecf20Sopenharmony_ci#define MO_GP1_IO 0x350014 // {32}RW* GPIOoutput enablesdata I/O 4748c2ecf20Sopenharmony_ci#define MO_GP2_IO 0x350018 // {32}RW* GPIOoutput enablesdata I/O 4758c2ecf20Sopenharmony_ci#define MO_GP3_IO 0x35001C // {32}RW* GPIO Mode/Ctrloutput enables 4768c2ecf20Sopenharmony_ci#define MO_GPIO 0x350020 // {32}RW* GPIO I2C Ctrldata I/O 4778c2ecf20Sopenharmony_ci#define MO_GPOE 0x350024 // {32}RW GPIO I2C Ctrloutput enables 4788c2ecf20Sopenharmony_ci#define MO_GP_ISM 0x350028 // {16}WO GPIO Intr Sens/Pol 4798c2ecf20Sopenharmony_ci 4808c2ecf20Sopenharmony_ci#define MO_PLL_B 0x35C008 // {32}RW* PLL Control for ASB bus clks 4818c2ecf20Sopenharmony_ci#define MO_M2M_CNT 0x35C024 // {32}RW Mem2Mem DMA Cnt 4828c2ecf20Sopenharmony_ci#define MO_M2M_XSUM 0x35C028 // {32}RO M2M XOR-Checksum 4838c2ecf20Sopenharmony_ci#define MO_CRC 0x35C02C // {16}RW CRC16 init/result 4848c2ecf20Sopenharmony_ci#define MO_CRC_D 0x35C030 // {32}WO CRC16 new data in 4858c2ecf20Sopenharmony_ci#define MO_TM_CNT_LDW 0x35C034 // {32}RO Timer : Counter low dword 4868c2ecf20Sopenharmony_ci#define MO_TM_CNT_UW 0x35C038 // {16}RO Timer : Counter high word 4878c2ecf20Sopenharmony_ci#define MO_TM_LMT_LDW 0x35C03C // {32}RW Timer : Limit low dword 4888c2ecf20Sopenharmony_ci#define MO_TM_LMT_UW 0x35C040 // {32}RW Timer : Limit high word 4898c2ecf20Sopenharmony_ci#define MO_PINMUX_IO 0x35C044 // {8}RW Pin Mux Control 4908c2ecf20Sopenharmony_ci#define MO_TSTSEL_IO 0x35C048 // {2}RW Pin Mux Control 4918c2ecf20Sopenharmony_ci#define MO_AFECFG_IO 0x35C04C // AFE configuration reg 4928c2ecf20Sopenharmony_ci#define MO_DDS_IO 0x35C050 // DDS Increment reg 4938c2ecf20Sopenharmony_ci#define MO_DDSCFG_IO 0x35C054 // DDS Configuration reg 4948c2ecf20Sopenharmony_ci#define MO_SAMPLE_IO 0x35C058 // IRIn sample reg 4958c2ecf20Sopenharmony_ci#define MO_SRST_IO 0x35C05C // Output system reset reg 4968c2ecf20Sopenharmony_ci 4978c2ecf20Sopenharmony_ci#define MO_INT1_MSK 0x35C060 // DMA RISC interrupt mask 4988c2ecf20Sopenharmony_ci#define MO_INT1_STAT 0x35C064 // DMA RISC interrupt status 4998c2ecf20Sopenharmony_ci#define MO_INT1_MSTAT 0x35C068 // DMA RISC interrupt masked status 5008c2ecf20Sopenharmony_ci 5018c2ecf20Sopenharmony_ci/* 5028c2ecf20Sopenharmony_ci * i2c bus registers 5038c2ecf20Sopenharmony_ci */ 5048c2ecf20Sopenharmony_ci 5058c2ecf20Sopenharmony_ci#define MO_I2C 0x368000 // I2C data/control 5068c2ecf20Sopenharmony_ci#define MO_I2C_DIV (0xf<<4) 5078c2ecf20Sopenharmony_ci#define MO_I2C_SYNC (1<<3) 5088c2ecf20Sopenharmony_ci#define MO_I2C_W3B (1<<2) 5098c2ecf20Sopenharmony_ci#define MO_I2C_SCL (1<<1) 5108c2ecf20Sopenharmony_ci#define MO_I2C_SDA (1<<0) 5118c2ecf20Sopenharmony_ci 5128c2ecf20Sopenharmony_ci 5138c2ecf20Sopenharmony_ci/* 5148c2ecf20Sopenharmony_ci * general purpose host registers 5158c2ecf20Sopenharmony_ci * 5168c2ecf20Sopenharmony_ci * FIXME: tyops? s/0x35/0x38/ ?? 5178c2ecf20Sopenharmony_ci */ 5188c2ecf20Sopenharmony_ci 5198c2ecf20Sopenharmony_ci#define MO_GPHSTD_DMA 0x350000 // {64}RWp Host downstream 5208c2ecf20Sopenharmony_ci#define MO_GPHSTU_DMA 0x350008 // {64}RWp Host upstream 5218c2ecf20Sopenharmony_ci#define MO_GPHSTU_CNTRL 0x380048 // Host upstream control #1 5228c2ecf20Sopenharmony_ci#define MO_GPHSTD_CNTRL 0x38004C // Host downstream control #2 5238c2ecf20Sopenharmony_ci#define MO_GPHSTD_LNGTH 0x380050 // Host downstream line length 5248c2ecf20Sopenharmony_ci#define MO_GPHST_WSC 0x380054 // Host wait state control 5258c2ecf20Sopenharmony_ci#define MO_GPHST_XFR 0x380058 // Host transfer control 5268c2ecf20Sopenharmony_ci#define MO_GPHST_WDTH 0x38005C // Host interface width 5278c2ecf20Sopenharmony_ci#define MO_GPHST_HDSHK 0x380060 // Host peripheral handshake 5288c2ecf20Sopenharmony_ci#define MO_GPHST_MUX16 0x380064 // Host muxed 16-bit transfer parameters 5298c2ecf20Sopenharmony_ci#define MO_GPHST_MODE 0x380068 // Host mode select 5308c2ecf20Sopenharmony_ci 5318c2ecf20Sopenharmony_ci#define MO_GPHSTD_GPCNT 0x35C020 // Host down general purpose counter 5328c2ecf20Sopenharmony_ci#define MO_GPHSTU_GPCNT 0x35C024 // Host up general purpose counter 5338c2ecf20Sopenharmony_ci#define MO_GPHSTD_GPCNTRL 0x38C030 // Host down general purpose control 5348c2ecf20Sopenharmony_ci#define MO_GPHSTU_GPCNTRL 0x38C034 // Host up general purpose control 5358c2ecf20Sopenharmony_ci#define MO_GPHST_DMACNTRL 0x38C040 // Host DMA control 5368c2ecf20Sopenharmony_ci#define MO_GPHST_XFR_STAT 0x38C044 // Host transfer status 5378c2ecf20Sopenharmony_ci#define MO_GPHST_SOFT_RST 0x38C06C // Host software reset 5388c2ecf20Sopenharmony_ci 5398c2ecf20Sopenharmony_ci/* 5408c2ecf20Sopenharmony_ci * RISC instructions 5418c2ecf20Sopenharmony_ci */ 5428c2ecf20Sopenharmony_ci 5438c2ecf20Sopenharmony_ci#define RISC_SYNC 0x80000000 5448c2ecf20Sopenharmony_ci#define RISC_SYNC_ODD 0x80000000 5458c2ecf20Sopenharmony_ci#define RISC_SYNC_EVEN 0x80000200 5468c2ecf20Sopenharmony_ci#define RISC_RESYNC 0x80008000 5478c2ecf20Sopenharmony_ci#define RISC_RESYNC_ODD 0x80008000 5488c2ecf20Sopenharmony_ci#define RISC_RESYNC_EVEN 0x80008200 5498c2ecf20Sopenharmony_ci#define RISC_WRITE 0x10000000 5508c2ecf20Sopenharmony_ci#define RISC_WRITEC 0x50000000 5518c2ecf20Sopenharmony_ci#define RISC_READ 0x90000000 5528c2ecf20Sopenharmony_ci#define RISC_READC 0xA0000000 5538c2ecf20Sopenharmony_ci#define RISC_JUMP 0x70000000 5548c2ecf20Sopenharmony_ci#define RISC_SKIP 0x20000000 5558c2ecf20Sopenharmony_ci#define RISC_WRITERM 0xB0000000 5568c2ecf20Sopenharmony_ci#define RISC_WRITECM 0xC0000000 5578c2ecf20Sopenharmony_ci#define RISC_WRITECR 0xD0000000 5588c2ecf20Sopenharmony_ci#define RISC_IMM 0x00000001 5598c2ecf20Sopenharmony_ci 5608c2ecf20Sopenharmony_ci#define RISC_SOL 0x08000000 5618c2ecf20Sopenharmony_ci#define RISC_EOL 0x04000000 5628c2ecf20Sopenharmony_ci 5638c2ecf20Sopenharmony_ci#define RISC_IRQ2 0x02000000 5648c2ecf20Sopenharmony_ci#define RISC_IRQ1 0x01000000 5658c2ecf20Sopenharmony_ci 5668c2ecf20Sopenharmony_ci#define RISC_CNT_NONE 0x00000000 5678c2ecf20Sopenharmony_ci#define RISC_CNT_INC 0x00010000 5688c2ecf20Sopenharmony_ci#define RISC_CNT_RSVR 0x00020000 5698c2ecf20Sopenharmony_ci#define RISC_CNT_RESET 0x00030000 5708c2ecf20Sopenharmony_ci#define RISC_JMP_SRP 0x01 5718c2ecf20Sopenharmony_ci 5728c2ecf20Sopenharmony_ci/* 5738c2ecf20Sopenharmony_ci * various constants 5748c2ecf20Sopenharmony_ci */ 5758c2ecf20Sopenharmony_ci 5768c2ecf20Sopenharmony_ci// DMA 5778c2ecf20Sopenharmony_ci/* Interrupt mask/status */ 5788c2ecf20Sopenharmony_ci#define PCI_INT_VIDINT (1 << 0) 5798c2ecf20Sopenharmony_ci#define PCI_INT_AUDINT (1 << 1) 5808c2ecf20Sopenharmony_ci#define PCI_INT_TSINT (1 << 2) 5818c2ecf20Sopenharmony_ci#define PCI_INT_VIPINT (1 << 3) 5828c2ecf20Sopenharmony_ci#define PCI_INT_HSTINT (1 << 4) 5838c2ecf20Sopenharmony_ci#define PCI_INT_TM1INT (1 << 5) 5848c2ecf20Sopenharmony_ci#define PCI_INT_SRCDMAINT (1 << 6) 5858c2ecf20Sopenharmony_ci#define PCI_INT_DSTDMAINT (1 << 7) 5868c2ecf20Sopenharmony_ci#define PCI_INT_RISC_RD_BERRINT (1 << 10) 5878c2ecf20Sopenharmony_ci#define PCI_INT_RISC_WR_BERRINT (1 << 11) 5888c2ecf20Sopenharmony_ci#define PCI_INT_BRDG_BERRINT (1 << 12) 5898c2ecf20Sopenharmony_ci#define PCI_INT_SRC_DMA_BERRINT (1 << 13) 5908c2ecf20Sopenharmony_ci#define PCI_INT_DST_DMA_BERRINT (1 << 14) 5918c2ecf20Sopenharmony_ci#define PCI_INT_IPB_DMA_BERRINT (1 << 15) 5928c2ecf20Sopenharmony_ci#define PCI_INT_I2CDONE (1 << 16) 5938c2ecf20Sopenharmony_ci#define PCI_INT_I2CRACK (1 << 17) 5948c2ecf20Sopenharmony_ci#define PCI_INT_IR_SMPINT (1 << 18) 5958c2ecf20Sopenharmony_ci#define PCI_INT_GPIO_INT0 (1 << 19) 5968c2ecf20Sopenharmony_ci#define PCI_INT_GPIO_INT1 (1 << 20) 5978c2ecf20Sopenharmony_ci 5988c2ecf20Sopenharmony_ci#define SEL_BTSC 0x01 5998c2ecf20Sopenharmony_ci#define SEL_EIAJ 0x02 6008c2ecf20Sopenharmony_ci#define SEL_A2 0x04 6018c2ecf20Sopenharmony_ci#define SEL_SAP 0x08 6028c2ecf20Sopenharmony_ci#define SEL_NICAM 0x10 6038c2ecf20Sopenharmony_ci#define SEL_FMRADIO 0x20 6048c2ecf20Sopenharmony_ci 6058c2ecf20Sopenharmony_ci// AUD_CTL 6068c2ecf20Sopenharmony_ci#define AUD_INT_DN_RISCI1 (1 << 0) 6078c2ecf20Sopenharmony_ci#define AUD_INT_UP_RISCI1 (1 << 1) 6088c2ecf20Sopenharmony_ci#define AUD_INT_RDS_DN_RISCI1 (1 << 2) 6098c2ecf20Sopenharmony_ci#define AUD_INT_DN_RISCI2 (1 << 4) /* yes, 3 is skipped */ 6108c2ecf20Sopenharmony_ci#define AUD_INT_UP_RISCI2 (1 << 5) 6118c2ecf20Sopenharmony_ci#define AUD_INT_RDS_DN_RISCI2 (1 << 6) 6128c2ecf20Sopenharmony_ci#define AUD_INT_DN_SYNC (1 << 12) 6138c2ecf20Sopenharmony_ci#define AUD_INT_UP_SYNC (1 << 13) 6148c2ecf20Sopenharmony_ci#define AUD_INT_RDS_DN_SYNC (1 << 14) 6158c2ecf20Sopenharmony_ci#define AUD_INT_OPC_ERR (1 << 16) 6168c2ecf20Sopenharmony_ci#define AUD_INT_BER_IRQ (1 << 20) 6178c2ecf20Sopenharmony_ci#define AUD_INT_MCHG_IRQ (1 << 21) 6188c2ecf20Sopenharmony_ci 6198c2ecf20Sopenharmony_ci#define EN_BTSC_FORCE_MONO 0 6208c2ecf20Sopenharmony_ci#define EN_BTSC_FORCE_STEREO 1 6218c2ecf20Sopenharmony_ci#define EN_BTSC_FORCE_SAP 2 6228c2ecf20Sopenharmony_ci#define EN_BTSC_AUTO_STEREO 3 6238c2ecf20Sopenharmony_ci#define EN_BTSC_AUTO_SAP 4 6248c2ecf20Sopenharmony_ci 6258c2ecf20Sopenharmony_ci#define EN_A2_FORCE_MONO1 8 6268c2ecf20Sopenharmony_ci#define EN_A2_FORCE_MONO2 9 6278c2ecf20Sopenharmony_ci#define EN_A2_FORCE_STEREO 10 6288c2ecf20Sopenharmony_ci#define EN_A2_AUTO_MONO2 11 6298c2ecf20Sopenharmony_ci#define EN_A2_AUTO_STEREO 12 6308c2ecf20Sopenharmony_ci 6318c2ecf20Sopenharmony_ci#define EN_EIAJ_FORCE_MONO1 16 6328c2ecf20Sopenharmony_ci#define EN_EIAJ_FORCE_MONO2 17 6338c2ecf20Sopenharmony_ci#define EN_EIAJ_FORCE_STEREO 18 6348c2ecf20Sopenharmony_ci#define EN_EIAJ_AUTO_MONO2 19 6358c2ecf20Sopenharmony_ci#define EN_EIAJ_AUTO_STEREO 20 6368c2ecf20Sopenharmony_ci 6378c2ecf20Sopenharmony_ci#define EN_NICAM_FORCE_MONO1 32 6388c2ecf20Sopenharmony_ci#define EN_NICAM_FORCE_MONO2 33 6398c2ecf20Sopenharmony_ci#define EN_NICAM_FORCE_STEREO 34 6408c2ecf20Sopenharmony_ci#define EN_NICAM_AUTO_MONO2 35 6418c2ecf20Sopenharmony_ci#define EN_NICAM_AUTO_STEREO 36 6428c2ecf20Sopenharmony_ci 6438c2ecf20Sopenharmony_ci#define EN_FMRADIO_FORCE_MONO 24 6448c2ecf20Sopenharmony_ci#define EN_FMRADIO_FORCE_STEREO 25 6458c2ecf20Sopenharmony_ci#define EN_FMRADIO_AUTO_STEREO 26 6468c2ecf20Sopenharmony_ci 6478c2ecf20Sopenharmony_ci#define EN_NICAM_AUTO_FALLBACK 0x00000040 6488c2ecf20Sopenharmony_ci#define EN_FMRADIO_EN_RDS 0x00000200 6498c2ecf20Sopenharmony_ci#define EN_NICAM_TRY_AGAIN_BIT 0x00000400 6508c2ecf20Sopenharmony_ci#define EN_DAC_ENABLE 0x00001000 6518c2ecf20Sopenharmony_ci#define EN_I2SOUT_ENABLE 0x00002000 6528c2ecf20Sopenharmony_ci#define EN_I2SIN_STR2DAC 0x00004000 6538c2ecf20Sopenharmony_ci#define EN_I2SIN_ENABLE 0x00008000 6548c2ecf20Sopenharmony_ci 6558c2ecf20Sopenharmony_ci#define EN_DMTRX_SUMDIFF (0 << 7) 6568c2ecf20Sopenharmony_ci#define EN_DMTRX_SUMR (1 << 7) 6578c2ecf20Sopenharmony_ci#define EN_DMTRX_LR (2 << 7) 6588c2ecf20Sopenharmony_ci#define EN_DMTRX_MONO (3 << 7) 6598c2ecf20Sopenharmony_ci#define EN_DMTRX_BYPASS (1 << 11) 6608c2ecf20Sopenharmony_ci 6618c2ecf20Sopenharmony_ci// Video 6628c2ecf20Sopenharmony_ci#define VID_CAPTURE_CONTROL 0x310180 6638c2ecf20Sopenharmony_ci 6648c2ecf20Sopenharmony_ci#define CX23880_CAP_CTL_CAPTURE_VBI_ODD (1<<3) 6658c2ecf20Sopenharmony_ci#define CX23880_CAP_CTL_CAPTURE_VBI_EVEN (1<<2) 6668c2ecf20Sopenharmony_ci#define CX23880_CAP_CTL_CAPTURE_ODD (1<<1) 6678c2ecf20Sopenharmony_ci#define CX23880_CAP_CTL_CAPTURE_EVEN (1<<0) 6688c2ecf20Sopenharmony_ci 6698c2ecf20Sopenharmony_ci#define VideoInputMux0 0x0 6708c2ecf20Sopenharmony_ci#define VideoInputMux1 0x1 6718c2ecf20Sopenharmony_ci#define VideoInputMux2 0x2 6728c2ecf20Sopenharmony_ci#define VideoInputMux3 0x3 6738c2ecf20Sopenharmony_ci#define VideoInputTuner 0x0 6748c2ecf20Sopenharmony_ci#define VideoInputComposite 0x1 6758c2ecf20Sopenharmony_ci#define VideoInputSVideo 0x2 6768c2ecf20Sopenharmony_ci#define VideoInputOther 0x3 6778c2ecf20Sopenharmony_ci 6788c2ecf20Sopenharmony_ci#define Xtal0 0x1 6798c2ecf20Sopenharmony_ci#define Xtal1 0x2 6808c2ecf20Sopenharmony_ci#define XtalAuto 0x3 6818c2ecf20Sopenharmony_ci 6828c2ecf20Sopenharmony_ci#define VideoFormatAuto 0x0 6838c2ecf20Sopenharmony_ci#define VideoFormatNTSC 0x1 6848c2ecf20Sopenharmony_ci#define VideoFormatNTSCJapan 0x2 6858c2ecf20Sopenharmony_ci#define VideoFormatNTSC443 0x3 6868c2ecf20Sopenharmony_ci#define VideoFormatPAL 0x4 6878c2ecf20Sopenharmony_ci#define VideoFormatPALB 0x4 6888c2ecf20Sopenharmony_ci#define VideoFormatPALD 0x4 6898c2ecf20Sopenharmony_ci#define VideoFormatPALG 0x4 6908c2ecf20Sopenharmony_ci#define VideoFormatPALH 0x4 6918c2ecf20Sopenharmony_ci#define VideoFormatPALI 0x4 6928c2ecf20Sopenharmony_ci#define VideoFormatPALBDGHI 0x4 6938c2ecf20Sopenharmony_ci#define VideoFormatPALM 0x5 6948c2ecf20Sopenharmony_ci#define VideoFormatPALN 0x6 6958c2ecf20Sopenharmony_ci#define VideoFormatPALNC 0x7 6968c2ecf20Sopenharmony_ci#define VideoFormatPAL60 0x8 6978c2ecf20Sopenharmony_ci#define VideoFormatSECAM 0x9 6988c2ecf20Sopenharmony_ci 6998c2ecf20Sopenharmony_ci#define VideoFormatAuto27MHz 0x10 7008c2ecf20Sopenharmony_ci#define VideoFormatNTSC27MHz 0x11 7018c2ecf20Sopenharmony_ci#define VideoFormatNTSCJapan27MHz 0x12 7028c2ecf20Sopenharmony_ci#define VideoFormatNTSC44327MHz 0x13 7038c2ecf20Sopenharmony_ci#define VideoFormatPAL27MHz 0x14 7048c2ecf20Sopenharmony_ci#define VideoFormatPALB27MHz 0x14 7058c2ecf20Sopenharmony_ci#define VideoFormatPALD27MHz 0x14 7068c2ecf20Sopenharmony_ci#define VideoFormatPALG27MHz 0x14 7078c2ecf20Sopenharmony_ci#define VideoFormatPALH27MHz 0x14 7088c2ecf20Sopenharmony_ci#define VideoFormatPALI27MHz 0x14 7098c2ecf20Sopenharmony_ci#define VideoFormatPALBDGHI27MHz 0x14 7108c2ecf20Sopenharmony_ci#define VideoFormatPALM27MHz 0x15 7118c2ecf20Sopenharmony_ci#define VideoFormatPALN27MHz 0x16 7128c2ecf20Sopenharmony_ci#define VideoFormatPALNC27MHz 0x17 7138c2ecf20Sopenharmony_ci#define VideoFormatPAL6027MHz 0x18 7148c2ecf20Sopenharmony_ci#define VideoFormatSECAM27MHz 0x19 7158c2ecf20Sopenharmony_ci 7168c2ecf20Sopenharmony_ci#define NominalUSECAM 0x87 7178c2ecf20Sopenharmony_ci#define NominalVSECAM 0x85 7188c2ecf20Sopenharmony_ci#define NominalUNTSC 0xFE 7198c2ecf20Sopenharmony_ci#define NominalVNTSC 0xB4 7208c2ecf20Sopenharmony_ci 7218c2ecf20Sopenharmony_ci#define NominalContrast 0xD8 7228c2ecf20Sopenharmony_ci 7238c2ecf20Sopenharmony_ci#define HFilterAutoFormat 0x0 7248c2ecf20Sopenharmony_ci#define HFilterCIF 0x1 7258c2ecf20Sopenharmony_ci#define HFilterQCIF 0x2 7268c2ecf20Sopenharmony_ci#define HFilterICON 0x3 7278c2ecf20Sopenharmony_ci 7288c2ecf20Sopenharmony_ci#define VFilter2TapInterpolate 0 7298c2ecf20Sopenharmony_ci#define VFilter3TapInterpolate 1 7308c2ecf20Sopenharmony_ci#define VFilter4TapInterpolate 2 7318c2ecf20Sopenharmony_ci#define VFilter5TapInterpolate 3 7328c2ecf20Sopenharmony_ci#define VFilter2TapNoInterpolate 4 7338c2ecf20Sopenharmony_ci#define VFilter3TapNoInterpolate 5 7348c2ecf20Sopenharmony_ci#define VFilter4TapNoInterpolate 6 7358c2ecf20Sopenharmony_ci#define VFilter5TapNoInterpolate 7 7368c2ecf20Sopenharmony_ci 7378c2ecf20Sopenharmony_ci#define ColorFormatRGB32 0x0000 7388c2ecf20Sopenharmony_ci#define ColorFormatRGB24 0x0011 7398c2ecf20Sopenharmony_ci#define ColorFormatRGB16 0x0022 7408c2ecf20Sopenharmony_ci#define ColorFormatRGB15 0x0033 7418c2ecf20Sopenharmony_ci#define ColorFormatYUY2 0x0044 7428c2ecf20Sopenharmony_ci#define ColorFormatBTYUV 0x0055 7438c2ecf20Sopenharmony_ci#define ColorFormatY8 0x0066 7448c2ecf20Sopenharmony_ci#define ColorFormatRGB8 0x0077 7458c2ecf20Sopenharmony_ci#define ColorFormatPL422 0x0088 7468c2ecf20Sopenharmony_ci#define ColorFormatPL411 0x0099 7478c2ecf20Sopenharmony_ci#define ColorFormatYUV12 0x00AA 7488c2ecf20Sopenharmony_ci#define ColorFormatYUV9 0x00BB 7498c2ecf20Sopenharmony_ci#define ColorFormatRAW 0x00EE 7508c2ecf20Sopenharmony_ci#define ColorFormatBSWAP 0x0300 7518c2ecf20Sopenharmony_ci#define ColorFormatWSWAP 0x0c00 7528c2ecf20Sopenharmony_ci#define ColorFormatEvenMask 0x050f 7538c2ecf20Sopenharmony_ci#define ColorFormatOddMask 0x0af0 7548c2ecf20Sopenharmony_ci#define ColorFormatGamma 0x1000 7558c2ecf20Sopenharmony_ci 7568c2ecf20Sopenharmony_ci#define Interlaced 0x1 7578c2ecf20Sopenharmony_ci#define NonInterlaced 0x0 7588c2ecf20Sopenharmony_ci 7598c2ecf20Sopenharmony_ci#define FieldEven 0x1 7608c2ecf20Sopenharmony_ci#define FieldOdd 0x0 7618c2ecf20Sopenharmony_ci 7628c2ecf20Sopenharmony_ci#define TGReadWriteMode 0x0 7638c2ecf20Sopenharmony_ci#define TGEnableMode 0x1 7648c2ecf20Sopenharmony_ci 7658c2ecf20Sopenharmony_ci#define DV_CbAlign 0x0 7668c2ecf20Sopenharmony_ci#define DV_Y0Align 0x1 7678c2ecf20Sopenharmony_ci#define DV_CrAlign 0x2 7688c2ecf20Sopenharmony_ci#define DV_Y1Align 0x3 7698c2ecf20Sopenharmony_ci 7708c2ecf20Sopenharmony_ci#define DVF_Analog 0x0 7718c2ecf20Sopenharmony_ci#define DVF_CCIR656 0x1 7728c2ecf20Sopenharmony_ci#define DVF_ByteStream 0x2 7738c2ecf20Sopenharmony_ci#define DVF_ExtVSYNC 0x4 7748c2ecf20Sopenharmony_ci#define DVF_ExtField 0x5 7758c2ecf20Sopenharmony_ci 7768c2ecf20Sopenharmony_ci#define CHANNEL_VID_Y 0x1 7778c2ecf20Sopenharmony_ci#define CHANNEL_VID_U 0x2 7788c2ecf20Sopenharmony_ci#define CHANNEL_VID_V 0x3 7798c2ecf20Sopenharmony_ci#define CHANNEL_VID_VBI 0x4 7808c2ecf20Sopenharmony_ci#define CHANNEL_AUD_DN 0x5 7818c2ecf20Sopenharmony_ci#define CHANNEL_AUD_UP 0x6 7828c2ecf20Sopenharmony_ci#define CHANNEL_AUD_RDS_DN 0x7 7838c2ecf20Sopenharmony_ci#define CHANNEL_MPEG_DN 0x8 7848c2ecf20Sopenharmony_ci#define CHANNEL_VIP_DN 0x9 7858c2ecf20Sopenharmony_ci#define CHANNEL_VIP_UP 0xA 7868c2ecf20Sopenharmony_ci#define CHANNEL_HOST_DN 0xB 7878c2ecf20Sopenharmony_ci#define CHANNEL_HOST_UP 0xC 7888c2ecf20Sopenharmony_ci#define CHANNEL_FIRST 0x1 7898c2ecf20Sopenharmony_ci#define CHANNEL_LAST 0xC 7908c2ecf20Sopenharmony_ci 7918c2ecf20Sopenharmony_ci#define GP_COUNT_CONTROL_NONE 0x0 7928c2ecf20Sopenharmony_ci#define GP_COUNT_CONTROL_INC 0x1 7938c2ecf20Sopenharmony_ci#define GP_COUNT_CONTROL_RESERVED 0x2 7948c2ecf20Sopenharmony_ci#define GP_COUNT_CONTROL_RESET 0x3 7958c2ecf20Sopenharmony_ci 7968c2ecf20Sopenharmony_ci#define PLL_PRESCALE_BY_2 2 7978c2ecf20Sopenharmony_ci#define PLL_PRESCALE_BY_3 3 7988c2ecf20Sopenharmony_ci#define PLL_PRESCALE_BY_4 4 7998c2ecf20Sopenharmony_ci#define PLL_PRESCALE_BY_5 5 8008c2ecf20Sopenharmony_ci 8018c2ecf20Sopenharmony_ci#define HLNotchFilter4xFsc 0 8028c2ecf20Sopenharmony_ci#define HLNotchFilterSquare 1 8038c2ecf20Sopenharmony_ci#define HLNotchFilter135NTSC 2 8048c2ecf20Sopenharmony_ci#define HLNotchFilter135PAL 3 8058c2ecf20Sopenharmony_ci 8068c2ecf20Sopenharmony_ci#define NTSC_8x_SUB_CARRIER 28.63636E6 8078c2ecf20Sopenharmony_ci#define PAL_8x_SUB_CARRIER 35.46895E6 8088c2ecf20Sopenharmony_ci 8098c2ecf20Sopenharmony_ci// Default analog settings 8108c2ecf20Sopenharmony_ci#define DEFAULT_HUE_NTSC 0x00 8118c2ecf20Sopenharmony_ci#define DEFAULT_BRIGHTNESS_NTSC 0x00 8128c2ecf20Sopenharmony_ci#define DEFAULT_CONTRAST_NTSC 0x39 8138c2ecf20Sopenharmony_ci#define DEFAULT_SAT_U_NTSC 0x7F 8148c2ecf20Sopenharmony_ci#define DEFAULT_SAT_V_NTSC 0x5A 8158c2ecf20Sopenharmony_ci 8168c2ecf20Sopenharmony_ci#endif /* _CX88_REG_H_ */ 817