162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * cx88x-hw.h - CX2388x register offsets 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 1996,97,98 Ralph Metzler (rjkm@thp.uni-koeln.de) 662306a36Sopenharmony_ci * 2001 Michael Eskin 762306a36Sopenharmony_ci * 2002 Yurij Sysoev <yurij@naturesoft.net> 862306a36Sopenharmony_ci * 2003 Gerd Knorr <kraxel@bytesex.org> 962306a36Sopenharmony_ci */ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#ifndef _CX88_REG_H_ 1262306a36Sopenharmony_ci#define _CX88_REG_H_ 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci/* 1562306a36Sopenharmony_ci * PCI IDs and config space 1662306a36Sopenharmony_ci */ 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci#ifndef PCI_VENDOR_ID_CONEXANT 1962306a36Sopenharmony_ci# define PCI_VENDOR_ID_CONEXANT 0x14F1 2062306a36Sopenharmony_ci#endif 2162306a36Sopenharmony_ci#ifndef PCI_DEVICE_ID_CX2300_VID 2262306a36Sopenharmony_ci# define PCI_DEVICE_ID_CX2300_VID 0x8800 2362306a36Sopenharmony_ci#endif 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#define CX88X_DEVCTRL 0x40 2662306a36Sopenharmony_ci#define CX88X_EN_TBFX 0x02 2762306a36Sopenharmony_ci#define CX88X_EN_VSFX 0x04 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci/* 3062306a36Sopenharmony_ci * PCI controller registers 3162306a36Sopenharmony_ci */ 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci/* Command and Status Register */ 3462306a36Sopenharmony_ci#define F0_CMD_STAT_MM 0x2f0004 3562306a36Sopenharmony_ci#define F1_CMD_STAT_MM 0x2f0104 3662306a36Sopenharmony_ci#define F2_CMD_STAT_MM 0x2f0204 3762306a36Sopenharmony_ci#define F3_CMD_STAT_MM 0x2f0304 3862306a36Sopenharmony_ci#define F4_CMD_STAT_MM 0x2f0404 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci/* Device Control #1 */ 4162306a36Sopenharmony_ci#define F0_DEV_CNTRL1_MM 0x2f0040 4262306a36Sopenharmony_ci#define F1_DEV_CNTRL1_MM 0x2f0140 4362306a36Sopenharmony_ci#define F2_DEV_CNTRL1_MM 0x2f0240 4462306a36Sopenharmony_ci#define F3_DEV_CNTRL1_MM 0x2f0340 4562306a36Sopenharmony_ci#define F4_DEV_CNTRL1_MM 0x2f0440 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ci/* Device Control #1 */ 4862306a36Sopenharmony_ci#define F0_BAR0_MM 0x2f0010 4962306a36Sopenharmony_ci#define F1_BAR0_MM 0x2f0110 5062306a36Sopenharmony_ci#define F2_BAR0_MM 0x2f0210 5162306a36Sopenharmony_ci#define F3_BAR0_MM 0x2f0310 5262306a36Sopenharmony_ci#define F4_BAR0_MM 0x2f0410 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ci/* 5562306a36Sopenharmony_ci * DMA Controller registers 5662306a36Sopenharmony_ci */ 5762306a36Sopenharmony_ci 5862306a36Sopenharmony_ci#define MO_PDMA_STHRSH 0x200000 // Source threshold 5962306a36Sopenharmony_ci#define MO_PDMA_STADRS 0x200004 // Source target address 6062306a36Sopenharmony_ci#define MO_PDMA_SIADRS 0x200008 // Source internal address 6162306a36Sopenharmony_ci#define MO_PDMA_SCNTRL 0x20000C // Source control 6262306a36Sopenharmony_ci#define MO_PDMA_DTHRSH 0x200010 // Destination threshold 6362306a36Sopenharmony_ci#define MO_PDMA_DTADRS 0x200014 // Destination target address 6462306a36Sopenharmony_ci#define MO_PDMA_DIADRS 0x200018 // Destination internal address 6562306a36Sopenharmony_ci#define MO_PDMA_DCNTRL 0x20001C // Destination control 6662306a36Sopenharmony_ci#define MO_LD_SSID 0x200030 // Load subsystem ID 6762306a36Sopenharmony_ci#define MO_DEV_CNTRL2 0x200034 // Device control 6862306a36Sopenharmony_ci#define MO_PCI_INTMSK 0x200040 // PCI interrupt mask 6962306a36Sopenharmony_ci#define MO_PCI_INTSTAT 0x200044 // PCI interrupt status 7062306a36Sopenharmony_ci#define MO_PCI_INTMSTAT 0x200048 // PCI interrupt masked status 7162306a36Sopenharmony_ci#define MO_VID_INTMSK 0x200050 // Video interrupt mask 7262306a36Sopenharmony_ci#define MO_VID_INTSTAT 0x200054 // Video interrupt status 7362306a36Sopenharmony_ci#define MO_VID_INTMSTAT 0x200058 // Video interrupt masked status 7462306a36Sopenharmony_ci#define MO_VID_INTSSTAT 0x20005C // Video interrupt set status 7562306a36Sopenharmony_ci#define MO_AUD_INTMSK 0x200060 // Audio interrupt mask 7662306a36Sopenharmony_ci#define MO_AUD_INTSTAT 0x200064 // Audio interrupt status 7762306a36Sopenharmony_ci#define MO_AUD_INTMSTAT 0x200068 // Audio interrupt masked status 7862306a36Sopenharmony_ci#define MO_AUD_INTSSTAT 0x20006C // Audio interrupt set status 7962306a36Sopenharmony_ci#define MO_TS_INTMSK 0x200070 // Transport stream interrupt mask 8062306a36Sopenharmony_ci#define MO_TS_INTSTAT 0x200074 // Transport stream interrupt status 8162306a36Sopenharmony_ci#define MO_TS_INTMSTAT 0x200078 // Transport stream interrupt mask status 8262306a36Sopenharmony_ci#define MO_TS_INTSSTAT 0x20007C // Transport stream interrupt set status 8362306a36Sopenharmony_ci#define MO_VIP_INTMSK 0x200080 // VIP interrupt mask 8462306a36Sopenharmony_ci#define MO_VIP_INTSTAT 0x200084 // VIP interrupt status 8562306a36Sopenharmony_ci#define MO_VIP_INTMSTAT 0x200088 // VIP interrupt masked status 8662306a36Sopenharmony_ci#define MO_VIP_INTSSTAT 0x20008C // VIP interrupt set status 8762306a36Sopenharmony_ci#define MO_GPHST_INTMSK 0x200090 // Host interrupt mask 8862306a36Sopenharmony_ci#define MO_GPHST_INTSTAT 0x200094 // Host interrupt status 8962306a36Sopenharmony_ci#define MO_GPHST_INTMSTAT 0x200098 // Host interrupt masked status 9062306a36Sopenharmony_ci#define MO_GPHST_INTSSTAT 0x20009C // Host interrupt set status 9162306a36Sopenharmony_ci 9262306a36Sopenharmony_ci// DMA Channels 1-6 belong to SPIPE 9362306a36Sopenharmony_ci#define MO_DMA7_PTR1 0x300018 // {24}RW* DMA Current Ptr : Ch#7 9462306a36Sopenharmony_ci#define MO_DMA8_PTR1 0x30001C // {24}RW* DMA Current Ptr : Ch#8 9562306a36Sopenharmony_ci 9662306a36Sopenharmony_ci// DMA Channels 9-20 belong to SPIPE 9762306a36Sopenharmony_ci#define MO_DMA21_PTR1 0x300080 // {24}R0* DMA Current Ptr : Ch#21 9862306a36Sopenharmony_ci#define MO_DMA22_PTR1 0x300084 // {24}R0* DMA Current Ptr : Ch#22 9962306a36Sopenharmony_ci#define MO_DMA23_PTR1 0x300088 // {24}R0* DMA Current Ptr : Ch#23 10062306a36Sopenharmony_ci#define MO_DMA24_PTR1 0x30008C // {24}R0* DMA Current Ptr : Ch#24 10162306a36Sopenharmony_ci#define MO_DMA25_PTR1 0x300090 // {24}R0* DMA Current Ptr : Ch#25 10262306a36Sopenharmony_ci#define MO_DMA26_PTR1 0x300094 // {24}R0* DMA Current Ptr : Ch#26 10362306a36Sopenharmony_ci#define MO_DMA27_PTR1 0x300098 // {24}R0* DMA Current Ptr : Ch#27 10462306a36Sopenharmony_ci#define MO_DMA28_PTR1 0x30009C // {24}R0* DMA Current Ptr : Ch#28 10562306a36Sopenharmony_ci#define MO_DMA29_PTR1 0x3000A0 // {24}R0* DMA Current Ptr : Ch#29 10662306a36Sopenharmony_ci#define MO_DMA30_PTR1 0x3000A4 // {24}R0* DMA Current Ptr : Ch#30 10762306a36Sopenharmony_ci#define MO_DMA31_PTR1 0x3000A8 // {24}R0* DMA Current Ptr : Ch#31 10862306a36Sopenharmony_ci#define MO_DMA32_PTR1 0x3000AC // {24}R0* DMA Current Ptr : Ch#32 10962306a36Sopenharmony_ci 11062306a36Sopenharmony_ci#define MO_DMA21_PTR2 0x3000C0 // {24}RW* DMA Tab Ptr : Ch#21 11162306a36Sopenharmony_ci#define MO_DMA22_PTR2 0x3000C4 // {24}RW* DMA Tab Ptr : Ch#22 11262306a36Sopenharmony_ci#define MO_DMA23_PTR2 0x3000C8 // {24}RW* DMA Tab Ptr : Ch#23 11362306a36Sopenharmony_ci#define MO_DMA24_PTR2 0x3000CC // {24}RW* DMA Tab Ptr : Ch#24 11462306a36Sopenharmony_ci#define MO_DMA25_PTR2 0x3000D0 // {24}RW* DMA Tab Ptr : Ch#25 11562306a36Sopenharmony_ci#define MO_DMA26_PTR2 0x3000D4 // {24}RW* DMA Tab Ptr : Ch#26 11662306a36Sopenharmony_ci#define MO_DMA27_PTR2 0x3000D8 // {24}RW* DMA Tab Ptr : Ch#27 11762306a36Sopenharmony_ci#define MO_DMA28_PTR2 0x3000DC // {24}RW* DMA Tab Ptr : Ch#28 11862306a36Sopenharmony_ci#define MO_DMA29_PTR2 0x3000E0 // {24}RW* DMA Tab Ptr : Ch#29 11962306a36Sopenharmony_ci#define MO_DMA30_PTR2 0x3000E4 // {24}RW* DMA Tab Ptr : Ch#30 12062306a36Sopenharmony_ci#define MO_DMA31_PTR2 0x3000E8 // {24}RW* DMA Tab Ptr : Ch#31 12162306a36Sopenharmony_ci#define MO_DMA32_PTR2 0x3000EC // {24}RW* DMA Tab Ptr : Ch#32 12262306a36Sopenharmony_ci 12362306a36Sopenharmony_ci#define MO_DMA21_CNT1 0x300100 // {11}RW* DMA Buffer Size : Ch#21 12462306a36Sopenharmony_ci#define MO_DMA22_CNT1 0x300104 // {11}RW* DMA Buffer Size : Ch#22 12562306a36Sopenharmony_ci#define MO_DMA23_CNT1 0x300108 // {11}RW* DMA Buffer Size : Ch#23 12662306a36Sopenharmony_ci#define MO_DMA24_CNT1 0x30010C // {11}RW* DMA Buffer Size : Ch#24 12762306a36Sopenharmony_ci#define MO_DMA25_CNT1 0x300110 // {11}RW* DMA Buffer Size : Ch#25 12862306a36Sopenharmony_ci#define MO_DMA26_CNT1 0x300114 // {11}RW* DMA Buffer Size : Ch#26 12962306a36Sopenharmony_ci#define MO_DMA27_CNT1 0x300118 // {11}RW* DMA Buffer Size : Ch#27 13062306a36Sopenharmony_ci#define MO_DMA28_CNT1 0x30011C // {11}RW* DMA Buffer Size : Ch#28 13162306a36Sopenharmony_ci#define MO_DMA29_CNT1 0x300120 // {11}RW* DMA Buffer Size : Ch#29 13262306a36Sopenharmony_ci#define MO_DMA30_CNT1 0x300124 // {11}RW* DMA Buffer Size : Ch#30 13362306a36Sopenharmony_ci#define MO_DMA31_CNT1 0x300128 // {11}RW* DMA Buffer Size : Ch#31 13462306a36Sopenharmony_ci#define MO_DMA32_CNT1 0x30012C // {11}RW* DMA Buffer Size : Ch#32 13562306a36Sopenharmony_ci 13662306a36Sopenharmony_ci#define MO_DMA21_CNT2 0x300140 // {11}RW* DMA Table Size : Ch#21 13762306a36Sopenharmony_ci#define MO_DMA22_CNT2 0x300144 // {11}RW* DMA Table Size : Ch#22 13862306a36Sopenharmony_ci#define MO_DMA23_CNT2 0x300148 // {11}RW* DMA Table Size : Ch#23 13962306a36Sopenharmony_ci#define MO_DMA24_CNT2 0x30014C // {11}RW* DMA Table Size : Ch#24 14062306a36Sopenharmony_ci#define MO_DMA25_CNT2 0x300150 // {11}RW* DMA Table Size : Ch#25 14162306a36Sopenharmony_ci#define MO_DMA26_CNT2 0x300154 // {11}RW* DMA Table Size : Ch#26 14262306a36Sopenharmony_ci#define MO_DMA27_CNT2 0x300158 // {11}RW* DMA Table Size : Ch#27 14362306a36Sopenharmony_ci#define MO_DMA28_CNT2 0x30015C // {11}RW* DMA Table Size : Ch#28 14462306a36Sopenharmony_ci#define MO_DMA29_CNT2 0x300160 // {11}RW* DMA Table Size : Ch#29 14562306a36Sopenharmony_ci#define MO_DMA30_CNT2 0x300164 // {11}RW* DMA Table Size : Ch#30 14662306a36Sopenharmony_ci#define MO_DMA31_CNT2 0x300168 // {11}RW* DMA Table Size : Ch#31 14762306a36Sopenharmony_ci#define MO_DMA32_CNT2 0x30016C // {11}RW* DMA Table Size : Ch#32 14862306a36Sopenharmony_ci 14962306a36Sopenharmony_ci/* 15062306a36Sopenharmony_ci * Video registers 15162306a36Sopenharmony_ci */ 15262306a36Sopenharmony_ci 15362306a36Sopenharmony_ci#define MO_VIDY_DMA 0x310000 // {64}RWp Video Y 15462306a36Sopenharmony_ci#define MO_VIDU_DMA 0x310008 // {64}RWp Video U 15562306a36Sopenharmony_ci#define MO_VIDV_DMA 0x310010 // {64}RWp Video V 15662306a36Sopenharmony_ci#define MO_VBI_DMA 0x310018 // {64}RWp VBI (Vertical blanking interval) 15762306a36Sopenharmony_ci 15862306a36Sopenharmony_ci#define MO_DEVICE_STATUS 0x310100 15962306a36Sopenharmony_ci#define MO_INPUT_FORMAT 0x310104 16062306a36Sopenharmony_ci#define MO_AGC_BURST 0x31010c 16162306a36Sopenharmony_ci#define MO_CONTR_BRIGHT 0x310110 16262306a36Sopenharmony_ci#define MO_UV_SATURATION 0x310114 16362306a36Sopenharmony_ci#define MO_HUE 0x310118 16462306a36Sopenharmony_ci#define MO_HTOTAL 0x310120 16562306a36Sopenharmony_ci#define MO_HDELAY_EVEN 0x310124 16662306a36Sopenharmony_ci#define MO_HDELAY_ODD 0x310128 16762306a36Sopenharmony_ci#define MO_VDELAY_ODD 0x31012c 16862306a36Sopenharmony_ci#define MO_VDELAY_EVEN 0x310130 16962306a36Sopenharmony_ci#define MO_HACTIVE_EVEN 0x31013c 17062306a36Sopenharmony_ci#define MO_HACTIVE_ODD 0x310140 17162306a36Sopenharmony_ci#define MO_VACTIVE_EVEN 0x310144 17262306a36Sopenharmony_ci#define MO_VACTIVE_ODD 0x310148 17362306a36Sopenharmony_ci#define MO_HSCALE_EVEN 0x31014c 17462306a36Sopenharmony_ci#define MO_HSCALE_ODD 0x310150 17562306a36Sopenharmony_ci#define MO_VSCALE_EVEN 0x310154 17662306a36Sopenharmony_ci#define MO_FILTER_EVEN 0x31015c 17762306a36Sopenharmony_ci#define MO_VSCALE_ODD 0x310158 17862306a36Sopenharmony_ci#define MO_FILTER_ODD 0x310160 17962306a36Sopenharmony_ci#define MO_OUTPUT_FORMAT 0x310164 18062306a36Sopenharmony_ci 18162306a36Sopenharmony_ci#define MO_PLL_REG 0x310168 // PLL register 18262306a36Sopenharmony_ci#define MO_PLL_ADJ_CTRL 0x31016c // PLL adjust control register 18362306a36Sopenharmony_ci#define MO_SCONV_REG 0x310170 // sample rate conversion register 18462306a36Sopenharmony_ci#define MO_SCONV_FIFO 0x310174 // sample rate conversion fifo 18562306a36Sopenharmony_ci#define MO_SUB_STEP 0x310178 // subcarrier step size 18662306a36Sopenharmony_ci#define MO_SUB_STEP_DR 0x31017c // subcarrier step size for DR line 18762306a36Sopenharmony_ci 18862306a36Sopenharmony_ci#define MO_CAPTURE_CTRL 0x310180 // capture control 18962306a36Sopenharmony_ci#define MO_COLOR_CTRL 0x310184 19062306a36Sopenharmony_ci#define MO_VBI_PACKET 0x310188 // vbi packet size / delay 19162306a36Sopenharmony_ci#define MO_FIELD_COUNT 0x310190 // field counter 19262306a36Sopenharmony_ci#define MO_VIP_CONFIG 0x310194 19362306a36Sopenharmony_ci#define MO_VBOS_CONTROL 0x3101a8 19462306a36Sopenharmony_ci 19562306a36Sopenharmony_ci#define MO_AGC_BACK_VBI 0x310200 19662306a36Sopenharmony_ci#define MO_AGC_SYNC_TIP1 0x310208 19762306a36Sopenharmony_ci 19862306a36Sopenharmony_ci#define MO_VIDY_GPCNT 0x31C020 // {16}RO Video Y general purpose counter 19962306a36Sopenharmony_ci#define MO_VIDU_GPCNT 0x31C024 // {16}RO Video U general purpose counter 20062306a36Sopenharmony_ci#define MO_VIDV_GPCNT 0x31C028 // {16}RO Video V general purpose counter 20162306a36Sopenharmony_ci#define MO_VBI_GPCNT 0x31C02C // {16}RO VBI general purpose counter 20262306a36Sopenharmony_ci#define MO_VIDY_GPCNTRL 0x31C030 // {2}WO Video Y general purpose control 20362306a36Sopenharmony_ci#define MO_VIDU_GPCNTRL 0x31C034 // {2}WO Video U general purpose control 20462306a36Sopenharmony_ci#define MO_VIDV_GPCNTRL 0x31C038 // {2}WO Video V general purpose control 20562306a36Sopenharmony_ci#define MO_VBI_GPCNTRL 0x31C03C // {2}WO VBI general purpose counter 20662306a36Sopenharmony_ci#define MO_VID_DMACNTRL 0x31C040 // {8}RW Video DMA control 20762306a36Sopenharmony_ci#define MO_VID_XFR_STAT 0x31C044 // {1}RO Video transfer status 20862306a36Sopenharmony_ci 20962306a36Sopenharmony_ci/* 21062306a36Sopenharmony_ci * audio registers 21162306a36Sopenharmony_ci */ 21262306a36Sopenharmony_ci 21362306a36Sopenharmony_ci#define MO_AUDD_DMA 0x320000 // {64}RWp Audio downstream 21462306a36Sopenharmony_ci#define MO_AUDU_DMA 0x320008 // {64}RWp Audio upstream 21562306a36Sopenharmony_ci#define MO_AUDR_DMA 0x320010 // {64}RWp Audio RDS (downstream) 21662306a36Sopenharmony_ci#define MO_AUDD_GPCNT 0x32C020 // {16}RO Audio down general purpose counter 21762306a36Sopenharmony_ci#define MO_AUDU_GPCNT 0x32C024 // {16}RO Audio up general purpose counter 21862306a36Sopenharmony_ci#define MO_AUDR_GPCNT 0x32C028 // {16}RO Audio RDS general purpose counter 21962306a36Sopenharmony_ci#define MO_AUDD_GPCNTRL 0x32C030 // {2}WO Audio down general purpose control 22062306a36Sopenharmony_ci#define MO_AUDU_GPCNTRL 0x32C034 // {2}WO Audio up general purpose control 22162306a36Sopenharmony_ci#define MO_AUDR_GPCNTRL 0x32C038 // {2}WO Audio RDS general purpose control 22262306a36Sopenharmony_ci#define MO_AUD_DMACNTRL 0x32C040 // {6}RW Audio DMA control 22362306a36Sopenharmony_ci#define MO_AUD_XFR_STAT 0x32C044 // {1}RO Audio transfer status 22462306a36Sopenharmony_ci#define MO_AUDD_LNGTH 0x32C048 // {12}RW Audio down line length 22562306a36Sopenharmony_ci#define MO_AUDR_LNGTH 0x32C04C // {12}RW Audio RDS line length 22662306a36Sopenharmony_ci 22762306a36Sopenharmony_ci#define AUD_INIT 0x320100 22862306a36Sopenharmony_ci#define AUD_INIT_LD 0x320104 22962306a36Sopenharmony_ci#define AUD_SOFT_RESET 0x320108 23062306a36Sopenharmony_ci#define AUD_I2SINPUTCNTL 0x320120 23162306a36Sopenharmony_ci#define AUD_BAUDRATE 0x320124 23262306a36Sopenharmony_ci#define AUD_I2SOUTPUTCNTL 0x320128 23362306a36Sopenharmony_ci#define AAGC_HYST 0x320134 23462306a36Sopenharmony_ci#define AAGC_GAIN 0x320138 23562306a36Sopenharmony_ci#define AAGC_DEF 0x32013c 23662306a36Sopenharmony_ci#define AUD_IIR1_0_SEL 0x320150 23762306a36Sopenharmony_ci#define AUD_IIR1_0_SHIFT 0x320154 23862306a36Sopenharmony_ci#define AUD_IIR1_1_SEL 0x320158 23962306a36Sopenharmony_ci#define AUD_IIR1_1_SHIFT 0x32015c 24062306a36Sopenharmony_ci#define AUD_IIR1_2_SEL 0x320160 24162306a36Sopenharmony_ci#define AUD_IIR1_2_SHIFT 0x320164 24262306a36Sopenharmony_ci#define AUD_IIR1_3_SEL 0x320168 24362306a36Sopenharmony_ci#define AUD_IIR1_3_SHIFT 0x32016c 24462306a36Sopenharmony_ci#define AUD_IIR1_4_SEL 0x320170 24562306a36Sopenharmony_ci#define AUD_IIR1_4_SHIFT 0x32017c 24662306a36Sopenharmony_ci#define AUD_IIR1_5_SEL 0x320180 24762306a36Sopenharmony_ci#define AUD_IIR1_5_SHIFT 0x320184 24862306a36Sopenharmony_ci#define AUD_IIR2_0_SEL 0x320190 24962306a36Sopenharmony_ci#define AUD_IIR2_0_SHIFT 0x320194 25062306a36Sopenharmony_ci#define AUD_IIR2_1_SEL 0x320198 25162306a36Sopenharmony_ci#define AUD_IIR2_1_SHIFT 0x32019c 25262306a36Sopenharmony_ci#define AUD_IIR2_2_SEL 0x3201a0 25362306a36Sopenharmony_ci#define AUD_IIR2_2_SHIFT 0x3201a4 25462306a36Sopenharmony_ci#define AUD_IIR2_3_SEL 0x3201a8 25562306a36Sopenharmony_ci#define AUD_IIR2_3_SHIFT 0x3201ac 25662306a36Sopenharmony_ci#define AUD_IIR3_0_SEL 0x3201c0 25762306a36Sopenharmony_ci#define AUD_IIR3_0_SHIFT 0x3201c4 25862306a36Sopenharmony_ci#define AUD_IIR3_1_SEL 0x3201c8 25962306a36Sopenharmony_ci#define AUD_IIR3_1_SHIFT 0x3201cc 26062306a36Sopenharmony_ci#define AUD_IIR3_2_SEL 0x3201d0 26162306a36Sopenharmony_ci#define AUD_IIR3_2_SHIFT 0x3201d4 26262306a36Sopenharmony_ci#define AUD_IIR4_0_SEL 0x3201e0 26362306a36Sopenharmony_ci#define AUD_IIR4_0_SHIFT 0x3201e4 26462306a36Sopenharmony_ci#define AUD_IIR4_1_SEL 0x3201e8 26562306a36Sopenharmony_ci#define AUD_IIR4_1_SHIFT 0x3201ec 26662306a36Sopenharmony_ci#define AUD_IIR4_2_SEL 0x3201f0 26762306a36Sopenharmony_ci#define AUD_IIR4_2_SHIFT 0x3201f4 26862306a36Sopenharmony_ci#define AUD_IIR4_0_CA0 0x320200 26962306a36Sopenharmony_ci#define AUD_IIR4_0_CA1 0x320204 27062306a36Sopenharmony_ci#define AUD_IIR4_0_CA2 0x320208 27162306a36Sopenharmony_ci#define AUD_IIR4_0_CB0 0x32020c 27262306a36Sopenharmony_ci#define AUD_IIR4_0_CB1 0x320210 27362306a36Sopenharmony_ci#define AUD_IIR4_1_CA0 0x320214 27462306a36Sopenharmony_ci#define AUD_IIR4_1_CA1 0x320218 27562306a36Sopenharmony_ci#define AUD_IIR4_1_CA2 0x32021c 27662306a36Sopenharmony_ci#define AUD_IIR4_1_CB0 0x320220 27762306a36Sopenharmony_ci#define AUD_IIR4_1_CB1 0x320224 27862306a36Sopenharmony_ci#define AUD_IIR4_2_CA0 0x320228 27962306a36Sopenharmony_ci#define AUD_IIR4_2_CA1 0x32022c 28062306a36Sopenharmony_ci#define AUD_IIR4_2_CA2 0x320230 28162306a36Sopenharmony_ci#define AUD_IIR4_2_CB0 0x320234 28262306a36Sopenharmony_ci#define AUD_IIR4_2_CB1 0x320238 28362306a36Sopenharmony_ci#define AUD_HP_MD_IIR4_1 0x320250 28462306a36Sopenharmony_ci#define AUD_HP_PROG_IIR4_1 0x320254 28562306a36Sopenharmony_ci#define AUD_FM_MODE_ENABLE 0x320258 28662306a36Sopenharmony_ci#define AUD_POLY0_DDS_CONSTANT 0x320270 28762306a36Sopenharmony_ci#define AUD_DN0_FREQ 0x320274 28862306a36Sopenharmony_ci#define AUD_DN1_FREQ 0x320278 28962306a36Sopenharmony_ci#define AUD_DN1_FREQ_SHIFT 0x32027c 29062306a36Sopenharmony_ci#define AUD_DN1_AFC 0x320280 29162306a36Sopenharmony_ci#define AUD_DN1_SRC_SEL 0x320284 29262306a36Sopenharmony_ci#define AUD_DN1_SHFT 0x320288 29362306a36Sopenharmony_ci#define AUD_DN2_FREQ 0x32028c 29462306a36Sopenharmony_ci#define AUD_DN2_FREQ_SHIFT 0x320290 29562306a36Sopenharmony_ci#define AUD_DN2_AFC 0x320294 29662306a36Sopenharmony_ci#define AUD_DN2_SRC_SEL 0x320298 29762306a36Sopenharmony_ci#define AUD_DN2_SHFT 0x32029c 29862306a36Sopenharmony_ci#define AUD_CRDC0_SRC_SEL 0x320300 29962306a36Sopenharmony_ci#define AUD_CRDC0_SHIFT 0x320304 30062306a36Sopenharmony_ci#define AUD_CORDIC_SHIFT_0 0x320308 30162306a36Sopenharmony_ci#define AUD_CRDC1_SRC_SEL 0x32030c 30262306a36Sopenharmony_ci#define AUD_CRDC1_SHIFT 0x320310 30362306a36Sopenharmony_ci#define AUD_CORDIC_SHIFT_1 0x320314 30462306a36Sopenharmony_ci#define AUD_DCOC_0_SRC 0x320320 30562306a36Sopenharmony_ci#define AUD_DCOC0_SHIFT 0x320324 30662306a36Sopenharmony_ci#define AUD_DCOC_0_SHIFT_IN0 0x320328 30762306a36Sopenharmony_ci#define AUD_DCOC_0_SHIFT_IN1 0x32032c 30862306a36Sopenharmony_ci#define AUD_DCOC_1_SRC 0x320330 30962306a36Sopenharmony_ci#define AUD_DCOC1_SHIFT 0x320334 31062306a36Sopenharmony_ci#define AUD_DCOC_1_SHIFT_IN0 0x320338 31162306a36Sopenharmony_ci#define AUD_DCOC_1_SHIFT_IN1 0x32033c 31262306a36Sopenharmony_ci#define AUD_DCOC_2_SRC 0x320340 31362306a36Sopenharmony_ci#define AUD_DCOC2_SHIFT 0x320344 31462306a36Sopenharmony_ci#define AUD_DCOC_2_SHIFT_IN0 0x320348 31562306a36Sopenharmony_ci#define AUD_DCOC_2_SHIFT_IN1 0x32034c 31662306a36Sopenharmony_ci#define AUD_DCOC_PASS_IN 0x320350 31762306a36Sopenharmony_ci#define AUD_PDET_SRC 0x320370 31862306a36Sopenharmony_ci#define AUD_PDET_SHIFT 0x320374 31962306a36Sopenharmony_ci#define AUD_PILOT_BQD_1_K0 0x320380 32062306a36Sopenharmony_ci#define AUD_PILOT_BQD_1_K1 0x320384 32162306a36Sopenharmony_ci#define AUD_PILOT_BQD_1_K2 0x320388 32262306a36Sopenharmony_ci#define AUD_PILOT_BQD_1_K3 0x32038c 32362306a36Sopenharmony_ci#define AUD_PILOT_BQD_1_K4 0x320390 32462306a36Sopenharmony_ci#define AUD_PILOT_BQD_2_K0 0x320394 32562306a36Sopenharmony_ci#define AUD_PILOT_BQD_2_K1 0x320398 32662306a36Sopenharmony_ci#define AUD_PILOT_BQD_2_K2 0x32039c 32762306a36Sopenharmony_ci#define AUD_PILOT_BQD_2_K3 0x3203a0 32862306a36Sopenharmony_ci#define AUD_PILOT_BQD_2_K4 0x3203a4 32962306a36Sopenharmony_ci#define AUD_THR_FR 0x3203c0 33062306a36Sopenharmony_ci#define AUD_X_PROG 0x3203c4 33162306a36Sopenharmony_ci#define AUD_Y_PROG 0x3203c8 33262306a36Sopenharmony_ci#define AUD_HARMONIC_MULT 0x3203cc 33362306a36Sopenharmony_ci#define AUD_C1_UP_THR 0x3203d0 33462306a36Sopenharmony_ci#define AUD_C1_LO_THR 0x3203d4 33562306a36Sopenharmony_ci#define AUD_C2_UP_THR 0x3203d8 33662306a36Sopenharmony_ci#define AUD_C2_LO_THR 0x3203dc 33762306a36Sopenharmony_ci#define AUD_PLL_EN 0x320400 33862306a36Sopenharmony_ci#define AUD_PLL_SRC 0x320404 33962306a36Sopenharmony_ci#define AUD_PLL_SHIFT 0x320408 34062306a36Sopenharmony_ci#define AUD_PLL_IF_SEL 0x32040c 34162306a36Sopenharmony_ci#define AUD_PLL_IF_SHIFT 0x320410 34262306a36Sopenharmony_ci#define AUD_BIQUAD_PLL_K0 0x320414 34362306a36Sopenharmony_ci#define AUD_BIQUAD_PLL_K1 0x320418 34462306a36Sopenharmony_ci#define AUD_BIQUAD_PLL_K2 0x32041c 34562306a36Sopenharmony_ci#define AUD_BIQUAD_PLL_K3 0x320420 34662306a36Sopenharmony_ci#define AUD_BIQUAD_PLL_K4 0x320424 34762306a36Sopenharmony_ci#define AUD_DEEMPH0_SRC_SEL 0x320440 34862306a36Sopenharmony_ci#define AUD_DEEMPH0_SHIFT 0x320444 34962306a36Sopenharmony_ci#define AUD_DEEMPH0_G0 0x320448 35062306a36Sopenharmony_ci#define AUD_DEEMPH0_A0 0x32044c 35162306a36Sopenharmony_ci#define AUD_DEEMPH0_B0 0x320450 35262306a36Sopenharmony_ci#define AUD_DEEMPH0_A1 0x320454 35362306a36Sopenharmony_ci#define AUD_DEEMPH0_B1 0x320458 35462306a36Sopenharmony_ci#define AUD_DEEMPH1_SRC_SEL 0x32045c 35562306a36Sopenharmony_ci#define AUD_DEEMPH1_SHIFT 0x320460 35662306a36Sopenharmony_ci#define AUD_DEEMPH1_G0 0x320464 35762306a36Sopenharmony_ci#define AUD_DEEMPH1_A0 0x320468 35862306a36Sopenharmony_ci#define AUD_DEEMPH1_B0 0x32046c 35962306a36Sopenharmony_ci#define AUD_DEEMPH1_A1 0x320470 36062306a36Sopenharmony_ci#define AUD_DEEMPH1_B1 0x320474 36162306a36Sopenharmony_ci#define AUD_OUT0_SEL 0x320490 36262306a36Sopenharmony_ci#define AUD_OUT0_SHIFT 0x320494 36362306a36Sopenharmony_ci#define AUD_OUT1_SEL 0x320498 36462306a36Sopenharmony_ci#define AUD_OUT1_SHIFT 0x32049c 36562306a36Sopenharmony_ci#define AUD_RDSI_SEL 0x3204a0 36662306a36Sopenharmony_ci#define AUD_RDSI_SHIFT 0x3204a4 36762306a36Sopenharmony_ci#define AUD_RDSQ_SEL 0x3204a8 36862306a36Sopenharmony_ci#define AUD_RDSQ_SHIFT 0x3204ac 36962306a36Sopenharmony_ci#define AUD_DBX_IN_GAIN 0x320500 37062306a36Sopenharmony_ci#define AUD_DBX_WBE_GAIN 0x320504 37162306a36Sopenharmony_ci#define AUD_DBX_SE_GAIN 0x320508 37262306a36Sopenharmony_ci#define AUD_DBX_RMS_WBE 0x32050c 37362306a36Sopenharmony_ci#define AUD_DBX_RMS_SE 0x320510 37462306a36Sopenharmony_ci#define AUD_DBX_SE_BYPASS 0x320514 37562306a36Sopenharmony_ci#define AUD_FAWDETCTL 0x320530 37662306a36Sopenharmony_ci#define AUD_FAWDETWINCTL 0x320534 37762306a36Sopenharmony_ci#define AUD_DEEMPHGAIN_R 0x320538 37862306a36Sopenharmony_ci#define AUD_DEEMPHNUMER1_R 0x32053c 37962306a36Sopenharmony_ci#define AUD_DEEMPHNUMER2_R 0x320540 38062306a36Sopenharmony_ci#define AUD_DEEMPHDENOM1_R 0x320544 38162306a36Sopenharmony_ci#define AUD_DEEMPHDENOM2_R 0x320548 38262306a36Sopenharmony_ci#define AUD_ERRLOGPERIOD_R 0x32054c 38362306a36Sopenharmony_ci#define AUD_ERRINTRPTTHSHLD1_R 0x320550 38462306a36Sopenharmony_ci#define AUD_ERRINTRPTTHSHLD2_R 0x320554 38562306a36Sopenharmony_ci#define AUD_ERRINTRPTTHSHLD3_R 0x320558 38662306a36Sopenharmony_ci#define AUD_NICAM_STATUS1 0x32055c 38762306a36Sopenharmony_ci#define AUD_NICAM_STATUS2 0x320560 38862306a36Sopenharmony_ci#define AUD_ERRLOG1 0x320564 38962306a36Sopenharmony_ci#define AUD_ERRLOG2 0x320568 39062306a36Sopenharmony_ci#define AUD_ERRLOG3 0x32056c 39162306a36Sopenharmony_ci#define AUD_DAC_BYPASS_L 0x320580 39262306a36Sopenharmony_ci#define AUD_DAC_BYPASS_R 0x320584 39362306a36Sopenharmony_ci#define AUD_DAC_BYPASS_CTL 0x320588 39462306a36Sopenharmony_ci#define AUD_CTL 0x32058c 39562306a36Sopenharmony_ci#define AUD_STATUS 0x320590 39662306a36Sopenharmony_ci#define AUD_VOL_CTL 0x320594 39762306a36Sopenharmony_ci#define AUD_BAL_CTL 0x320598 39862306a36Sopenharmony_ci#define AUD_START_TIMER 0x3205b0 39962306a36Sopenharmony_ci#define AUD_MODE_CHG_TIMER 0x3205b4 40062306a36Sopenharmony_ci#define AUD_POLYPH80SCALEFAC 0x3205b8 40162306a36Sopenharmony_ci#define AUD_DMD_RA_DDS 0x3205bc 40262306a36Sopenharmony_ci#define AUD_I2S_RA_DDS 0x3205c0 40362306a36Sopenharmony_ci#define AUD_RATE_THRES_DMD 0x3205d0 40462306a36Sopenharmony_ci#define AUD_RATE_THRES_I2S 0x3205d4 40562306a36Sopenharmony_ci#define AUD_RATE_ADJ1 0x3205d8 40662306a36Sopenharmony_ci#define AUD_RATE_ADJ2 0x3205dc 40762306a36Sopenharmony_ci#define AUD_RATE_ADJ3 0x3205e0 40862306a36Sopenharmony_ci#define AUD_RATE_ADJ4 0x3205e4 40962306a36Sopenharmony_ci#define AUD_RATE_ADJ5 0x3205e8 41062306a36Sopenharmony_ci#define AUD_APB_IN_RATE_ADJ 0x3205ec 41162306a36Sopenharmony_ci#define AUD_I2SCNTL 0x3205ec 41262306a36Sopenharmony_ci#define AUD_PHASE_FIX_CTL 0x3205f0 41362306a36Sopenharmony_ci#define AUD_PLL_PRESCALE 0x320600 41462306a36Sopenharmony_ci#define AUD_PLL_DDS 0x320604 41562306a36Sopenharmony_ci#define AUD_PLL_INT 0x320608 41662306a36Sopenharmony_ci#define AUD_PLL_FRAC 0x32060c 41762306a36Sopenharmony_ci#define AUD_PLL_JTAG 0x320620 41862306a36Sopenharmony_ci#define AUD_PLL_SPMP 0x320624 41962306a36Sopenharmony_ci#define AUD_AFE_12DB_EN 0x320628 42062306a36Sopenharmony_ci 42162306a36Sopenharmony_ci// Audio QAM Register Addresses 42262306a36Sopenharmony_ci#define AUD_PDF_DDS_CNST_BYTE2 0x320d01 42362306a36Sopenharmony_ci#define AUD_PDF_DDS_CNST_BYTE1 0x320d02 42462306a36Sopenharmony_ci#define AUD_PDF_DDS_CNST_BYTE0 0x320d03 42562306a36Sopenharmony_ci#define AUD_PHACC_FREQ_8MSB 0x320d2a 42662306a36Sopenharmony_ci#define AUD_PHACC_FREQ_8LSB 0x320d2b 42762306a36Sopenharmony_ci#define AUD_QAM_MODE 0x320d04 42862306a36Sopenharmony_ci 42962306a36Sopenharmony_ci/* 43062306a36Sopenharmony_ci * transport stream registers 43162306a36Sopenharmony_ci */ 43262306a36Sopenharmony_ci 43362306a36Sopenharmony_ci#define MO_TS_DMA 0x330000 // {64}RWp Transport stream downstream 43462306a36Sopenharmony_ci#define MO_TS_GPCNT 0x33C020 // {16}RO TS general purpose counter 43562306a36Sopenharmony_ci#define MO_TS_GPCNTRL 0x33C030 // {2}WO TS general purpose control 43662306a36Sopenharmony_ci#define MO_TS_DMACNTRL 0x33C040 // {6}RW TS DMA control 43762306a36Sopenharmony_ci#define MO_TS_XFR_STAT 0x33C044 // {1}RO TS transfer status 43862306a36Sopenharmony_ci#define MO_TS_LNGTH 0x33C048 // {12}RW TS line length 43962306a36Sopenharmony_ci 44062306a36Sopenharmony_ci#define TS_HW_SOP_CNTRL 0x33C04C 44162306a36Sopenharmony_ci#define TS_GEN_CNTRL 0x33C050 44262306a36Sopenharmony_ci#define TS_BD_PKT_STAT 0x33C054 44362306a36Sopenharmony_ci#define TS_SOP_STAT 0x33C058 44462306a36Sopenharmony_ci#define TS_FIFO_OVFL_STAT 0x33C05C 44562306a36Sopenharmony_ci#define TS_VALERR_CNTRL 0x33C060 44662306a36Sopenharmony_ci 44762306a36Sopenharmony_ci/* 44862306a36Sopenharmony_ci * VIP registers 44962306a36Sopenharmony_ci */ 45062306a36Sopenharmony_ci 45162306a36Sopenharmony_ci#define MO_VIPD_DMA 0x340000 // {64}RWp VIP downstream 45262306a36Sopenharmony_ci#define MO_VIPU_DMA 0x340008 // {64}RWp VIP upstream 45362306a36Sopenharmony_ci#define MO_VIPD_GPCNT 0x34C020 // {16}RO VIP down general purpose counter 45462306a36Sopenharmony_ci#define MO_VIPU_GPCNT 0x34C024 // {16}RO VIP up general purpose counter 45562306a36Sopenharmony_ci#define MO_VIPD_GPCNTRL 0x34C030 // {2}WO VIP down general purpose control 45662306a36Sopenharmony_ci#define MO_VIPU_GPCNTRL 0x34C034 // {2}WO VIP up general purpose control 45762306a36Sopenharmony_ci#define MO_VIP_DMACNTRL 0x34C040 // {6}RW VIP DMA control 45862306a36Sopenharmony_ci#define MO_VIP_XFR_STAT 0x34C044 // {1}RO VIP transfer status 45962306a36Sopenharmony_ci#define MO_VIP_CFG 0x340048 // VIP configuration 46062306a36Sopenharmony_ci#define MO_VIPU_CNTRL 0x34004C // VIP upstream control #1 46162306a36Sopenharmony_ci#define MO_VIPD_CNTRL 0x340050 // VIP downstream control #2 46262306a36Sopenharmony_ci#define MO_VIPD_LNGTH 0x340054 // VIP downstream line length 46362306a36Sopenharmony_ci#define MO_VIP_BRSTLN 0x340058 // VIP burst length 46462306a36Sopenharmony_ci#define MO_VIP_INTCNTRL 0x34C05C // VIP Interrupt Control 46562306a36Sopenharmony_ci#define MO_VIP_XFTERM 0x340060 // VIP transfer terminate 46662306a36Sopenharmony_ci 46762306a36Sopenharmony_ci/* 46862306a36Sopenharmony_ci * misc registers 46962306a36Sopenharmony_ci */ 47062306a36Sopenharmony_ci 47162306a36Sopenharmony_ci#define MO_M2M_DMA 0x350000 // {64}RWp Mem2Mem DMA Bfr 47262306a36Sopenharmony_ci#define MO_GP0_IO 0x350010 // {32}RW* GPIOoutput enablesdata I/O 47362306a36Sopenharmony_ci#define MO_GP1_IO 0x350014 // {32}RW* GPIOoutput enablesdata I/O 47462306a36Sopenharmony_ci#define MO_GP2_IO 0x350018 // {32}RW* GPIOoutput enablesdata I/O 47562306a36Sopenharmony_ci#define MO_GP3_IO 0x35001C // {32}RW* GPIO Mode/Ctrloutput enables 47662306a36Sopenharmony_ci#define MO_GPIO 0x350020 // {32}RW* GPIO I2C Ctrldata I/O 47762306a36Sopenharmony_ci#define MO_GPOE 0x350024 // {32}RW GPIO I2C Ctrloutput enables 47862306a36Sopenharmony_ci#define MO_GP_ISM 0x350028 // {16}WO GPIO Intr Sens/Pol 47962306a36Sopenharmony_ci 48062306a36Sopenharmony_ci#define MO_PLL_B 0x35C008 // {32}RW* PLL Control for ASB bus clks 48162306a36Sopenharmony_ci#define MO_M2M_CNT 0x35C024 // {32}RW Mem2Mem DMA Cnt 48262306a36Sopenharmony_ci#define MO_M2M_XSUM 0x35C028 // {32}RO M2M XOR-Checksum 48362306a36Sopenharmony_ci#define MO_CRC 0x35C02C // {16}RW CRC16 init/result 48462306a36Sopenharmony_ci#define MO_CRC_D 0x35C030 // {32}WO CRC16 new data in 48562306a36Sopenharmony_ci#define MO_TM_CNT_LDW 0x35C034 // {32}RO Timer : Counter low dword 48662306a36Sopenharmony_ci#define MO_TM_CNT_UW 0x35C038 // {16}RO Timer : Counter high word 48762306a36Sopenharmony_ci#define MO_TM_LMT_LDW 0x35C03C // {32}RW Timer : Limit low dword 48862306a36Sopenharmony_ci#define MO_TM_LMT_UW 0x35C040 // {32}RW Timer : Limit high word 48962306a36Sopenharmony_ci#define MO_PINMUX_IO 0x35C044 // {8}RW Pin Mux Control 49062306a36Sopenharmony_ci#define MO_TSTSEL_IO 0x35C048 // {2}RW Pin Mux Control 49162306a36Sopenharmony_ci#define MO_AFECFG_IO 0x35C04C // AFE configuration reg 49262306a36Sopenharmony_ci#define MO_DDS_IO 0x35C050 // DDS Increment reg 49362306a36Sopenharmony_ci#define MO_DDSCFG_IO 0x35C054 // DDS Configuration reg 49462306a36Sopenharmony_ci#define MO_SAMPLE_IO 0x35C058 // IRIn sample reg 49562306a36Sopenharmony_ci#define MO_SRST_IO 0x35C05C // Output system reset reg 49662306a36Sopenharmony_ci 49762306a36Sopenharmony_ci#define MO_INT1_MSK 0x35C060 // DMA RISC interrupt mask 49862306a36Sopenharmony_ci#define MO_INT1_STAT 0x35C064 // DMA RISC interrupt status 49962306a36Sopenharmony_ci#define MO_INT1_MSTAT 0x35C068 // DMA RISC interrupt masked status 50062306a36Sopenharmony_ci 50162306a36Sopenharmony_ci/* 50262306a36Sopenharmony_ci * i2c bus registers 50362306a36Sopenharmony_ci */ 50462306a36Sopenharmony_ci 50562306a36Sopenharmony_ci#define MO_I2C 0x368000 // I2C data/control 50662306a36Sopenharmony_ci#define MO_I2C_DIV (0xf<<4) 50762306a36Sopenharmony_ci#define MO_I2C_SYNC (1<<3) 50862306a36Sopenharmony_ci#define MO_I2C_W3B (1<<2) 50962306a36Sopenharmony_ci#define MO_I2C_SCL (1<<1) 51062306a36Sopenharmony_ci#define MO_I2C_SDA (1<<0) 51162306a36Sopenharmony_ci 51262306a36Sopenharmony_ci 51362306a36Sopenharmony_ci/* 51462306a36Sopenharmony_ci * general purpose host registers 51562306a36Sopenharmony_ci * 51662306a36Sopenharmony_ci * FIXME: tyops? s/0x35/0x38/ ?? 51762306a36Sopenharmony_ci */ 51862306a36Sopenharmony_ci 51962306a36Sopenharmony_ci#define MO_GPHSTD_DMA 0x350000 // {64}RWp Host downstream 52062306a36Sopenharmony_ci#define MO_GPHSTU_DMA 0x350008 // {64}RWp Host upstream 52162306a36Sopenharmony_ci#define MO_GPHSTU_CNTRL 0x380048 // Host upstream control #1 52262306a36Sopenharmony_ci#define MO_GPHSTD_CNTRL 0x38004C // Host downstream control #2 52362306a36Sopenharmony_ci#define MO_GPHSTD_LNGTH 0x380050 // Host downstream line length 52462306a36Sopenharmony_ci#define MO_GPHST_WSC 0x380054 // Host wait state control 52562306a36Sopenharmony_ci#define MO_GPHST_XFR 0x380058 // Host transfer control 52662306a36Sopenharmony_ci#define MO_GPHST_WDTH 0x38005C // Host interface width 52762306a36Sopenharmony_ci#define MO_GPHST_HDSHK 0x380060 // Host peripheral handshake 52862306a36Sopenharmony_ci#define MO_GPHST_MUX16 0x380064 // Host muxed 16-bit transfer parameters 52962306a36Sopenharmony_ci#define MO_GPHST_MODE 0x380068 // Host mode select 53062306a36Sopenharmony_ci 53162306a36Sopenharmony_ci#define MO_GPHSTD_GPCNT 0x35C020 // Host down general purpose counter 53262306a36Sopenharmony_ci#define MO_GPHSTU_GPCNT 0x35C024 // Host up general purpose counter 53362306a36Sopenharmony_ci#define MO_GPHSTD_GPCNTRL 0x38C030 // Host down general purpose control 53462306a36Sopenharmony_ci#define MO_GPHSTU_GPCNTRL 0x38C034 // Host up general purpose control 53562306a36Sopenharmony_ci#define MO_GPHST_DMACNTRL 0x38C040 // Host DMA control 53662306a36Sopenharmony_ci#define MO_GPHST_XFR_STAT 0x38C044 // Host transfer status 53762306a36Sopenharmony_ci#define MO_GPHST_SOFT_RST 0x38C06C // Host software reset 53862306a36Sopenharmony_ci 53962306a36Sopenharmony_ci/* 54062306a36Sopenharmony_ci * RISC instructions 54162306a36Sopenharmony_ci */ 54262306a36Sopenharmony_ci 54362306a36Sopenharmony_ci#define RISC_SYNC 0x80000000 54462306a36Sopenharmony_ci#define RISC_SYNC_ODD 0x80000000 54562306a36Sopenharmony_ci#define RISC_SYNC_EVEN 0x80000200 54662306a36Sopenharmony_ci#define RISC_RESYNC 0x80008000 54762306a36Sopenharmony_ci#define RISC_RESYNC_ODD 0x80008000 54862306a36Sopenharmony_ci#define RISC_RESYNC_EVEN 0x80008200 54962306a36Sopenharmony_ci#define RISC_WRITE 0x10000000 55062306a36Sopenharmony_ci#define RISC_WRITEC 0x50000000 55162306a36Sopenharmony_ci#define RISC_READ 0x90000000 55262306a36Sopenharmony_ci#define RISC_READC 0xA0000000 55362306a36Sopenharmony_ci#define RISC_JUMP 0x70000000 55462306a36Sopenharmony_ci#define RISC_SKIP 0x20000000 55562306a36Sopenharmony_ci#define RISC_WRITERM 0xB0000000 55662306a36Sopenharmony_ci#define RISC_WRITECM 0xC0000000 55762306a36Sopenharmony_ci#define RISC_WRITECR 0xD0000000 55862306a36Sopenharmony_ci#define RISC_IMM 0x00000001 55962306a36Sopenharmony_ci 56062306a36Sopenharmony_ci#define RISC_SOL 0x08000000 56162306a36Sopenharmony_ci#define RISC_EOL 0x04000000 56262306a36Sopenharmony_ci 56362306a36Sopenharmony_ci#define RISC_IRQ2 0x02000000 56462306a36Sopenharmony_ci#define RISC_IRQ1 0x01000000 56562306a36Sopenharmony_ci 56662306a36Sopenharmony_ci#define RISC_CNT_NONE 0x00000000 56762306a36Sopenharmony_ci#define RISC_CNT_INC 0x00010000 56862306a36Sopenharmony_ci#define RISC_CNT_RSVR 0x00020000 56962306a36Sopenharmony_ci#define RISC_CNT_RESET 0x00030000 57062306a36Sopenharmony_ci#define RISC_JMP_SRP 0x01 57162306a36Sopenharmony_ci 57262306a36Sopenharmony_ci/* 57362306a36Sopenharmony_ci * various constants 57462306a36Sopenharmony_ci */ 57562306a36Sopenharmony_ci 57662306a36Sopenharmony_ci// DMA 57762306a36Sopenharmony_ci/* Interrupt mask/status */ 57862306a36Sopenharmony_ci#define PCI_INT_VIDINT (1 << 0) 57962306a36Sopenharmony_ci#define PCI_INT_AUDINT (1 << 1) 58062306a36Sopenharmony_ci#define PCI_INT_TSINT (1 << 2) 58162306a36Sopenharmony_ci#define PCI_INT_VIPINT (1 << 3) 58262306a36Sopenharmony_ci#define PCI_INT_HSTINT (1 << 4) 58362306a36Sopenharmony_ci#define PCI_INT_TM1INT (1 << 5) 58462306a36Sopenharmony_ci#define PCI_INT_SRCDMAINT (1 << 6) 58562306a36Sopenharmony_ci#define PCI_INT_DSTDMAINT (1 << 7) 58662306a36Sopenharmony_ci#define PCI_INT_RISC_RD_BERRINT (1 << 10) 58762306a36Sopenharmony_ci#define PCI_INT_RISC_WR_BERRINT (1 << 11) 58862306a36Sopenharmony_ci#define PCI_INT_BRDG_BERRINT (1 << 12) 58962306a36Sopenharmony_ci#define PCI_INT_SRC_DMA_BERRINT (1 << 13) 59062306a36Sopenharmony_ci#define PCI_INT_DST_DMA_BERRINT (1 << 14) 59162306a36Sopenharmony_ci#define PCI_INT_IPB_DMA_BERRINT (1 << 15) 59262306a36Sopenharmony_ci#define PCI_INT_I2CDONE (1 << 16) 59362306a36Sopenharmony_ci#define PCI_INT_I2CRACK (1 << 17) 59462306a36Sopenharmony_ci#define PCI_INT_IR_SMPINT (1 << 18) 59562306a36Sopenharmony_ci#define PCI_INT_GPIO_INT0 (1 << 19) 59662306a36Sopenharmony_ci#define PCI_INT_GPIO_INT1 (1 << 20) 59762306a36Sopenharmony_ci 59862306a36Sopenharmony_ci#define SEL_BTSC 0x01 59962306a36Sopenharmony_ci#define SEL_EIAJ 0x02 60062306a36Sopenharmony_ci#define SEL_A2 0x04 60162306a36Sopenharmony_ci#define SEL_SAP 0x08 60262306a36Sopenharmony_ci#define SEL_NICAM 0x10 60362306a36Sopenharmony_ci#define SEL_FMRADIO 0x20 60462306a36Sopenharmony_ci 60562306a36Sopenharmony_ci// AUD_CTL 60662306a36Sopenharmony_ci#define AUD_INT_DN_RISCI1 (1 << 0) 60762306a36Sopenharmony_ci#define AUD_INT_UP_RISCI1 (1 << 1) 60862306a36Sopenharmony_ci#define AUD_INT_RDS_DN_RISCI1 (1 << 2) 60962306a36Sopenharmony_ci#define AUD_INT_DN_RISCI2 (1 << 4) /* yes, 3 is skipped */ 61062306a36Sopenharmony_ci#define AUD_INT_UP_RISCI2 (1 << 5) 61162306a36Sopenharmony_ci#define AUD_INT_RDS_DN_RISCI2 (1 << 6) 61262306a36Sopenharmony_ci#define AUD_INT_DN_SYNC (1 << 12) 61362306a36Sopenharmony_ci#define AUD_INT_UP_SYNC (1 << 13) 61462306a36Sopenharmony_ci#define AUD_INT_RDS_DN_SYNC (1 << 14) 61562306a36Sopenharmony_ci#define AUD_INT_OPC_ERR (1 << 16) 61662306a36Sopenharmony_ci#define AUD_INT_BER_IRQ (1 << 20) 61762306a36Sopenharmony_ci#define AUD_INT_MCHG_IRQ (1 << 21) 61862306a36Sopenharmony_ci 61962306a36Sopenharmony_ci#define EN_BTSC_FORCE_MONO 0 62062306a36Sopenharmony_ci#define EN_BTSC_FORCE_STEREO 1 62162306a36Sopenharmony_ci#define EN_BTSC_FORCE_SAP 2 62262306a36Sopenharmony_ci#define EN_BTSC_AUTO_STEREO 3 62362306a36Sopenharmony_ci#define EN_BTSC_AUTO_SAP 4 62462306a36Sopenharmony_ci 62562306a36Sopenharmony_ci#define EN_A2_FORCE_MONO1 8 62662306a36Sopenharmony_ci#define EN_A2_FORCE_MONO2 9 62762306a36Sopenharmony_ci#define EN_A2_FORCE_STEREO 10 62862306a36Sopenharmony_ci#define EN_A2_AUTO_MONO2 11 62962306a36Sopenharmony_ci#define EN_A2_AUTO_STEREO 12 63062306a36Sopenharmony_ci 63162306a36Sopenharmony_ci#define EN_EIAJ_FORCE_MONO1 16 63262306a36Sopenharmony_ci#define EN_EIAJ_FORCE_MONO2 17 63362306a36Sopenharmony_ci#define EN_EIAJ_FORCE_STEREO 18 63462306a36Sopenharmony_ci#define EN_EIAJ_AUTO_MONO2 19 63562306a36Sopenharmony_ci#define EN_EIAJ_AUTO_STEREO 20 63662306a36Sopenharmony_ci 63762306a36Sopenharmony_ci#define EN_NICAM_FORCE_MONO1 32 63862306a36Sopenharmony_ci#define EN_NICAM_FORCE_MONO2 33 63962306a36Sopenharmony_ci#define EN_NICAM_FORCE_STEREO 34 64062306a36Sopenharmony_ci#define EN_NICAM_AUTO_MONO2 35 64162306a36Sopenharmony_ci#define EN_NICAM_AUTO_STEREO 36 64262306a36Sopenharmony_ci 64362306a36Sopenharmony_ci#define EN_FMRADIO_FORCE_MONO 24 64462306a36Sopenharmony_ci#define EN_FMRADIO_FORCE_STEREO 25 64562306a36Sopenharmony_ci#define EN_FMRADIO_AUTO_STEREO 26 64662306a36Sopenharmony_ci 64762306a36Sopenharmony_ci#define EN_NICAM_AUTO_FALLBACK 0x00000040 64862306a36Sopenharmony_ci#define EN_FMRADIO_EN_RDS 0x00000200 64962306a36Sopenharmony_ci#define EN_NICAM_TRY_AGAIN_BIT 0x00000400 65062306a36Sopenharmony_ci#define EN_DAC_ENABLE 0x00001000 65162306a36Sopenharmony_ci#define EN_I2SOUT_ENABLE 0x00002000 65262306a36Sopenharmony_ci#define EN_I2SIN_STR2DAC 0x00004000 65362306a36Sopenharmony_ci#define EN_I2SIN_ENABLE 0x00008000 65462306a36Sopenharmony_ci 65562306a36Sopenharmony_ci#define EN_DMTRX_SUMDIFF (0 << 7) 65662306a36Sopenharmony_ci#define EN_DMTRX_SUMR (1 << 7) 65762306a36Sopenharmony_ci#define EN_DMTRX_LR (2 << 7) 65862306a36Sopenharmony_ci#define EN_DMTRX_MONO (3 << 7) 65962306a36Sopenharmony_ci#define EN_DMTRX_BYPASS (1 << 11) 66062306a36Sopenharmony_ci 66162306a36Sopenharmony_ci// Video 66262306a36Sopenharmony_ci#define VID_CAPTURE_CONTROL 0x310180 66362306a36Sopenharmony_ci 66462306a36Sopenharmony_ci#define CX23880_CAP_CTL_CAPTURE_VBI_ODD (1<<3) 66562306a36Sopenharmony_ci#define CX23880_CAP_CTL_CAPTURE_VBI_EVEN (1<<2) 66662306a36Sopenharmony_ci#define CX23880_CAP_CTL_CAPTURE_ODD (1<<1) 66762306a36Sopenharmony_ci#define CX23880_CAP_CTL_CAPTURE_EVEN (1<<0) 66862306a36Sopenharmony_ci 66962306a36Sopenharmony_ci#define VideoInputMux0 0x0 67062306a36Sopenharmony_ci#define VideoInputMux1 0x1 67162306a36Sopenharmony_ci#define VideoInputMux2 0x2 67262306a36Sopenharmony_ci#define VideoInputMux3 0x3 67362306a36Sopenharmony_ci#define VideoInputTuner 0x0 67462306a36Sopenharmony_ci#define VideoInputComposite 0x1 67562306a36Sopenharmony_ci#define VideoInputSVideo 0x2 67662306a36Sopenharmony_ci#define VideoInputOther 0x3 67762306a36Sopenharmony_ci 67862306a36Sopenharmony_ci#define Xtal0 0x1 67962306a36Sopenharmony_ci#define Xtal1 0x2 68062306a36Sopenharmony_ci#define XtalAuto 0x3 68162306a36Sopenharmony_ci 68262306a36Sopenharmony_ci#define VideoFormatAuto 0x0 68362306a36Sopenharmony_ci#define VideoFormatNTSC 0x1 68462306a36Sopenharmony_ci#define VideoFormatNTSCJapan 0x2 68562306a36Sopenharmony_ci#define VideoFormatNTSC443 0x3 68662306a36Sopenharmony_ci#define VideoFormatPAL 0x4 68762306a36Sopenharmony_ci#define VideoFormatPALB 0x4 68862306a36Sopenharmony_ci#define VideoFormatPALD 0x4 68962306a36Sopenharmony_ci#define VideoFormatPALG 0x4 69062306a36Sopenharmony_ci#define VideoFormatPALH 0x4 69162306a36Sopenharmony_ci#define VideoFormatPALI 0x4 69262306a36Sopenharmony_ci#define VideoFormatPALBDGHI 0x4 69362306a36Sopenharmony_ci#define VideoFormatPALM 0x5 69462306a36Sopenharmony_ci#define VideoFormatPALN 0x6 69562306a36Sopenharmony_ci#define VideoFormatPALNC 0x7 69662306a36Sopenharmony_ci#define VideoFormatPAL60 0x8 69762306a36Sopenharmony_ci#define VideoFormatSECAM 0x9 69862306a36Sopenharmony_ci 69962306a36Sopenharmony_ci#define VideoFormatAuto27MHz 0x10 70062306a36Sopenharmony_ci#define VideoFormatNTSC27MHz 0x11 70162306a36Sopenharmony_ci#define VideoFormatNTSCJapan27MHz 0x12 70262306a36Sopenharmony_ci#define VideoFormatNTSC44327MHz 0x13 70362306a36Sopenharmony_ci#define VideoFormatPAL27MHz 0x14 70462306a36Sopenharmony_ci#define VideoFormatPALB27MHz 0x14 70562306a36Sopenharmony_ci#define VideoFormatPALD27MHz 0x14 70662306a36Sopenharmony_ci#define VideoFormatPALG27MHz 0x14 70762306a36Sopenharmony_ci#define VideoFormatPALH27MHz 0x14 70862306a36Sopenharmony_ci#define VideoFormatPALI27MHz 0x14 70962306a36Sopenharmony_ci#define VideoFormatPALBDGHI27MHz 0x14 71062306a36Sopenharmony_ci#define VideoFormatPALM27MHz 0x15 71162306a36Sopenharmony_ci#define VideoFormatPALN27MHz 0x16 71262306a36Sopenharmony_ci#define VideoFormatPALNC27MHz 0x17 71362306a36Sopenharmony_ci#define VideoFormatPAL6027MHz 0x18 71462306a36Sopenharmony_ci#define VideoFormatSECAM27MHz 0x19 71562306a36Sopenharmony_ci 71662306a36Sopenharmony_ci#define NominalUSECAM 0x87 71762306a36Sopenharmony_ci#define NominalVSECAM 0x85 71862306a36Sopenharmony_ci#define NominalUNTSC 0xFE 71962306a36Sopenharmony_ci#define NominalVNTSC 0xB4 72062306a36Sopenharmony_ci 72162306a36Sopenharmony_ci#define NominalContrast 0xD8 72262306a36Sopenharmony_ci 72362306a36Sopenharmony_ci#define HFilterAutoFormat 0x0 72462306a36Sopenharmony_ci#define HFilterCIF 0x1 72562306a36Sopenharmony_ci#define HFilterQCIF 0x2 72662306a36Sopenharmony_ci#define HFilterICON 0x3 72762306a36Sopenharmony_ci 72862306a36Sopenharmony_ci#define VFilter2TapInterpolate 0 72962306a36Sopenharmony_ci#define VFilter3TapInterpolate 1 73062306a36Sopenharmony_ci#define VFilter4TapInterpolate 2 73162306a36Sopenharmony_ci#define VFilter5TapInterpolate 3 73262306a36Sopenharmony_ci#define VFilter2TapNoInterpolate 4 73362306a36Sopenharmony_ci#define VFilter3TapNoInterpolate 5 73462306a36Sopenharmony_ci#define VFilter4TapNoInterpolate 6 73562306a36Sopenharmony_ci#define VFilter5TapNoInterpolate 7 73662306a36Sopenharmony_ci 73762306a36Sopenharmony_ci#define ColorFormatRGB32 0x0000 73862306a36Sopenharmony_ci#define ColorFormatRGB24 0x0011 73962306a36Sopenharmony_ci#define ColorFormatRGB16 0x0022 74062306a36Sopenharmony_ci#define ColorFormatRGB15 0x0033 74162306a36Sopenharmony_ci#define ColorFormatYUY2 0x0044 74262306a36Sopenharmony_ci#define ColorFormatBTYUV 0x0055 74362306a36Sopenharmony_ci#define ColorFormatY8 0x0066 74462306a36Sopenharmony_ci#define ColorFormatRGB8 0x0077 74562306a36Sopenharmony_ci#define ColorFormatPL422 0x0088 74662306a36Sopenharmony_ci#define ColorFormatPL411 0x0099 74762306a36Sopenharmony_ci#define ColorFormatYUV12 0x00AA 74862306a36Sopenharmony_ci#define ColorFormatYUV9 0x00BB 74962306a36Sopenharmony_ci#define ColorFormatRAW 0x00EE 75062306a36Sopenharmony_ci#define ColorFormatBSWAP 0x0300 75162306a36Sopenharmony_ci#define ColorFormatWSWAP 0x0c00 75262306a36Sopenharmony_ci#define ColorFormatEvenMask 0x050f 75362306a36Sopenharmony_ci#define ColorFormatOddMask 0x0af0 75462306a36Sopenharmony_ci#define ColorFormatGamma 0x1000 75562306a36Sopenharmony_ci 75662306a36Sopenharmony_ci#define Interlaced 0x1 75762306a36Sopenharmony_ci#define NonInterlaced 0x0 75862306a36Sopenharmony_ci 75962306a36Sopenharmony_ci#define FieldEven 0x1 76062306a36Sopenharmony_ci#define FieldOdd 0x0 76162306a36Sopenharmony_ci 76262306a36Sopenharmony_ci#define TGReadWriteMode 0x0 76362306a36Sopenharmony_ci#define TGEnableMode 0x1 76462306a36Sopenharmony_ci 76562306a36Sopenharmony_ci#define DV_CbAlign 0x0 76662306a36Sopenharmony_ci#define DV_Y0Align 0x1 76762306a36Sopenharmony_ci#define DV_CrAlign 0x2 76862306a36Sopenharmony_ci#define DV_Y1Align 0x3 76962306a36Sopenharmony_ci 77062306a36Sopenharmony_ci#define DVF_Analog 0x0 77162306a36Sopenharmony_ci#define DVF_CCIR656 0x1 77262306a36Sopenharmony_ci#define DVF_ByteStream 0x2 77362306a36Sopenharmony_ci#define DVF_ExtVSYNC 0x4 77462306a36Sopenharmony_ci#define DVF_ExtField 0x5 77562306a36Sopenharmony_ci 77662306a36Sopenharmony_ci#define CHANNEL_VID_Y 0x1 77762306a36Sopenharmony_ci#define CHANNEL_VID_U 0x2 77862306a36Sopenharmony_ci#define CHANNEL_VID_V 0x3 77962306a36Sopenharmony_ci#define CHANNEL_VID_VBI 0x4 78062306a36Sopenharmony_ci#define CHANNEL_AUD_DN 0x5 78162306a36Sopenharmony_ci#define CHANNEL_AUD_UP 0x6 78262306a36Sopenharmony_ci#define CHANNEL_AUD_RDS_DN 0x7 78362306a36Sopenharmony_ci#define CHANNEL_MPEG_DN 0x8 78462306a36Sopenharmony_ci#define CHANNEL_VIP_DN 0x9 78562306a36Sopenharmony_ci#define CHANNEL_VIP_UP 0xA 78662306a36Sopenharmony_ci#define CHANNEL_HOST_DN 0xB 78762306a36Sopenharmony_ci#define CHANNEL_HOST_UP 0xC 78862306a36Sopenharmony_ci#define CHANNEL_FIRST 0x1 78962306a36Sopenharmony_ci#define CHANNEL_LAST 0xC 79062306a36Sopenharmony_ci 79162306a36Sopenharmony_ci#define GP_COUNT_CONTROL_NONE 0x0 79262306a36Sopenharmony_ci#define GP_COUNT_CONTROL_INC 0x1 79362306a36Sopenharmony_ci#define GP_COUNT_CONTROL_RESERVED 0x2 79462306a36Sopenharmony_ci#define GP_COUNT_CONTROL_RESET 0x3 79562306a36Sopenharmony_ci 79662306a36Sopenharmony_ci#define PLL_PRESCALE_BY_2 2 79762306a36Sopenharmony_ci#define PLL_PRESCALE_BY_3 3 79862306a36Sopenharmony_ci#define PLL_PRESCALE_BY_4 4 79962306a36Sopenharmony_ci#define PLL_PRESCALE_BY_5 5 80062306a36Sopenharmony_ci 80162306a36Sopenharmony_ci#define HLNotchFilter4xFsc 0 80262306a36Sopenharmony_ci#define HLNotchFilterSquare 1 80362306a36Sopenharmony_ci#define HLNotchFilter135NTSC 2 80462306a36Sopenharmony_ci#define HLNotchFilter135PAL 3 80562306a36Sopenharmony_ci 80662306a36Sopenharmony_ci#define NTSC_8x_SUB_CARRIER 28.63636E6 80762306a36Sopenharmony_ci#define PAL_8x_SUB_CARRIER 35.46895E6 80862306a36Sopenharmony_ci 80962306a36Sopenharmony_ci// Default analog settings 81062306a36Sopenharmony_ci#define DEFAULT_HUE_NTSC 0x00 81162306a36Sopenharmony_ci#define DEFAULT_BRIGHTNESS_NTSC 0x00 81262306a36Sopenharmony_ci#define DEFAULT_CONTRAST_NTSC 0x39 81362306a36Sopenharmony_ci#define DEFAULT_SAT_U_NTSC 0x7F 81462306a36Sopenharmony_ci#define DEFAULT_SAT_V_NTSC 0x5A 81562306a36Sopenharmony_ci 81662306a36Sopenharmony_ci#endif /* _CX88_REG_H_ */ 817