18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Driver for the Conexant CX23885 PCIe bridge 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2006 Steven Toth <stoth@linuxtv.org> 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef _CX23885_REG_H_ 98c2ecf20Sopenharmony_ci#define _CX23885_REG_H_ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* 128c2ecf20Sopenharmony_ciAddress Map 138c2ecf20Sopenharmony_ci0x00000000 -> 0x00009000 TX SRAM (Fifos) 148c2ecf20Sopenharmony_ci0x00010000 -> 0x00013c00 RX SRAM CMDS + CDT 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciEACH CMDS struct is 0x80 bytes long 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciDMAx_PTR1 = 0x03040 address of first cluster 198c2ecf20Sopenharmony_ciDMAx_PTR2 = 0x10600 address of the CDT 208c2ecf20Sopenharmony_ciDMAx_CNT1 = cluster size in (bytes >> 4) -1 218c2ecf20Sopenharmony_ciDMAx_CNT2 = total cdt size for all entries >> 3 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciCluster Descriptor entry = 4 DWORDS 248c2ecf20Sopenharmony_ci DWORD 0 -> ptr to cluster 258c2ecf20Sopenharmony_ci DWORD 1 Reserved 268c2ecf20Sopenharmony_ci DWORD 2 Reserved 278c2ecf20Sopenharmony_ci DWORD 3 Reserved 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciChannel manager Data Structure entry = 20 DWORD 308c2ecf20Sopenharmony_ci 0 IntialProgramCounterLow 318c2ecf20Sopenharmony_ci 1 IntialProgramCounterHigh 328c2ecf20Sopenharmony_ci 2 ClusterDescriptorTableBase 338c2ecf20Sopenharmony_ci 3 ClusterDescriptorTableSize 348c2ecf20Sopenharmony_ci 4 InstructionQueueBase 358c2ecf20Sopenharmony_ci 5 InstructionQueueSize 368c2ecf20Sopenharmony_ci... Reserved 378c2ecf20Sopenharmony_ci 19 Reserved 388c2ecf20Sopenharmony_ci*/ 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci/* Risc Instructions */ 418c2ecf20Sopenharmony_ci#define RISC_CNT_INC 0x00010000 428c2ecf20Sopenharmony_ci#define RISC_CNT_RESET 0x00030000 438c2ecf20Sopenharmony_ci#define RISC_IRQ1 0x01000000 448c2ecf20Sopenharmony_ci#define RISC_IRQ2 0x02000000 458c2ecf20Sopenharmony_ci#define RISC_EOL 0x04000000 468c2ecf20Sopenharmony_ci#define RISC_SOL 0x08000000 478c2ecf20Sopenharmony_ci#define RISC_WRITE 0x10000000 488c2ecf20Sopenharmony_ci#define RISC_SKIP 0x20000000 498c2ecf20Sopenharmony_ci#define RISC_JUMP 0x70000000 508c2ecf20Sopenharmony_ci#define RISC_SYNC 0x80000000 518c2ecf20Sopenharmony_ci#define RISC_RESYNC 0x80008000 528c2ecf20Sopenharmony_ci#define RISC_READ 0x90000000 538c2ecf20Sopenharmony_ci#define RISC_WRITERM 0xB0000000 548c2ecf20Sopenharmony_ci#define RISC_WRITECM 0xC0000000 558c2ecf20Sopenharmony_ci#define RISC_WRITECR 0xD0000000 568c2ecf20Sopenharmony_ci#define RISC_WRITEC 0x50000000 578c2ecf20Sopenharmony_ci#define RISC_READC 0xA0000000 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci/* Audio and Video Core */ 618c2ecf20Sopenharmony_ci#define HOST_REG1 0x00000000 628c2ecf20Sopenharmony_ci#define HOST_REG2 0x00000001 638c2ecf20Sopenharmony_ci#define HOST_REG3 0x00000002 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci/* Chip Configuration Registers */ 668c2ecf20Sopenharmony_ci#define CHIP_CTRL 0x00000100 678c2ecf20Sopenharmony_ci#define AFE_CTRL 0x00000104 688c2ecf20Sopenharmony_ci#define VID_PLL_INT_POST 0x00000108 698c2ecf20Sopenharmony_ci#define VID_PLL_FRAC 0x0000010C 708c2ecf20Sopenharmony_ci#define AUX_PLL_INT_POST 0x00000110 718c2ecf20Sopenharmony_ci#define AUX_PLL_FRAC 0x00000114 728c2ecf20Sopenharmony_ci#define SYS_PLL_INT_POST 0x00000118 738c2ecf20Sopenharmony_ci#define SYS_PLL_FRAC 0x0000011C 748c2ecf20Sopenharmony_ci#define PIN_CTRL 0x00000120 758c2ecf20Sopenharmony_ci#define AUD_IO_CTRL 0x00000124 768c2ecf20Sopenharmony_ci#define AUD_LOCK1 0x00000128 778c2ecf20Sopenharmony_ci#define AUD_LOCK2 0x0000012C 788c2ecf20Sopenharmony_ci#define POWER_CTRL 0x00000130 798c2ecf20Sopenharmony_ci#define AFE_DIAG_CTRL1 0x00000134 808c2ecf20Sopenharmony_ci#define AFE_DIAG_CTRL3 0x0000013C 818c2ecf20Sopenharmony_ci#define PLL_DIAG_CTRL 0x00000140 828c2ecf20Sopenharmony_ci#define AFE_CLK_OUT_CTRL 0x00000144 838c2ecf20Sopenharmony_ci#define DLL1_DIAG_CTRL 0x0000015C 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ci/* GPIO[23:19] Output Enable */ 868c2ecf20Sopenharmony_ci#define GPIO2_OUT_EN_REG 0x00000160 878c2ecf20Sopenharmony_ci/* GPIO[23:19] Data Registers */ 888c2ecf20Sopenharmony_ci#define GPIO2 0x00000164 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ci#define IFADC_CTRL 0x00000180 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci/* Infrared Remote Registers */ 938c2ecf20Sopenharmony_ci#define IR_CNTRL_REG 0x00000200 948c2ecf20Sopenharmony_ci#define IR_TXCLK_REG 0x00000204 958c2ecf20Sopenharmony_ci#define IR_RXCLK_REG 0x00000208 968c2ecf20Sopenharmony_ci#define IR_CDUTY_REG 0x0000020C 978c2ecf20Sopenharmony_ci#define IR_STAT_REG 0x00000210 988c2ecf20Sopenharmony_ci#define IR_IRQEN_REG 0x00000214 998c2ecf20Sopenharmony_ci#define IR_FILTR_REG 0x00000218 1008c2ecf20Sopenharmony_ci#define IR_FIFO_REG 0x0000023C 1018c2ecf20Sopenharmony_ci 1028c2ecf20Sopenharmony_ci/* Video Decoder Registers */ 1038c2ecf20Sopenharmony_ci#define MODE_CTRL 0x00000400 1048c2ecf20Sopenharmony_ci#define OUT_CTRL1 0x00000404 1058c2ecf20Sopenharmony_ci#define OUT_CTRL2 0x00000408 1068c2ecf20Sopenharmony_ci#define GEN_STAT 0x0000040C 1078c2ecf20Sopenharmony_ci#define INT_STAT_MASK 0x00000410 1088c2ecf20Sopenharmony_ci#define LUMA_CTRL 0x00000414 1098c2ecf20Sopenharmony_ci#define HSCALE_CTRL 0x00000418 1108c2ecf20Sopenharmony_ci#define VSCALE_CTRL 0x0000041C 1118c2ecf20Sopenharmony_ci#define CHROMA_CTRL 0x00000420 1128c2ecf20Sopenharmony_ci#define VBI_LINE_CTRL1 0x00000424 1138c2ecf20Sopenharmony_ci#define VBI_LINE_CTRL2 0x00000428 1148c2ecf20Sopenharmony_ci#define VBI_LINE_CTRL3 0x0000042C 1158c2ecf20Sopenharmony_ci#define VBI_LINE_CTRL4 0x00000430 1168c2ecf20Sopenharmony_ci#define VBI_LINE_CTRL5 0x00000434 1178c2ecf20Sopenharmony_ci#define VBI_FC_CFG 0x00000438 1188c2ecf20Sopenharmony_ci#define VBI_MISC_CFG1 0x0000043C 1198c2ecf20Sopenharmony_ci#define VBI_MISC_CFG2 0x00000440 1208c2ecf20Sopenharmony_ci#define VBI_PAY1 0x00000444 1218c2ecf20Sopenharmony_ci#define VBI_PAY2 0x00000448 1228c2ecf20Sopenharmony_ci#define VBI_CUST1_CFG1 0x0000044C 1238c2ecf20Sopenharmony_ci#define VBI_CUST1_CFG2 0x00000450 1248c2ecf20Sopenharmony_ci#define VBI_CUST1_CFG3 0x00000454 1258c2ecf20Sopenharmony_ci#define VBI_CUST2_CFG1 0x00000458 1268c2ecf20Sopenharmony_ci#define VBI_CUST2_CFG2 0x0000045C 1278c2ecf20Sopenharmony_ci#define VBI_CUST2_CFG3 0x00000460 1288c2ecf20Sopenharmony_ci#define VBI_CUST3_CFG1 0x00000464 1298c2ecf20Sopenharmony_ci#define VBI_CUST3_CFG2 0x00000468 1308c2ecf20Sopenharmony_ci#define VBI_CUST3_CFG3 0x0000046C 1318c2ecf20Sopenharmony_ci#define HORIZ_TIM_CTRL 0x00000470 1328c2ecf20Sopenharmony_ci#define VERT_TIM_CTRL 0x00000474 1338c2ecf20Sopenharmony_ci#define SRC_COMB_CFG 0x00000478 1348c2ecf20Sopenharmony_ci#define CHROMA_VBIOFF_CFG 0x0000047C 1358c2ecf20Sopenharmony_ci#define FIELD_COUNT 0x00000480 1368c2ecf20Sopenharmony_ci#define MISC_TIM_CTRL 0x00000484 1378c2ecf20Sopenharmony_ci#define DFE_CTRL1 0x00000488 1388c2ecf20Sopenharmony_ci#define DFE_CTRL2 0x0000048C 1398c2ecf20Sopenharmony_ci#define DFE_CTRL3 0x00000490 1408c2ecf20Sopenharmony_ci#define PLL_CTRL 0x00000494 1418c2ecf20Sopenharmony_ci#define HTL_CTRL 0x00000498 1428c2ecf20Sopenharmony_ci#define COMB_CTRL 0x0000049C 1438c2ecf20Sopenharmony_ci#define CRUSH_CTRL 0x000004A0 1448c2ecf20Sopenharmony_ci#define SOFT_RST_CTRL 0x000004A4 1458c2ecf20Sopenharmony_ci#define CX885_VERSION 0x000004B4 1468c2ecf20Sopenharmony_ci#define VBI_PASS_CTRL 0x000004BC 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_ci/* Audio Decoder Registers */ 1498c2ecf20Sopenharmony_ci/* 8051 Configuration */ 1508c2ecf20Sopenharmony_ci#define DL_CTL 0x00000800 1518c2ecf20Sopenharmony_ci#define STD_DET_STATUS 0x00000804 1528c2ecf20Sopenharmony_ci#define STD_DET_CTL 0x00000808 1538c2ecf20Sopenharmony_ci#define DW8051_INT 0x0000080C 1548c2ecf20Sopenharmony_ci#define GENERAL_CTL 0x00000810 1558c2ecf20Sopenharmony_ci#define AAGC_CTL 0x00000814 1568c2ecf20Sopenharmony_ci#define DEMATRIX_CTL 0x000008CC 1578c2ecf20Sopenharmony_ci#define PATH1_CTL1 0x000008D0 1588c2ecf20Sopenharmony_ci#define PATH1_VOL_CTL 0x000008D4 1598c2ecf20Sopenharmony_ci#define PATH1_EQ_CTL 0x000008D8 1608c2ecf20Sopenharmony_ci#define PATH1_SC_CTL 0x000008DC 1618c2ecf20Sopenharmony_ci#define PATH2_CTL1 0x000008E0 1628c2ecf20Sopenharmony_ci#define PATH2_VOL_CTL 0x000008E4 1638c2ecf20Sopenharmony_ci#define PATH2_EQ_CTL 0x000008E8 1648c2ecf20Sopenharmony_ci#define PATH2_SC_CTL 0x000008EC 1658c2ecf20Sopenharmony_ci 1668c2ecf20Sopenharmony_ci/* Sample Rate Converter */ 1678c2ecf20Sopenharmony_ci#define SRC_CTL 0x000008F0 1688c2ecf20Sopenharmony_ci#define SRC_LF_COEF 0x000008F4 1698c2ecf20Sopenharmony_ci#define SRC1_CTL 0x000008F8 1708c2ecf20Sopenharmony_ci#define SRC2_CTL 0x000008FC 1718c2ecf20Sopenharmony_ci#define SRC3_CTL 0x00000900 1728c2ecf20Sopenharmony_ci#define SRC4_CTL 0x00000904 1738c2ecf20Sopenharmony_ci#define SRC5_CTL 0x00000908 1748c2ecf20Sopenharmony_ci#define SRC6_CTL 0x0000090C 1758c2ecf20Sopenharmony_ci#define BAND_OUT_SEL 0x00000910 1768c2ecf20Sopenharmony_ci#define I2S_N_CTL 0x00000914 1778c2ecf20Sopenharmony_ci#define I2S_OUT_CTL 0x00000918 1788c2ecf20Sopenharmony_ci#define AUTOCONFIG_REG 0x000009C4 1798c2ecf20Sopenharmony_ci 1808c2ecf20Sopenharmony_ci/* Audio ADC Registers */ 1818c2ecf20Sopenharmony_ci#define DSM_CTRL1 0x00000000 1828c2ecf20Sopenharmony_ci#define DSM_CTRL2 0x00000001 1838c2ecf20Sopenharmony_ci#define CHP_EN_CTRL 0x00000002 1848c2ecf20Sopenharmony_ci#define CHP_CLK_CTRL1 0x00000004 1858c2ecf20Sopenharmony_ci#define CHP_CLK_CTRL2 0x00000005 1868c2ecf20Sopenharmony_ci#define BG_REF_CTRL 0x00000006 1878c2ecf20Sopenharmony_ci#define SD2_SW_CTRL1 0x00000008 1888c2ecf20Sopenharmony_ci#define SD2_SW_CTRL2 0x00000009 1898c2ecf20Sopenharmony_ci#define SD2_BIAS_CTRL 0x0000000A 1908c2ecf20Sopenharmony_ci#define AMP_BIAS_CTRL 0x0000000C 1918c2ecf20Sopenharmony_ci#define CH_PWR_CTRL1 0x0000000E 1928c2ecf20Sopenharmony_ci#define FLD_CH_SEL (1 << 3) 1938c2ecf20Sopenharmony_ci#define CH_PWR_CTRL2 0x0000000F 1948c2ecf20Sopenharmony_ci#define DSM_STATUS1 0x00000010 1958c2ecf20Sopenharmony_ci#define DSM_STATUS2 0x00000011 1968c2ecf20Sopenharmony_ci#define DIG_CTL1 0x00000012 1978c2ecf20Sopenharmony_ci#define DIG_CTL2 0x00000013 1988c2ecf20Sopenharmony_ci#define I2S_TX_CFG 0x0000001A 1998c2ecf20Sopenharmony_ci 2008c2ecf20Sopenharmony_ci#define DEV_CNTRL2 0x00040000 2018c2ecf20Sopenharmony_ci 2028c2ecf20Sopenharmony_ci#define PCI_MSK_IR (1 << 28) 2038c2ecf20Sopenharmony_ci#define PCI_MSK_AV_CORE (1 << 27) 2048c2ecf20Sopenharmony_ci#define PCI_MSK_GPIO1 (1 << 24) 2058c2ecf20Sopenharmony_ci#define PCI_MSK_GPIO0 (1 << 23) 2068c2ecf20Sopenharmony_ci#define PCI_MSK_APB_DMA (1 << 12) 2078c2ecf20Sopenharmony_ci#define PCI_MSK_AL_WR (1 << 11) 2088c2ecf20Sopenharmony_ci#define PCI_MSK_AL_RD (1 << 10) 2098c2ecf20Sopenharmony_ci#define PCI_MSK_RISC_WR (1 << 9) 2108c2ecf20Sopenharmony_ci#define PCI_MSK_RISC_RD (1 << 8) 2118c2ecf20Sopenharmony_ci#define PCI_MSK_AUD_EXT (1 << 4) 2128c2ecf20Sopenharmony_ci#define PCI_MSK_AUD_INT (1 << 3) 2138c2ecf20Sopenharmony_ci#define PCI_MSK_VID_C (1 << 2) 2148c2ecf20Sopenharmony_ci#define PCI_MSK_VID_B (1 << 1) 2158c2ecf20Sopenharmony_ci#define PCI_MSK_VID_A 1 2168c2ecf20Sopenharmony_ci#define PCI_INT_MSK 0x00040010 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ci#define PCI_INT_STAT 0x00040014 2198c2ecf20Sopenharmony_ci#define PCI_INT_MSTAT 0x00040018 2208c2ecf20Sopenharmony_ci 2218c2ecf20Sopenharmony_ci#define VID_A_INT_MSK 0x00040020 2228c2ecf20Sopenharmony_ci#define VID_A_INT_STAT 0x00040024 2238c2ecf20Sopenharmony_ci#define VID_A_INT_MSTAT 0x00040028 2248c2ecf20Sopenharmony_ci#define VID_A_INT_SSTAT 0x0004002C 2258c2ecf20Sopenharmony_ci 2268c2ecf20Sopenharmony_ci#define VID_B_INT_MSK 0x00040030 2278c2ecf20Sopenharmony_ci#define VID_B_MSK_BAD_PKT (1 << 20) 2288c2ecf20Sopenharmony_ci#define VID_B_MSK_VBI_OPC_ERR (1 << 17) 2298c2ecf20Sopenharmony_ci#define VID_B_MSK_OPC_ERR (1 << 16) 2308c2ecf20Sopenharmony_ci#define VID_B_MSK_VBI_SYNC (1 << 13) 2318c2ecf20Sopenharmony_ci#define VID_B_MSK_SYNC (1 << 12) 2328c2ecf20Sopenharmony_ci#define VID_B_MSK_VBI_OF (1 << 9) 2338c2ecf20Sopenharmony_ci#define VID_B_MSK_OF (1 << 8) 2348c2ecf20Sopenharmony_ci#define VID_B_MSK_VBI_RISCI2 (1 << 5) 2358c2ecf20Sopenharmony_ci#define VID_B_MSK_RISCI2 (1 << 4) 2368c2ecf20Sopenharmony_ci#define VID_B_MSK_VBI_RISCI1 (1 << 1) 2378c2ecf20Sopenharmony_ci#define VID_B_MSK_RISCI1 1 2388c2ecf20Sopenharmony_ci#define VID_B_INT_STAT 0x00040034 2398c2ecf20Sopenharmony_ci#define VID_B_INT_MSTAT 0x00040038 2408c2ecf20Sopenharmony_ci#define VID_B_INT_SSTAT 0x0004003C 2418c2ecf20Sopenharmony_ci 2428c2ecf20Sopenharmony_ci#define VID_B_MSK_BAD_PKT (1 << 20) 2438c2ecf20Sopenharmony_ci#define VID_B_MSK_OPC_ERR (1 << 16) 2448c2ecf20Sopenharmony_ci#define VID_B_MSK_SYNC (1 << 12) 2458c2ecf20Sopenharmony_ci#define VID_B_MSK_OF (1 << 8) 2468c2ecf20Sopenharmony_ci#define VID_B_MSK_RISCI2 (1 << 4) 2478c2ecf20Sopenharmony_ci#define VID_B_MSK_RISCI1 1 2488c2ecf20Sopenharmony_ci 2498c2ecf20Sopenharmony_ci#define VID_C_MSK_BAD_PKT (1 << 20) 2508c2ecf20Sopenharmony_ci#define VID_C_MSK_OPC_ERR (1 << 16) 2518c2ecf20Sopenharmony_ci#define VID_C_MSK_SYNC (1 << 12) 2528c2ecf20Sopenharmony_ci#define VID_C_MSK_OF (1 << 8) 2538c2ecf20Sopenharmony_ci#define VID_C_MSK_RISCI2 (1 << 4) 2548c2ecf20Sopenharmony_ci#define VID_C_MSK_RISCI1 1 2558c2ecf20Sopenharmony_ci 2568c2ecf20Sopenharmony_ci/* A superset for testing purposes */ 2578c2ecf20Sopenharmony_ci#define VID_BC_MSK_BAD_PKT (1 << 20) 2588c2ecf20Sopenharmony_ci#define VID_BC_MSK_OPC_ERR (1 << 16) 2598c2ecf20Sopenharmony_ci#define VID_BC_MSK_SYNC (1 << 12) 2608c2ecf20Sopenharmony_ci#define VID_BC_MSK_OF (1 << 8) 2618c2ecf20Sopenharmony_ci#define VID_BC_MSK_VBI_RISCI2 (1 << 5) 2628c2ecf20Sopenharmony_ci#define VID_BC_MSK_RISCI2 (1 << 4) 2638c2ecf20Sopenharmony_ci#define VID_BC_MSK_VBI_RISCI1 (1 << 1) 2648c2ecf20Sopenharmony_ci#define VID_BC_MSK_RISCI1 1 2658c2ecf20Sopenharmony_ci 2668c2ecf20Sopenharmony_ci#define VID_C_INT_MSK 0x00040040 2678c2ecf20Sopenharmony_ci#define VID_C_INT_STAT 0x00040044 2688c2ecf20Sopenharmony_ci#define VID_C_INT_MSTAT 0x00040048 2698c2ecf20Sopenharmony_ci#define VID_C_INT_SSTAT 0x0004004C 2708c2ecf20Sopenharmony_ci 2718c2ecf20Sopenharmony_ci#define AUDIO_INT_INT_MSK 0x00040050 2728c2ecf20Sopenharmony_ci#define AUDIO_INT_INT_STAT 0x00040054 2738c2ecf20Sopenharmony_ci#define AUDIO_INT_INT_MSTAT 0x00040058 2748c2ecf20Sopenharmony_ci#define AUDIO_INT_INT_SSTAT 0x0004005C 2758c2ecf20Sopenharmony_ci 2768c2ecf20Sopenharmony_ci#define AUDIO_EXT_INT_MSK 0x00040060 2778c2ecf20Sopenharmony_ci#define AUDIO_EXT_INT_STAT 0x00040064 2788c2ecf20Sopenharmony_ci#define AUDIO_EXT_INT_MSTAT 0x00040068 2798c2ecf20Sopenharmony_ci#define AUDIO_EXT_INT_SSTAT 0x0004006C 2808c2ecf20Sopenharmony_ci 2818c2ecf20Sopenharmony_ci/* Bits [7:0] set in both TC_REQ and TC_REQ_SET 2828c2ecf20Sopenharmony_ci * indicate a stall in the RISC engine for a 2838c2ecf20Sopenharmony_ci * particular rider traffic class. This causes 2848c2ecf20Sopenharmony_ci * the 885 and 888 bridges (unknown about 887) 2858c2ecf20Sopenharmony_ci * to become inoperable. Setting bits in 2868c2ecf20Sopenharmony_ci * TC_REQ_SET resets the corresponding bits 2878c2ecf20Sopenharmony_ci * in TC_REQ (and TC_REQ_SET) allowing 2888c2ecf20Sopenharmony_ci * operation to continue. 2898c2ecf20Sopenharmony_ci */ 2908c2ecf20Sopenharmony_ci#define TC_REQ 0x00040090 2918c2ecf20Sopenharmony_ci#define TC_REQ_SET 0x00040094 2928c2ecf20Sopenharmony_ci 2938c2ecf20Sopenharmony_ci#define RDR_CFG0 0x00050000 2948c2ecf20Sopenharmony_ci#define RDR_CFG1 0x00050004 2958c2ecf20Sopenharmony_ci#define RDR_CFG2 0x00050008 2968c2ecf20Sopenharmony_ci#define RDR_RDRCTL1 0x0005030c 2978c2ecf20Sopenharmony_ci#define RDR_TLCTL0 0x00050318 2988c2ecf20Sopenharmony_ci 2998c2ecf20Sopenharmony_ci/* APB DMAC Current Buffer Pointer */ 3008c2ecf20Sopenharmony_ci#define DMA1_PTR1 0x00100000 3018c2ecf20Sopenharmony_ci#define DMA2_PTR1 0x00100004 3028c2ecf20Sopenharmony_ci#define DMA3_PTR1 0x00100008 3038c2ecf20Sopenharmony_ci#define DMA4_PTR1 0x0010000C 3048c2ecf20Sopenharmony_ci#define DMA5_PTR1 0x00100010 3058c2ecf20Sopenharmony_ci#define DMA6_PTR1 0x00100014 3068c2ecf20Sopenharmony_ci#define DMA7_PTR1 0x00100018 3078c2ecf20Sopenharmony_ci#define DMA8_PTR1 0x0010001C 3088c2ecf20Sopenharmony_ci 3098c2ecf20Sopenharmony_ci/* APB DMAC Current Table Pointer */ 3108c2ecf20Sopenharmony_ci#define DMA1_PTR2 0x00100040 3118c2ecf20Sopenharmony_ci#define DMA2_PTR2 0x00100044 3128c2ecf20Sopenharmony_ci#define DMA3_PTR2 0x00100048 3138c2ecf20Sopenharmony_ci#define DMA4_PTR2 0x0010004C 3148c2ecf20Sopenharmony_ci#define DMA5_PTR2 0x00100050 3158c2ecf20Sopenharmony_ci#define DMA6_PTR2 0x00100054 3168c2ecf20Sopenharmony_ci#define DMA7_PTR2 0x00100058 3178c2ecf20Sopenharmony_ci#define DMA8_PTR2 0x0010005C 3188c2ecf20Sopenharmony_ci 3198c2ecf20Sopenharmony_ci/* APB DMAC Buffer Limit */ 3208c2ecf20Sopenharmony_ci#define DMA1_CNT1 0x00100080 3218c2ecf20Sopenharmony_ci#define DMA2_CNT1 0x00100084 3228c2ecf20Sopenharmony_ci#define DMA3_CNT1 0x00100088 3238c2ecf20Sopenharmony_ci#define DMA4_CNT1 0x0010008C 3248c2ecf20Sopenharmony_ci#define DMA5_CNT1 0x00100090 3258c2ecf20Sopenharmony_ci#define DMA6_CNT1 0x00100094 3268c2ecf20Sopenharmony_ci#define DMA7_CNT1 0x00100098 3278c2ecf20Sopenharmony_ci#define DMA8_CNT1 0x0010009C 3288c2ecf20Sopenharmony_ci 3298c2ecf20Sopenharmony_ci/* APB DMAC Table Size */ 3308c2ecf20Sopenharmony_ci#define DMA1_CNT2 0x001000C0 3318c2ecf20Sopenharmony_ci#define DMA2_CNT2 0x001000C4 3328c2ecf20Sopenharmony_ci#define DMA3_CNT2 0x001000C8 3338c2ecf20Sopenharmony_ci#define DMA4_CNT2 0x001000CC 3348c2ecf20Sopenharmony_ci#define DMA5_CNT2 0x001000D0 3358c2ecf20Sopenharmony_ci#define DMA6_CNT2 0x001000D4 3368c2ecf20Sopenharmony_ci#define DMA7_CNT2 0x001000D8 3378c2ecf20Sopenharmony_ci#define DMA8_CNT2 0x001000DC 3388c2ecf20Sopenharmony_ci 3398c2ecf20Sopenharmony_ci/* Timer Counters */ 3408c2ecf20Sopenharmony_ci#define TM_CNT_LDW 0x00110000 3418c2ecf20Sopenharmony_ci#define TM_CNT_UW 0x00110004 3428c2ecf20Sopenharmony_ci#define TM_LMT_LDW 0x00110008 3438c2ecf20Sopenharmony_ci#define TM_LMT_UW 0x0011000C 3448c2ecf20Sopenharmony_ci 3458c2ecf20Sopenharmony_ci/* GPIO */ 3468c2ecf20Sopenharmony_ci#define GP0_IO 0x00110010 3478c2ecf20Sopenharmony_ci#define GPIO_ISM 0x00110014 3488c2ecf20Sopenharmony_ci#define SOFT_RESET 0x0011001C 3498c2ecf20Sopenharmony_ci 3508c2ecf20Sopenharmony_ci/* GPIO (417 Microsoftcontroller) RW Data */ 3518c2ecf20Sopenharmony_ci#define MC417_RWD 0x00110020 3528c2ecf20Sopenharmony_ci 3538c2ecf20Sopenharmony_ci/* GPIO (417 Microsoftcontroller) Output Enable, Low Active */ 3548c2ecf20Sopenharmony_ci#define MC417_OEN 0x00110024 3558c2ecf20Sopenharmony_ci#define MC417_CTL 0x00110028 3568c2ecf20Sopenharmony_ci#define ALT_PIN_OUT_SEL 0x0011002C 3578c2ecf20Sopenharmony_ci#define CLK_DELAY 0x00110048 3588c2ecf20Sopenharmony_ci#define PAD_CTRL 0x0011004C 3598c2ecf20Sopenharmony_ci 3608c2ecf20Sopenharmony_ci/* Video A Interface */ 3618c2ecf20Sopenharmony_ci#define VID_A_GPCNT 0x00130020 3628c2ecf20Sopenharmony_ci#define VBI_A_GPCNT 0x00130024 3638c2ecf20Sopenharmony_ci#define VID_A_GPCNT_CTL 0x00130030 3648c2ecf20Sopenharmony_ci#define VBI_A_GPCNT_CTL 0x00130034 3658c2ecf20Sopenharmony_ci#define VID_A_DMA_CTL 0x00130040 3668c2ecf20Sopenharmony_ci#define VID_A_VIP_CTRL 0x00130080 3678c2ecf20Sopenharmony_ci#define VID_A_PIXEL_FRMT 0x00130084 3688c2ecf20Sopenharmony_ci#define VID_A_VBI_CTRL 0x00130088 3698c2ecf20Sopenharmony_ci 3708c2ecf20Sopenharmony_ci/* Video B Interface */ 3718c2ecf20Sopenharmony_ci#define VID_B_DMA 0x00130100 3728c2ecf20Sopenharmony_ci#define VBI_B_DMA 0x00130108 3738c2ecf20Sopenharmony_ci#define VID_B_GPCNT 0x00130120 3748c2ecf20Sopenharmony_ci#define VBI_B_GPCNT 0x00130124 3758c2ecf20Sopenharmony_ci#define VID_B_GPCNT_CTL 0x00130134 3768c2ecf20Sopenharmony_ci#define VBI_B_GPCNT_CTL 0x00130138 3778c2ecf20Sopenharmony_ci#define VID_B_DMA_CTL 0x00130140 3788c2ecf20Sopenharmony_ci#define VID_B_SRC_SEL 0x00130144 3798c2ecf20Sopenharmony_ci#define VID_B_LNGTH 0x00130150 3808c2ecf20Sopenharmony_ci#define VID_B_HW_SOP_CTL 0x00130154 3818c2ecf20Sopenharmony_ci#define VID_B_GEN_CTL 0x00130158 3828c2ecf20Sopenharmony_ci#define VID_B_BD_PKT_STATUS 0x0013015C 3838c2ecf20Sopenharmony_ci#define VID_B_SOP_STATUS 0x00130160 3848c2ecf20Sopenharmony_ci#define VID_B_FIFO_OVFL_STAT 0x00130164 3858c2ecf20Sopenharmony_ci#define VID_B_VLD_MISC 0x00130168 3868c2ecf20Sopenharmony_ci#define VID_B_TS_CLK_EN 0x0013016C 3878c2ecf20Sopenharmony_ci#define VID_B_VIP_CTRL 0x00130180 3888c2ecf20Sopenharmony_ci#define VID_B_PIXEL_FRMT 0x00130184 3898c2ecf20Sopenharmony_ci 3908c2ecf20Sopenharmony_ci/* Video C Interface */ 3918c2ecf20Sopenharmony_ci#define VID_C_DMA 0x00130200 3928c2ecf20Sopenharmony_ci#define VBI_C_DMA 0x00130208 3938c2ecf20Sopenharmony_ci#define VID_C_GPCNT 0x00130220 3948c2ecf20Sopenharmony_ci#define VID_C_GPCNT_CTL 0x00130230 3958c2ecf20Sopenharmony_ci#define VBI_C_GPCNT_CTL 0x00130234 3968c2ecf20Sopenharmony_ci#define VID_C_DMA_CTL 0x00130240 3978c2ecf20Sopenharmony_ci#define VID_C_LNGTH 0x00130250 3988c2ecf20Sopenharmony_ci#define VID_C_HW_SOP_CTL 0x00130254 3998c2ecf20Sopenharmony_ci#define VID_C_GEN_CTL 0x00130258 4008c2ecf20Sopenharmony_ci#define VID_C_BD_PKT_STATUS 0x0013025C 4018c2ecf20Sopenharmony_ci#define VID_C_SOP_STATUS 0x00130260 4028c2ecf20Sopenharmony_ci#define VID_C_FIFO_OVFL_STAT 0x00130264 4038c2ecf20Sopenharmony_ci#define VID_C_VLD_MISC 0x00130268 4048c2ecf20Sopenharmony_ci#define VID_C_TS_CLK_EN 0x0013026C 4058c2ecf20Sopenharmony_ci 4068c2ecf20Sopenharmony_ci/* Internal Audio Interface */ 4078c2ecf20Sopenharmony_ci#define AUD_INT_A_GPCNT 0x00140020 4088c2ecf20Sopenharmony_ci#define AUD_INT_B_GPCNT 0x00140024 4098c2ecf20Sopenharmony_ci#define AUD_INT_A_GPCNT_CTL 0x00140030 4108c2ecf20Sopenharmony_ci#define AUD_INT_B_GPCNT_CTL 0x00140034 4118c2ecf20Sopenharmony_ci#define AUD_INT_DMA_CTL 0x00140040 4128c2ecf20Sopenharmony_ci#define AUD_INT_A_LNGTH 0x00140050 4138c2ecf20Sopenharmony_ci#define AUD_INT_B_LNGTH 0x00140054 4148c2ecf20Sopenharmony_ci#define AUD_INT_A_MODE 0x00140058 4158c2ecf20Sopenharmony_ci#define AUD_INT_B_MODE 0x0014005C 4168c2ecf20Sopenharmony_ci 4178c2ecf20Sopenharmony_ci/* External Audio Interface */ 4188c2ecf20Sopenharmony_ci#define AUD_EXT_DMA 0x00140100 4198c2ecf20Sopenharmony_ci#define AUD_EXT_GPCNT 0x00140120 4208c2ecf20Sopenharmony_ci#define AUD_EXT_GPCNT_CTL 0x00140130 4218c2ecf20Sopenharmony_ci#define AUD_EXT_DMA_CTL 0x00140140 4228c2ecf20Sopenharmony_ci#define AUD_EXT_LNGTH 0x00140150 4238c2ecf20Sopenharmony_ci#define AUD_EXT_A_MODE 0x00140158 4248c2ecf20Sopenharmony_ci 4258c2ecf20Sopenharmony_ci/* I2C Bus 1 */ 4268c2ecf20Sopenharmony_ci#define I2C1_ADDR 0x00180000 4278c2ecf20Sopenharmony_ci#define I2C1_WDATA 0x00180004 4288c2ecf20Sopenharmony_ci#define I2C1_CTRL 0x00180008 4298c2ecf20Sopenharmony_ci#define I2C1_RDATA 0x0018000C 4308c2ecf20Sopenharmony_ci#define I2C1_STAT 0x00180010 4318c2ecf20Sopenharmony_ci 4328c2ecf20Sopenharmony_ci/* I2C Bus 2 */ 4338c2ecf20Sopenharmony_ci#define I2C2_ADDR 0x00190000 4348c2ecf20Sopenharmony_ci#define I2C2_WDATA 0x00190004 4358c2ecf20Sopenharmony_ci#define I2C2_CTRL 0x00190008 4368c2ecf20Sopenharmony_ci#define I2C2_RDATA 0x0019000C 4378c2ecf20Sopenharmony_ci#define I2C2_STAT 0x00190010 4388c2ecf20Sopenharmony_ci 4398c2ecf20Sopenharmony_ci/* I2C Bus 3 */ 4408c2ecf20Sopenharmony_ci#define I2C3_ADDR 0x001A0000 4418c2ecf20Sopenharmony_ci#define I2C3_WDATA 0x001A0004 4428c2ecf20Sopenharmony_ci#define I2C3_CTRL 0x001A0008 4438c2ecf20Sopenharmony_ci#define I2C3_RDATA 0x001A000C 4448c2ecf20Sopenharmony_ci#define I2C3_STAT 0x001A0010 4458c2ecf20Sopenharmony_ci 4468c2ecf20Sopenharmony_ci/* UART */ 4478c2ecf20Sopenharmony_ci#define UART_CTL 0x001B0000 4488c2ecf20Sopenharmony_ci#define UART_BRD 0x001B0004 4498c2ecf20Sopenharmony_ci#define UART_ISR 0x001B000C 4508c2ecf20Sopenharmony_ci#define UART_CNT 0x001B0010 4518c2ecf20Sopenharmony_ci 4528c2ecf20Sopenharmony_ci#endif /* _CX23885_REG_H_ */ 453