162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _RADEON_H 362306a36Sopenharmony_ci#define _RADEON_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#define RADEON_REGSIZE 0x4000 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#define MM_INDEX 0x0000 1062306a36Sopenharmony_ci#define MM_DATA 0x0004 1162306a36Sopenharmony_ci#define BUS_CNTL 0x0030 1262306a36Sopenharmony_ci#define HI_STAT 0x004C 1362306a36Sopenharmony_ci#define BUS_CNTL1 0x0034 1462306a36Sopenharmony_ci#define I2C_CNTL_1 0x0094 1562306a36Sopenharmony_ci#define CNFG_CNTL 0x00E0 1662306a36Sopenharmony_ci#define CNFG_MEMSIZE 0x00F8 1762306a36Sopenharmony_ci#define CNFG_APER_0_BASE 0x0100 1862306a36Sopenharmony_ci#define CNFG_APER_1_BASE 0x0104 1962306a36Sopenharmony_ci#define CNFG_APER_SIZE 0x0108 2062306a36Sopenharmony_ci#define CNFG_REG_1_BASE 0x010C 2162306a36Sopenharmony_ci#define CNFG_REG_APER_SIZE 0x0110 2262306a36Sopenharmony_ci#define PAD_AGPINPUT_DELAY 0x0164 2362306a36Sopenharmony_ci#define PAD_CTLR_STRENGTH 0x0168 2462306a36Sopenharmony_ci#define PAD_CTLR_UPDATE 0x016C 2562306a36Sopenharmony_ci#define PAD_CTLR_MISC 0x0aa0 2662306a36Sopenharmony_ci#define AGP_CNTL 0x0174 2762306a36Sopenharmony_ci#define BM_STATUS 0x0160 2862306a36Sopenharmony_ci#define CAP0_TRIG_CNTL 0x0950 2962306a36Sopenharmony_ci#define CAP1_TRIG_CNTL 0x09c0 3062306a36Sopenharmony_ci#define VIPH_CONTROL 0x0C40 3162306a36Sopenharmony_ci#define VENDOR_ID 0x0F00 3262306a36Sopenharmony_ci#define DEVICE_ID 0x0F02 3362306a36Sopenharmony_ci#define COMMAND 0x0F04 3462306a36Sopenharmony_ci#define STATUS 0x0F06 3562306a36Sopenharmony_ci#define REVISION_ID 0x0F08 3662306a36Sopenharmony_ci#define REGPROG_INF 0x0F09 3762306a36Sopenharmony_ci#define SUB_CLASS 0x0F0A 3862306a36Sopenharmony_ci#define BASE_CODE 0x0F0B 3962306a36Sopenharmony_ci#define CACHE_LINE 0x0F0C 4062306a36Sopenharmony_ci#define LATENCY 0x0F0D 4162306a36Sopenharmony_ci#define HEADER 0x0F0E 4262306a36Sopenharmony_ci#define BIST 0x0F0F 4362306a36Sopenharmony_ci#define REG_MEM_BASE 0x0F10 4462306a36Sopenharmony_ci#define REG_IO_BASE 0x0F14 4562306a36Sopenharmony_ci#define REG_REG_BASE 0x0F18 4662306a36Sopenharmony_ci#define ADAPTER_ID 0x0F2C 4762306a36Sopenharmony_ci#define BIOS_ROM 0x0F30 4862306a36Sopenharmony_ci#define CAPABILITIES_PTR 0x0F34 4962306a36Sopenharmony_ci#define INTERRUPT_LINE 0x0F3C 5062306a36Sopenharmony_ci#define INTERRUPT_PIN 0x0F3D 5162306a36Sopenharmony_ci#define MIN_GRANT 0x0F3E 5262306a36Sopenharmony_ci#define MAX_LATENCY 0x0F3F 5362306a36Sopenharmony_ci#define ADAPTER_ID_W 0x0F4C 5462306a36Sopenharmony_ci#define PMI_CAP_ID 0x0F50 5562306a36Sopenharmony_ci#define PMI_NXT_CAP_PTR 0x0F51 5662306a36Sopenharmony_ci#define PMI_PMC_REG 0x0F52 5762306a36Sopenharmony_ci#define PM_STATUS 0x0F54 5862306a36Sopenharmony_ci#define PMI_DATA 0x0F57 5962306a36Sopenharmony_ci#define AGP_CAP_ID 0x0F58 6062306a36Sopenharmony_ci#define AGP_STATUS 0x0F5C 6162306a36Sopenharmony_ci#define AGP_COMMAND 0x0F60 6262306a36Sopenharmony_ci#define AIC_CTRL 0x01D0 6362306a36Sopenharmony_ci#define AIC_STAT 0x01D4 6462306a36Sopenharmony_ci#define AIC_PT_BASE 0x01D8 6562306a36Sopenharmony_ci#define AIC_LO_ADDR 0x01DC 6662306a36Sopenharmony_ci#define AIC_HI_ADDR 0x01E0 6762306a36Sopenharmony_ci#define AIC_TLB_ADDR 0x01E4 6862306a36Sopenharmony_ci#define AIC_TLB_DATA 0x01E8 6962306a36Sopenharmony_ci#define DAC_CNTL 0x0058 7062306a36Sopenharmony_ci#define DAC_CNTL2 0x007c 7162306a36Sopenharmony_ci#define CRTC_GEN_CNTL 0x0050 7262306a36Sopenharmony_ci#define MEM_CNTL 0x0140 7362306a36Sopenharmony_ci#define MC_CNTL 0x0140 7462306a36Sopenharmony_ci#define EXT_MEM_CNTL 0x0144 7562306a36Sopenharmony_ci#define MC_TIMING_CNTL 0x0144 7662306a36Sopenharmony_ci#define MC_AGP_LOCATION 0x014C 7762306a36Sopenharmony_ci#define MEM_IO_CNTL_A0 0x0178 7862306a36Sopenharmony_ci#define MEM_REFRESH_CNTL 0x0178 7962306a36Sopenharmony_ci#define MEM_INIT_LATENCY_TIMER 0x0154 8062306a36Sopenharmony_ci#define MC_INIT_GFX_LAT_TIMER 0x0154 8162306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG 0x0158 8262306a36Sopenharmony_ci#define AGP_BASE 0x0170 8362306a36Sopenharmony_ci#define MEM_IO_CNTL_A1 0x017C 8462306a36Sopenharmony_ci#define MC_READ_CNTL_AB 0x017C 8562306a36Sopenharmony_ci#define MEM_IO_CNTL_B0 0x0180 8662306a36Sopenharmony_ci#define MC_INIT_MISC_LAT_TIMER 0x0180 8762306a36Sopenharmony_ci#define MEM_IO_CNTL_B1 0x0184 8862306a36Sopenharmony_ci#define MC_IOPAD_CNTL 0x0184 8962306a36Sopenharmony_ci#define MC_DEBUG 0x0188 9062306a36Sopenharmony_ci#define MC_STATUS 0x0150 9162306a36Sopenharmony_ci#define MEM_IO_OE_CNTL 0x018C 9262306a36Sopenharmony_ci#define MC_CHIP_IO_OE_CNTL_AB 0x018C 9362306a36Sopenharmony_ci#define MC_FB_LOCATION 0x0148 9462306a36Sopenharmony_ci#define HOST_PATH_CNTL 0x0130 9562306a36Sopenharmony_ci#define MEM_VGA_WP_SEL 0x0038 9662306a36Sopenharmony_ci#define MEM_VGA_RP_SEL 0x003C 9762306a36Sopenharmony_ci#define HDP_DEBUG 0x0138 9862306a36Sopenharmony_ci#define SW_SEMAPHORE 0x013C 9962306a36Sopenharmony_ci#define CRTC2_GEN_CNTL 0x03f8 10062306a36Sopenharmony_ci#define CRTC2_DISPLAY_BASE_ADDR 0x033c 10162306a36Sopenharmony_ci#define SURFACE_CNTL 0x0B00 10262306a36Sopenharmony_ci#define SURFACE0_LOWER_BOUND 0x0B04 10362306a36Sopenharmony_ci#define SURFACE1_LOWER_BOUND 0x0B14 10462306a36Sopenharmony_ci#define SURFACE2_LOWER_BOUND 0x0B24 10562306a36Sopenharmony_ci#define SURFACE3_LOWER_BOUND 0x0B34 10662306a36Sopenharmony_ci#define SURFACE4_LOWER_BOUND 0x0B44 10762306a36Sopenharmony_ci#define SURFACE5_LOWER_BOUND 0x0B54 10862306a36Sopenharmony_ci#define SURFACE6_LOWER_BOUND 0x0B64 10962306a36Sopenharmony_ci#define SURFACE7_LOWER_BOUND 0x0B74 11062306a36Sopenharmony_ci#define SURFACE0_UPPER_BOUND 0x0B08 11162306a36Sopenharmony_ci#define SURFACE1_UPPER_BOUND 0x0B18 11262306a36Sopenharmony_ci#define SURFACE2_UPPER_BOUND 0x0B28 11362306a36Sopenharmony_ci#define SURFACE3_UPPER_BOUND 0x0B38 11462306a36Sopenharmony_ci#define SURFACE4_UPPER_BOUND 0x0B48 11562306a36Sopenharmony_ci#define SURFACE5_UPPER_BOUND 0x0B58 11662306a36Sopenharmony_ci#define SURFACE6_UPPER_BOUND 0x0B68 11762306a36Sopenharmony_ci#define SURFACE7_UPPER_BOUND 0x0B78 11862306a36Sopenharmony_ci#define SURFACE0_INFO 0x0B0C 11962306a36Sopenharmony_ci#define SURFACE1_INFO 0x0B1C 12062306a36Sopenharmony_ci#define SURFACE2_INFO 0x0B2C 12162306a36Sopenharmony_ci#define SURFACE3_INFO 0x0B3C 12262306a36Sopenharmony_ci#define SURFACE4_INFO 0x0B4C 12362306a36Sopenharmony_ci#define SURFACE5_INFO 0x0B5C 12462306a36Sopenharmony_ci#define SURFACE6_INFO 0x0B6C 12562306a36Sopenharmony_ci#define SURFACE7_INFO 0x0B7C 12662306a36Sopenharmony_ci#define SURFACE_ACCESS_FLAGS 0x0BF8 12762306a36Sopenharmony_ci#define SURFACE_ACCESS_CLR 0x0BFC 12862306a36Sopenharmony_ci#define GEN_INT_CNTL 0x0040 12962306a36Sopenharmony_ci#define GEN_INT_STATUS 0x0044 13062306a36Sopenharmony_ci#define CRTC_EXT_CNTL 0x0054 13162306a36Sopenharmony_ci#define RB3D_CNTL 0x1C3C 13262306a36Sopenharmony_ci#define WAIT_UNTIL 0x1720 13362306a36Sopenharmony_ci#define ISYNC_CNTL 0x1724 13462306a36Sopenharmony_ci#define RBBM_GUICNTL 0x172C 13562306a36Sopenharmony_ci#define RBBM_STATUS 0x0E40 13662306a36Sopenharmony_ci#define RBBM_STATUS_alt_1 0x1740 13762306a36Sopenharmony_ci#define RBBM_CNTL 0x00EC 13862306a36Sopenharmony_ci#define RBBM_CNTL_alt_1 0x0E44 13962306a36Sopenharmony_ci#define RBBM_SOFT_RESET 0x00F0 14062306a36Sopenharmony_ci#define RBBM_SOFT_RESET_alt_1 0x0E48 14162306a36Sopenharmony_ci#define NQWAIT_UNTIL 0x0E50 14262306a36Sopenharmony_ci#define RBBM_DEBUG 0x0E6C 14362306a36Sopenharmony_ci#define RBBM_CMDFIFO_ADDR 0x0E70 14462306a36Sopenharmony_ci#define RBBM_CMDFIFO_DATAL 0x0E74 14562306a36Sopenharmony_ci#define RBBM_CMDFIFO_DATAH 0x0E78 14662306a36Sopenharmony_ci#define RBBM_CMDFIFO_STAT 0x0E7C 14762306a36Sopenharmony_ci#define CRTC_STATUS 0x005C 14862306a36Sopenharmony_ci#define GPIO_VGA_DDC 0x0060 14962306a36Sopenharmony_ci#define GPIO_DVI_DDC 0x0064 15062306a36Sopenharmony_ci#define GPIO_MONID 0x0068 15162306a36Sopenharmony_ci#define GPIO_CRT2_DDC 0x006c 15262306a36Sopenharmony_ci#define PALETTE_INDEX 0x00B0 15362306a36Sopenharmony_ci#define PALETTE_DATA 0x00B4 15462306a36Sopenharmony_ci#define PALETTE_30_DATA 0x00B8 15562306a36Sopenharmony_ci#define CRTC_H_TOTAL_DISP 0x0200 15662306a36Sopenharmony_ci#define CRTC_H_SYNC_STRT_WID 0x0204 15762306a36Sopenharmony_ci#define CRTC_V_TOTAL_DISP 0x0208 15862306a36Sopenharmony_ci#define CRTC_V_SYNC_STRT_WID 0x020C 15962306a36Sopenharmony_ci#define CRTC_VLINE_CRNT_VLINE 0x0210 16062306a36Sopenharmony_ci#define CRTC_CRNT_FRAME 0x0214 16162306a36Sopenharmony_ci#define CRTC_GUI_TRIG_VLINE 0x0218 16262306a36Sopenharmony_ci#define CRTC_DEBUG 0x021C 16362306a36Sopenharmony_ci#define CRTC_OFFSET_RIGHT 0x0220 16462306a36Sopenharmony_ci#define CRTC_OFFSET 0x0224 16562306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL 0x0228 16662306a36Sopenharmony_ci#define CRTC_PITCH 0x022C 16762306a36Sopenharmony_ci#define OVR_CLR 0x0230 16862306a36Sopenharmony_ci#define OVR_WID_LEFT_RIGHT 0x0234 16962306a36Sopenharmony_ci#define OVR_WID_TOP_BOTTOM 0x0238 17062306a36Sopenharmony_ci#define DISPLAY_BASE_ADDR 0x023C 17162306a36Sopenharmony_ci#define SNAPSHOT_VH_COUNTS 0x0240 17262306a36Sopenharmony_ci#define SNAPSHOT_F_COUNT 0x0244 17362306a36Sopenharmony_ci#define N_VIF_COUNT 0x0248 17462306a36Sopenharmony_ci#define SNAPSHOT_VIF_COUNT 0x024C 17562306a36Sopenharmony_ci#define FP_CRTC_H_TOTAL_DISP 0x0250 17662306a36Sopenharmony_ci#define FP_CRTC_V_TOTAL_DISP 0x0254 17762306a36Sopenharmony_ci#define CRT_CRTC_H_SYNC_STRT_WID 0x0258 17862306a36Sopenharmony_ci#define CRT_CRTC_V_SYNC_STRT_WID 0x025C 17962306a36Sopenharmony_ci#define CUR_OFFSET 0x0260 18062306a36Sopenharmony_ci#define CUR_HORZ_VERT_POSN 0x0264 18162306a36Sopenharmony_ci#define CUR_HORZ_VERT_OFF 0x0268 18262306a36Sopenharmony_ci#define CUR_CLR0 0x026C 18362306a36Sopenharmony_ci#define CUR_CLR1 0x0270 18462306a36Sopenharmony_ci#define FP_HORZ_VERT_ACTIVE 0x0278 18562306a36Sopenharmony_ci#define CRTC_MORE_CNTL 0x027C 18662306a36Sopenharmony_ci#define CRTC_H_CUTOFF_ACTIVE_EN (1<<4) 18762306a36Sopenharmony_ci#define CRTC_V_CUTOFF_ACTIVE_EN (1<<5) 18862306a36Sopenharmony_ci#define DAC_EXT_CNTL 0x0280 18962306a36Sopenharmony_ci#define FP_GEN_CNTL 0x0284 19062306a36Sopenharmony_ci#define FP_HORZ_STRETCH 0x028C 19162306a36Sopenharmony_ci#define FP_VERT_STRETCH 0x0290 19262306a36Sopenharmony_ci#define FP_H_SYNC_STRT_WID 0x02C4 19362306a36Sopenharmony_ci#define FP_V_SYNC_STRT_WID 0x02C8 19462306a36Sopenharmony_ci#define AUX_WINDOW_HORZ_CNTL 0x02D8 19562306a36Sopenharmony_ci#define AUX_WINDOW_VERT_CNTL 0x02DC 19662306a36Sopenharmony_ci//#define DDA_CONFIG 0x02e0 19762306a36Sopenharmony_ci//#define DDA_ON_OFF 0x02e4 19862306a36Sopenharmony_ci#define DVI_I2C_CNTL_1 0x02e4 19962306a36Sopenharmony_ci#define GRPH_BUFFER_CNTL 0x02F0 20062306a36Sopenharmony_ci#define GRPH2_BUFFER_CNTL 0x03F0 20162306a36Sopenharmony_ci#define VGA_BUFFER_CNTL 0x02F4 20262306a36Sopenharmony_ci#define OV0_Y_X_START 0x0400 20362306a36Sopenharmony_ci#define OV0_Y_X_END 0x0404 20462306a36Sopenharmony_ci#define OV0_PIPELINE_CNTL 0x0408 20562306a36Sopenharmony_ci#define OV0_REG_LOAD_CNTL 0x0410 20662306a36Sopenharmony_ci#define OV0_SCALE_CNTL 0x0420 20762306a36Sopenharmony_ci#define OV0_V_INC 0x0424 20862306a36Sopenharmony_ci#define OV0_P1_V_ACCUM_INIT 0x0428 20962306a36Sopenharmony_ci#define OV0_P23_V_ACCUM_INIT 0x042C 21062306a36Sopenharmony_ci#define OV0_P1_BLANK_LINES_AT_TOP 0x0430 21162306a36Sopenharmony_ci#define OV0_P23_BLANK_LINES_AT_TOP 0x0434 21262306a36Sopenharmony_ci#define OV0_BASE_ADDR 0x043C 21362306a36Sopenharmony_ci#define OV0_VID_BUF0_BASE_ADRS 0x0440 21462306a36Sopenharmony_ci#define OV0_VID_BUF1_BASE_ADRS 0x0444 21562306a36Sopenharmony_ci#define OV0_VID_BUF2_BASE_ADRS 0x0448 21662306a36Sopenharmony_ci#define OV0_VID_BUF3_BASE_ADRS 0x044C 21762306a36Sopenharmony_ci#define OV0_VID_BUF4_BASE_ADRS 0x0450 21862306a36Sopenharmony_ci#define OV0_VID_BUF5_BASE_ADRS 0x0454 21962306a36Sopenharmony_ci#define OV0_VID_BUF_PITCH0_VALUE 0x0460 22062306a36Sopenharmony_ci#define OV0_VID_BUF_PITCH1_VALUE 0x0464 22162306a36Sopenharmony_ci#define OV0_AUTO_FLIP_CNTRL 0x0470 22262306a36Sopenharmony_ci#define OV0_DEINTERLACE_PATTERN 0x0474 22362306a36Sopenharmony_ci#define OV0_SUBMIT_HISTORY 0x0478 22462306a36Sopenharmony_ci#define OV0_H_INC 0x0480 22562306a36Sopenharmony_ci#define OV0_STEP_BY 0x0484 22662306a36Sopenharmony_ci#define OV0_P1_H_ACCUM_INIT 0x0488 22762306a36Sopenharmony_ci#define OV0_P23_H_ACCUM_INIT 0x048C 22862306a36Sopenharmony_ci#define OV0_P1_X_START_END 0x0494 22962306a36Sopenharmony_ci#define OV0_P2_X_START_END 0x0498 23062306a36Sopenharmony_ci#define OV0_P3_X_START_END 0x049C 23162306a36Sopenharmony_ci#define OV0_FILTER_CNTL 0x04A0 23262306a36Sopenharmony_ci#define OV0_FOUR_TAP_COEF_0 0x04B0 23362306a36Sopenharmony_ci#define OV0_FOUR_TAP_COEF_1 0x04B4 23462306a36Sopenharmony_ci#define OV0_FOUR_TAP_COEF_2 0x04B8 23562306a36Sopenharmony_ci#define OV0_FOUR_TAP_COEF_3 0x04BC 23662306a36Sopenharmony_ci#define OV0_FOUR_TAP_COEF_4 0x04C0 23762306a36Sopenharmony_ci#define OV0_FLAG_CNTRL 0x04DC 23862306a36Sopenharmony_ci#define OV0_SLICE_CNTL 0x04E0 23962306a36Sopenharmony_ci#define OV0_VID_KEY_CLR_LOW 0x04E4 24062306a36Sopenharmony_ci#define OV0_VID_KEY_CLR_HIGH 0x04E8 24162306a36Sopenharmony_ci#define OV0_GRPH_KEY_CLR_LOW 0x04EC 24262306a36Sopenharmony_ci#define OV0_GRPH_KEY_CLR_HIGH 0x04F0 24362306a36Sopenharmony_ci#define OV0_KEY_CNTL 0x04F4 24462306a36Sopenharmony_ci#define OV0_TEST 0x04F8 24562306a36Sopenharmony_ci#define SUBPIC_CNTL 0x0540 24662306a36Sopenharmony_ci#define SUBPIC_DEFCOLCON 0x0544 24762306a36Sopenharmony_ci#define SUBPIC_Y_X_START 0x054C 24862306a36Sopenharmony_ci#define SUBPIC_Y_X_END 0x0550 24962306a36Sopenharmony_ci#define SUBPIC_V_INC 0x0554 25062306a36Sopenharmony_ci#define SUBPIC_H_INC 0x0558 25162306a36Sopenharmony_ci#define SUBPIC_BUF0_OFFSET 0x055C 25262306a36Sopenharmony_ci#define SUBPIC_BUF1_OFFSET 0x0560 25362306a36Sopenharmony_ci#define SUBPIC_LC0_OFFSET 0x0564 25462306a36Sopenharmony_ci#define SUBPIC_LC1_OFFSET 0x0568 25562306a36Sopenharmony_ci#define SUBPIC_PITCH 0x056C 25662306a36Sopenharmony_ci#define SUBPIC_BTN_HLI_COLCON 0x0570 25762306a36Sopenharmony_ci#define SUBPIC_BTN_HLI_Y_X_START 0x0574 25862306a36Sopenharmony_ci#define SUBPIC_BTN_HLI_Y_X_END 0x0578 25962306a36Sopenharmony_ci#define SUBPIC_PALETTE_INDEX 0x057C 26062306a36Sopenharmony_ci#define SUBPIC_PALETTE_DATA 0x0580 26162306a36Sopenharmony_ci#define SUBPIC_H_ACCUM_INIT 0x0584 26262306a36Sopenharmony_ci#define SUBPIC_V_ACCUM_INIT 0x0588 26362306a36Sopenharmony_ci#define DISP_MISC_CNTL 0x0D00 26462306a36Sopenharmony_ci#define DAC_MACRO_CNTL 0x0D04 26562306a36Sopenharmony_ci#define DISP_PWR_MAN 0x0D08 26662306a36Sopenharmony_ci#define DISP_TEST_DEBUG_CNTL 0x0D10 26762306a36Sopenharmony_ci#define DISP_HW_DEBUG 0x0D14 26862306a36Sopenharmony_ci#define DAC_CRC_SIG1 0x0D18 26962306a36Sopenharmony_ci#define DAC_CRC_SIG2 0x0D1C 27062306a36Sopenharmony_ci#define OV0_LIN_TRANS_A 0x0D20 27162306a36Sopenharmony_ci#define OV0_LIN_TRANS_B 0x0D24 27262306a36Sopenharmony_ci#define OV0_LIN_TRANS_C 0x0D28 27362306a36Sopenharmony_ci#define OV0_LIN_TRANS_D 0x0D2C 27462306a36Sopenharmony_ci#define OV0_LIN_TRANS_E 0x0D30 27562306a36Sopenharmony_ci#define OV0_LIN_TRANS_F 0x0D34 27662306a36Sopenharmony_ci#define OV0_GAMMA_0_F 0x0D40 27762306a36Sopenharmony_ci#define OV0_GAMMA_10_1F 0x0D44 27862306a36Sopenharmony_ci#define OV0_GAMMA_20_3F 0x0D48 27962306a36Sopenharmony_ci#define OV0_GAMMA_40_7F 0x0D4C 28062306a36Sopenharmony_ci#define OV0_GAMMA_380_3BF 0x0D50 28162306a36Sopenharmony_ci#define OV0_GAMMA_3C0_3FF 0x0D54 28262306a36Sopenharmony_ci#define DISP_MERGE_CNTL 0x0D60 28362306a36Sopenharmony_ci#define DISP_OUTPUT_CNTL 0x0D64 28462306a36Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_A 0x0D80 28562306a36Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_B 0x0D84 28662306a36Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_C 0x0D88 28762306a36Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_D 0x0D8C 28862306a36Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_E 0x0D90 28962306a36Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_F 0x0D94 29062306a36Sopenharmony_ci#define DISP_LIN_TRANS_VID_A 0x0D98 29162306a36Sopenharmony_ci#define DISP_LIN_TRANS_VID_B 0x0D9C 29262306a36Sopenharmony_ci#define DISP_LIN_TRANS_VID_C 0x0DA0 29362306a36Sopenharmony_ci#define DISP_LIN_TRANS_VID_D 0x0DA4 29462306a36Sopenharmony_ci#define DISP_LIN_TRANS_VID_E 0x0DA8 29562306a36Sopenharmony_ci#define DISP_LIN_TRANS_VID_F 0x0DAC 29662306a36Sopenharmony_ci#define RMX_HORZ_FILTER_0TAP_COEF 0x0DB0 29762306a36Sopenharmony_ci#define RMX_HORZ_FILTER_1TAP_COEF 0x0DB4 29862306a36Sopenharmony_ci#define RMX_HORZ_FILTER_2TAP_COEF 0x0DB8 29962306a36Sopenharmony_ci#define RMX_HORZ_PHASE 0x0DBC 30062306a36Sopenharmony_ci#define DAC_EMBEDDED_SYNC_CNTL 0x0DC0 30162306a36Sopenharmony_ci#define DAC_BROAD_PULSE 0x0DC4 30262306a36Sopenharmony_ci#define DAC_SKEW_CLKS 0x0DC8 30362306a36Sopenharmony_ci#define DAC_INCR 0x0DCC 30462306a36Sopenharmony_ci#define DAC_NEG_SYNC_LEVEL 0x0DD0 30562306a36Sopenharmony_ci#define DAC_POS_SYNC_LEVEL 0x0DD4 30662306a36Sopenharmony_ci#define DAC_BLANK_LEVEL 0x0DD8 30762306a36Sopenharmony_ci#define CLOCK_CNTL_INDEX 0x0008 30862306a36Sopenharmony_ci#define CLOCK_CNTL_DATA 0x000C 30962306a36Sopenharmony_ci#define CP_RB_CNTL 0x0704 31062306a36Sopenharmony_ci#define CP_RB_BASE 0x0700 31162306a36Sopenharmony_ci#define CP_RB_RPTR_ADDR 0x070C 31262306a36Sopenharmony_ci#define CP_RB_RPTR 0x0710 31362306a36Sopenharmony_ci#define CP_RB_WPTR 0x0714 31462306a36Sopenharmony_ci#define CP_RB_WPTR_DELAY 0x0718 31562306a36Sopenharmony_ci#define CP_IB_BASE 0x0738 31662306a36Sopenharmony_ci#define CP_IB_BUFSZ 0x073C 31762306a36Sopenharmony_ci#define SCRATCH_REG0 0x15E0 31862306a36Sopenharmony_ci#define GUI_SCRATCH_REG0 0x15E0 31962306a36Sopenharmony_ci#define SCRATCH_REG1 0x15E4 32062306a36Sopenharmony_ci#define GUI_SCRATCH_REG1 0x15E4 32162306a36Sopenharmony_ci#define SCRATCH_REG2 0x15E8 32262306a36Sopenharmony_ci#define GUI_SCRATCH_REG2 0x15E8 32362306a36Sopenharmony_ci#define SCRATCH_REG3 0x15EC 32462306a36Sopenharmony_ci#define GUI_SCRATCH_REG3 0x15EC 32562306a36Sopenharmony_ci#define SCRATCH_REG4 0x15F0 32662306a36Sopenharmony_ci#define GUI_SCRATCH_REG4 0x15F0 32762306a36Sopenharmony_ci#define SCRATCH_REG5 0x15F4 32862306a36Sopenharmony_ci#define GUI_SCRATCH_REG5 0x15F4 32962306a36Sopenharmony_ci#define SCRATCH_UMSK 0x0770 33062306a36Sopenharmony_ci#define SCRATCH_ADDR 0x0774 33162306a36Sopenharmony_ci#define DP_BRUSH_FRGD_CLR 0x147C 33262306a36Sopenharmony_ci#define DP_BRUSH_BKGD_CLR 0x1478 33362306a36Sopenharmony_ci#define DST_LINE_START 0x1600 33462306a36Sopenharmony_ci#define DST_LINE_END 0x1604 33562306a36Sopenharmony_ci#define SRC_OFFSET 0x15AC 33662306a36Sopenharmony_ci#define SRC_PITCH 0x15B0 33762306a36Sopenharmony_ci#define SRC_TILE 0x1704 33862306a36Sopenharmony_ci#define SRC_PITCH_OFFSET 0x1428 33962306a36Sopenharmony_ci#define SRC_X 0x1414 34062306a36Sopenharmony_ci#define SRC_Y 0x1418 34162306a36Sopenharmony_ci#define SRC_X_Y 0x1590 34262306a36Sopenharmony_ci#define SRC_Y_X 0x1434 34362306a36Sopenharmony_ci#define DST_Y_X 0x1438 34462306a36Sopenharmony_ci#define DST_WIDTH_HEIGHT 0x1598 34562306a36Sopenharmony_ci#define DST_HEIGHT_WIDTH 0x143c 34662306a36Sopenharmony_ci#define DST_OFFSET 0x1404 34762306a36Sopenharmony_ci#define SRC_CLUT_ADDRESS 0x1780 34862306a36Sopenharmony_ci#define SRC_CLUT_DATA 0x1784 34962306a36Sopenharmony_ci#define SRC_CLUT_DATA_RD 0x1788 35062306a36Sopenharmony_ci#define HOST_DATA0 0x17C0 35162306a36Sopenharmony_ci#define HOST_DATA1 0x17C4 35262306a36Sopenharmony_ci#define HOST_DATA2 0x17C8 35362306a36Sopenharmony_ci#define HOST_DATA3 0x17CC 35462306a36Sopenharmony_ci#define HOST_DATA4 0x17D0 35562306a36Sopenharmony_ci#define HOST_DATA5 0x17D4 35662306a36Sopenharmony_ci#define HOST_DATA6 0x17D8 35762306a36Sopenharmony_ci#define HOST_DATA7 0x17DC 35862306a36Sopenharmony_ci#define HOST_DATA_LAST 0x17E0 35962306a36Sopenharmony_ci#define DP_SRC_ENDIAN 0x15D4 36062306a36Sopenharmony_ci#define DP_SRC_FRGD_CLR 0x15D8 36162306a36Sopenharmony_ci#define DP_SRC_BKGD_CLR 0x15DC 36262306a36Sopenharmony_ci#define SC_LEFT 0x1640 36362306a36Sopenharmony_ci#define SC_RIGHT 0x1644 36462306a36Sopenharmony_ci#define SC_TOP 0x1648 36562306a36Sopenharmony_ci#define SC_BOTTOM 0x164C 36662306a36Sopenharmony_ci#define SRC_SC_RIGHT 0x1654 36762306a36Sopenharmony_ci#define SRC_SC_BOTTOM 0x165C 36862306a36Sopenharmony_ci#define DP_CNTL 0x16C0 36962306a36Sopenharmony_ci#define DP_CNTL_XDIR_YDIR_YMAJOR 0x16D0 37062306a36Sopenharmony_ci#define DP_DATATYPE 0x16C4 37162306a36Sopenharmony_ci#define DP_MIX 0x16C8 37262306a36Sopenharmony_ci#define DP_WRITE_MSK 0x16CC 37362306a36Sopenharmony_ci#define DP_XOP 0x17F8 37462306a36Sopenharmony_ci#define CLR_CMP_CLR_SRC 0x15C4 37562306a36Sopenharmony_ci#define CLR_CMP_CLR_DST 0x15C8 37662306a36Sopenharmony_ci#define CLR_CMP_CNTL 0x15C0 37762306a36Sopenharmony_ci#define CLR_CMP_MSK 0x15CC 37862306a36Sopenharmony_ci#define DSTCACHE_MODE 0x1710 37962306a36Sopenharmony_ci#define DSTCACHE_CTLSTAT 0x1714 38062306a36Sopenharmony_ci#define DEFAULT_PITCH_OFFSET 0x16E0 38162306a36Sopenharmony_ci#define DEFAULT_SC_BOTTOM_RIGHT 0x16E8 38262306a36Sopenharmony_ci#define DEFAULT_SC_TOP_LEFT 0x16EC 38362306a36Sopenharmony_ci#define SRC_PITCH_OFFSET 0x1428 38462306a36Sopenharmony_ci#define DST_PITCH_OFFSET 0x142C 38562306a36Sopenharmony_ci#define DP_GUI_MASTER_CNTL 0x146C 38662306a36Sopenharmony_ci#define SC_TOP_LEFT 0x16EC 38762306a36Sopenharmony_ci#define SC_BOTTOM_RIGHT 0x16F0 38862306a36Sopenharmony_ci#define SRC_SC_BOTTOM_RIGHT 0x16F4 38962306a36Sopenharmony_ci#define RB2D_DSTCACHE_MODE 0x3428 39062306a36Sopenharmony_ci#define RB2D_DSTCACHE_CTLSTAT_broken 0x342C /* do not use */ 39162306a36Sopenharmony_ci#define LVDS_GEN_CNTL 0x02d0 39262306a36Sopenharmony_ci#define LVDS_PLL_CNTL 0x02d4 39362306a36Sopenharmony_ci#define FP2_GEN_CNTL 0x0288 39462306a36Sopenharmony_ci#define TMDS_CNTL 0x0294 39562306a36Sopenharmony_ci#define TMDS_CRC 0x02a0 39662306a36Sopenharmony_ci#define TMDS_TRANSMITTER_CNTL 0x02a4 39762306a36Sopenharmony_ci#define MPP_TB_CONFIG 0x01c0 39862306a36Sopenharmony_ci#define PAMAC0_DLY_CNTL 0x0a94 39962306a36Sopenharmony_ci#define PAMAC1_DLY_CNTL 0x0a98 40062306a36Sopenharmony_ci#define PAMAC2_DLY_CNTL 0x0a9c 40162306a36Sopenharmony_ci#define FW_CNTL 0x0118 40262306a36Sopenharmony_ci#define FCP_CNTL 0x0910 40362306a36Sopenharmony_ci#define VGA_DDA_ON_OFF 0x02ec 40462306a36Sopenharmony_ci#define TV_MASTER_CNTL 0x0800 40562306a36Sopenharmony_ci 40662306a36Sopenharmony_ci//#define BASE_CODE 0x0f0b 40762306a36Sopenharmony_ci#define BIOS_0_SCRATCH 0x0010 40862306a36Sopenharmony_ci#define BIOS_1_SCRATCH 0x0014 40962306a36Sopenharmony_ci#define BIOS_2_SCRATCH 0x0018 41062306a36Sopenharmony_ci#define BIOS_3_SCRATCH 0x001c 41162306a36Sopenharmony_ci#define BIOS_4_SCRATCH 0x0020 41262306a36Sopenharmony_ci#define BIOS_5_SCRATCH 0x0024 41362306a36Sopenharmony_ci#define BIOS_6_SCRATCH 0x0028 41462306a36Sopenharmony_ci#define BIOS_7_SCRATCH 0x002c 41562306a36Sopenharmony_ci 41662306a36Sopenharmony_ci#define HDP_SOFT_RESET (1 << 26) 41762306a36Sopenharmony_ci 41862306a36Sopenharmony_ci#define TV_DAC_CNTL 0x088c 41962306a36Sopenharmony_ci#define GPIOPAD_MASK 0x0198 42062306a36Sopenharmony_ci#define GPIOPAD_A 0x019c 42162306a36Sopenharmony_ci#define GPIOPAD_EN 0x01a0 42262306a36Sopenharmony_ci#define GPIOPAD_Y 0x01a4 42362306a36Sopenharmony_ci#define ZV_LCDPAD_MASK 0x01a8 42462306a36Sopenharmony_ci#define ZV_LCDPAD_A 0x01ac 42562306a36Sopenharmony_ci#define ZV_LCDPAD_EN 0x01b0 42662306a36Sopenharmony_ci#define ZV_LCDPAD_Y 0x01b4 42762306a36Sopenharmony_ci 42862306a36Sopenharmony_ci/* PLL Registers */ 42962306a36Sopenharmony_ci#define CLK_PIN_CNTL 0x0001 43062306a36Sopenharmony_ci#define PPLL_CNTL 0x0002 43162306a36Sopenharmony_ci#define PPLL_REF_DIV 0x0003 43262306a36Sopenharmony_ci#define PPLL_DIV_0 0x0004 43362306a36Sopenharmony_ci#define PPLL_DIV_1 0x0005 43462306a36Sopenharmony_ci#define PPLL_DIV_2 0x0006 43562306a36Sopenharmony_ci#define PPLL_DIV_3 0x0007 43662306a36Sopenharmony_ci#define VCLK_ECP_CNTL 0x0008 43762306a36Sopenharmony_ci#define HTOTAL_CNTL 0x0009 43862306a36Sopenharmony_ci#define M_SPLL_REF_FB_DIV 0x000a 43962306a36Sopenharmony_ci#define AGP_PLL_CNTL 0x000b 44062306a36Sopenharmony_ci#define SPLL_CNTL 0x000c 44162306a36Sopenharmony_ci#define SCLK_CNTL 0x000d 44262306a36Sopenharmony_ci#define MPLL_CNTL 0x000e 44362306a36Sopenharmony_ci#define MDLL_CKO 0x000f 44462306a36Sopenharmony_ci#define MDLL_RDCKA 0x0010 44562306a36Sopenharmony_ci#define MCLK_CNTL 0x0012 44662306a36Sopenharmony_ci#define AGP_PLL_CNTL 0x000b 44762306a36Sopenharmony_ci#define PLL_TEST_CNTL 0x0013 44862306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL 0x0014 44962306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL 0x0015 45062306a36Sopenharmony_ci#define MCLK_MISC 0x001f 45162306a36Sopenharmony_ci#define P2PLL_CNTL 0x002a 45262306a36Sopenharmony_ci#define P2PLL_REF_DIV 0x002b 45362306a36Sopenharmony_ci#define PIXCLKS_CNTL 0x002d 45462306a36Sopenharmony_ci#define SCLK_MORE_CNTL 0x0035 45562306a36Sopenharmony_ci 45662306a36Sopenharmony_ci/* MCLK_CNTL bit constants */ 45762306a36Sopenharmony_ci#define FORCEON_MCLKA (1 << 16) 45862306a36Sopenharmony_ci#define FORCEON_MCLKB (1 << 17) 45962306a36Sopenharmony_ci#define FORCEON_YCLKA (1 << 18) 46062306a36Sopenharmony_ci#define FORCEON_YCLKB (1 << 19) 46162306a36Sopenharmony_ci#define FORCEON_MC (1 << 20) 46262306a36Sopenharmony_ci#define FORCEON_AIC (1 << 21) 46362306a36Sopenharmony_ci 46462306a36Sopenharmony_ci/* SCLK_CNTL bit constants */ 46562306a36Sopenharmony_ci#define DYN_STOP_LAT_MASK 0x00007ff8 46662306a36Sopenharmony_ci#define CP_MAX_DYN_STOP_LAT 0x0008 46762306a36Sopenharmony_ci#define SCLK_FORCEON_MASK 0xffff8000 46862306a36Sopenharmony_ci 46962306a36Sopenharmony_ci/* SCLK_MORE_CNTL bit constants */ 47062306a36Sopenharmony_ci#define SCLK_MORE_FORCEON 0x0700 47162306a36Sopenharmony_ci 47262306a36Sopenharmony_ci/* BUS_CNTL bit constants */ 47362306a36Sopenharmony_ci#define BUS_DBL_RESYNC 0x00000001 47462306a36Sopenharmony_ci#define BUS_MSTR_RESET 0x00000002 47562306a36Sopenharmony_ci#define BUS_FLUSH_BUF 0x00000004 47662306a36Sopenharmony_ci#define BUS_STOP_REQ_DIS 0x00000008 47762306a36Sopenharmony_ci#define BUS_ROTATION_DIS 0x00000010 47862306a36Sopenharmony_ci#define BUS_MASTER_DIS 0x00000040 47962306a36Sopenharmony_ci#define BUS_ROM_WRT_EN 0x00000080 48062306a36Sopenharmony_ci#define BUS_DIS_ROM 0x00001000 48162306a36Sopenharmony_ci#define BUS_PCI_READ_RETRY_EN 0x00002000 48262306a36Sopenharmony_ci#define BUS_AGP_AD_STEPPING_EN 0x00004000 48362306a36Sopenharmony_ci#define BUS_PCI_WRT_RETRY_EN 0x00008000 48462306a36Sopenharmony_ci#define BUS_MSTR_RD_MULT 0x00100000 48562306a36Sopenharmony_ci#define BUS_MSTR_RD_LINE 0x00200000 48662306a36Sopenharmony_ci#define BUS_SUSPEND 0x00400000 48762306a36Sopenharmony_ci#define LAT_16X 0x00800000 48862306a36Sopenharmony_ci#define BUS_RD_DISCARD_EN 0x01000000 48962306a36Sopenharmony_ci#define BUS_RD_ABORT_EN 0x02000000 49062306a36Sopenharmony_ci#define BUS_MSTR_WS 0x04000000 49162306a36Sopenharmony_ci#define BUS_PARKING_DIS 0x08000000 49262306a36Sopenharmony_ci#define BUS_MSTR_DISCONNECT_EN 0x10000000 49362306a36Sopenharmony_ci#define BUS_WRT_BURST 0x20000000 49462306a36Sopenharmony_ci#define BUS_READ_BURST 0x40000000 49562306a36Sopenharmony_ci#define BUS_RDY_READ_DLY 0x80000000 49662306a36Sopenharmony_ci 49762306a36Sopenharmony_ci/* PIXCLKS_CNTL */ 49862306a36Sopenharmony_ci#define PIX2CLK_SRC_SEL_MASK 0x03 49962306a36Sopenharmony_ci#define PIX2CLK_SRC_SEL_CPUCLK 0x00 50062306a36Sopenharmony_ci#define PIX2CLK_SRC_SEL_PSCANCLK 0x01 50162306a36Sopenharmony_ci#define PIX2CLK_SRC_SEL_BYTECLK 0x02 50262306a36Sopenharmony_ci#define PIX2CLK_SRC_SEL_P2PLLCLK 0x03 50362306a36Sopenharmony_ci#define PIX2CLK_ALWAYS_ONb (1<<6) 50462306a36Sopenharmony_ci#define PIX2CLK_DAC_ALWAYS_ONb (1<<7) 50562306a36Sopenharmony_ci#define PIXCLK_TV_SRC_SEL (1 << 8) 50662306a36Sopenharmony_ci#define PIXCLK_LVDS_ALWAYS_ONb (1 << 14) 50762306a36Sopenharmony_ci#define PIXCLK_TMDS_ALWAYS_ONb (1 << 15) 50862306a36Sopenharmony_ci 50962306a36Sopenharmony_ci 51062306a36Sopenharmony_ci/* CLOCK_CNTL_INDEX bit constants */ 51162306a36Sopenharmony_ci#define PLL_WR_EN 0x00000080 51262306a36Sopenharmony_ci 51362306a36Sopenharmony_ci/* CNFG_CNTL bit constants */ 51462306a36Sopenharmony_ci#define CFG_VGA_RAM_EN 0x00000100 51562306a36Sopenharmony_ci#define CFG_ATI_REV_ID_MASK (0xf << 16) 51662306a36Sopenharmony_ci#define CFG_ATI_REV_A11 (0 << 16) 51762306a36Sopenharmony_ci#define CFG_ATI_REV_A12 (1 << 16) 51862306a36Sopenharmony_ci#define CFG_ATI_REV_A13 (2 << 16) 51962306a36Sopenharmony_ci 52062306a36Sopenharmony_ci/* CRTC_EXT_CNTL bit constants */ 52162306a36Sopenharmony_ci#define VGA_ATI_LINEAR 0x00000008 52262306a36Sopenharmony_ci#define VGA_128KAP_PAGING 0x00000010 52362306a36Sopenharmony_ci#define XCRT_CNT_EN (1 << 6) 52462306a36Sopenharmony_ci#define CRTC_HSYNC_DIS (1 << 8) 52562306a36Sopenharmony_ci#define CRTC_VSYNC_DIS (1 << 9) 52662306a36Sopenharmony_ci#define CRTC_DISPLAY_DIS (1 << 10) 52762306a36Sopenharmony_ci#define CRTC_CRT_ON (1 << 15) 52862306a36Sopenharmony_ci 52962306a36Sopenharmony_ci 53062306a36Sopenharmony_ci/* DSTCACHE_CTLSTAT bit constants */ 53162306a36Sopenharmony_ci#define RB2D_DC_FLUSH_2D (1 << 0) 53262306a36Sopenharmony_ci#define RB2D_DC_FREE_2D (1 << 2) 53362306a36Sopenharmony_ci#define RB2D_DC_FLUSH_ALL (RB2D_DC_FLUSH_2D | RB2D_DC_FREE_2D) 53462306a36Sopenharmony_ci#define RB2D_DC_BUSY (1 << 31) 53562306a36Sopenharmony_ci 53662306a36Sopenharmony_ci/* DSTCACHE_MODE bits constants */ 53762306a36Sopenharmony_ci#define RB2D_DC_AUTOFLUSH_ENABLE (1 << 8) 53862306a36Sopenharmony_ci#define RB2D_DC_DC_DISABLE_IGNORE_PE (1 << 17) 53962306a36Sopenharmony_ci 54062306a36Sopenharmony_ci/* CRTC_GEN_CNTL bit constants */ 54162306a36Sopenharmony_ci#define CRTC_DBL_SCAN_EN 0x00000001 54262306a36Sopenharmony_ci#define CRTC_CUR_EN 0x00010000 54362306a36Sopenharmony_ci#define CRTC_INTERLACE_EN (1 << 1) 54462306a36Sopenharmony_ci#define CRTC_BYPASS_LUT_EN (1 << 14) 54562306a36Sopenharmony_ci#define CRTC_EXT_DISP_EN (1 << 24) 54662306a36Sopenharmony_ci#define CRTC_EN (1 << 25) 54762306a36Sopenharmony_ci#define CRTC_DISP_REQ_EN_B (1 << 26) 54862306a36Sopenharmony_ci 54962306a36Sopenharmony_ci/* CRTC_STATUS bit constants */ 55062306a36Sopenharmony_ci#define CRTC_VBLANK 0x00000001 55162306a36Sopenharmony_ci 55262306a36Sopenharmony_ci/* CRTC2_GEN_CNTL bit constants */ 55362306a36Sopenharmony_ci#define CRT2_ON (1 << 7) 55462306a36Sopenharmony_ci#define CRTC2_DISPLAY_DIS (1 << 23) 55562306a36Sopenharmony_ci#define CRTC2_EN (1 << 25) 55662306a36Sopenharmony_ci#define CRTC2_DISP_REQ_EN_B (1 << 26) 55762306a36Sopenharmony_ci 55862306a36Sopenharmony_ci/* CUR_OFFSET, CUR_HORZ_VERT_POSN, CUR_HORZ_VERT_OFF bit constants */ 55962306a36Sopenharmony_ci#define CUR_LOCK 0x80000000 56062306a36Sopenharmony_ci 56162306a36Sopenharmony_ci/* GPIO bit constants */ 56262306a36Sopenharmony_ci#define GPIO_A_0 (1 << 0) 56362306a36Sopenharmony_ci#define GPIO_A_1 (1 << 1) 56462306a36Sopenharmony_ci#define GPIO_Y_0 (1 << 8) 56562306a36Sopenharmony_ci#define GPIO_Y_1 (1 << 9) 56662306a36Sopenharmony_ci#define GPIO_EN_0 (1 << 16) 56762306a36Sopenharmony_ci#define GPIO_EN_1 (1 << 17) 56862306a36Sopenharmony_ci#define GPIO_MASK_0 (1 << 24) 56962306a36Sopenharmony_ci#define GPIO_MASK_1 (1 << 25) 57062306a36Sopenharmony_ci#define VGA_DDC_DATA_OUTPUT GPIO_A_0 57162306a36Sopenharmony_ci#define VGA_DDC_CLK_OUTPUT GPIO_A_1 57262306a36Sopenharmony_ci#define VGA_DDC_DATA_INPUT GPIO_Y_0 57362306a36Sopenharmony_ci#define VGA_DDC_CLK_INPUT GPIO_Y_1 57462306a36Sopenharmony_ci#define VGA_DDC_DATA_OUT_EN GPIO_EN_0 57562306a36Sopenharmony_ci#define VGA_DDC_CLK_OUT_EN GPIO_EN_1 57662306a36Sopenharmony_ci 57762306a36Sopenharmony_ci 57862306a36Sopenharmony_ci/* FP bit constants */ 57962306a36Sopenharmony_ci#define FP_CRTC_H_TOTAL_MASK 0x000003ff 58062306a36Sopenharmony_ci#define FP_CRTC_H_DISP_MASK 0x01ff0000 58162306a36Sopenharmony_ci#define FP_CRTC_V_TOTAL_MASK 0x00000fff 58262306a36Sopenharmony_ci#define FP_CRTC_V_DISP_MASK 0x0fff0000 58362306a36Sopenharmony_ci#define FP_H_SYNC_STRT_CHAR_MASK 0x00001ff8 58462306a36Sopenharmony_ci#define FP_H_SYNC_WID_MASK 0x003f0000 58562306a36Sopenharmony_ci#define FP_V_SYNC_STRT_MASK 0x00000fff 58662306a36Sopenharmony_ci#define FP_V_SYNC_WID_MASK 0x001f0000 58762306a36Sopenharmony_ci#define FP_CRTC_H_TOTAL_SHIFT 0x00000000 58862306a36Sopenharmony_ci#define FP_CRTC_H_DISP_SHIFT 0x00000010 58962306a36Sopenharmony_ci#define FP_CRTC_V_TOTAL_SHIFT 0x00000000 59062306a36Sopenharmony_ci#define FP_CRTC_V_DISP_SHIFT 0x00000010 59162306a36Sopenharmony_ci#define FP_H_SYNC_STRT_CHAR_SHIFT 0x00000003 59262306a36Sopenharmony_ci#define FP_H_SYNC_WID_SHIFT 0x00000010 59362306a36Sopenharmony_ci#define FP_V_SYNC_STRT_SHIFT 0x00000000 59462306a36Sopenharmony_ci#define FP_V_SYNC_WID_SHIFT 0x00000010 59562306a36Sopenharmony_ci 59662306a36Sopenharmony_ci/* FP_GEN_CNTL bit constants */ 59762306a36Sopenharmony_ci#define FP_FPON (1 << 0) 59862306a36Sopenharmony_ci#define FP_TMDS_EN (1 << 2) 59962306a36Sopenharmony_ci#define FP_PANEL_FORMAT (1 << 3) 60062306a36Sopenharmony_ci#define FP_EN_TMDS (1 << 7) 60162306a36Sopenharmony_ci#define FP_DETECT_SENSE (1 << 8) 60262306a36Sopenharmony_ci#define R200_FP_SOURCE_SEL_MASK (3 << 10) 60362306a36Sopenharmony_ci#define R200_FP_SOURCE_SEL_CRTC1 (0 << 10) 60462306a36Sopenharmony_ci#define R200_FP_SOURCE_SEL_CRTC2 (1 << 10) 60562306a36Sopenharmony_ci#define R200_FP_SOURCE_SEL_RMX (2 << 10) 60662306a36Sopenharmony_ci#define R200_FP_SOURCE_SEL_TRANS (3 << 10) 60762306a36Sopenharmony_ci#define FP_SEL_CRTC1 (0 << 13) 60862306a36Sopenharmony_ci#define FP_SEL_CRTC2 (1 << 13) 60962306a36Sopenharmony_ci#define FP_USE_VGA_HSYNC (1 << 14) 61062306a36Sopenharmony_ci#define FP_CRTC_DONT_SHADOW_HPAR (1 << 15) 61162306a36Sopenharmony_ci#define FP_CRTC_DONT_SHADOW_VPAR (1 << 16) 61262306a36Sopenharmony_ci#define FP_CRTC_DONT_SHADOW_HEND (1 << 17) 61362306a36Sopenharmony_ci#define FP_CRTC_USE_SHADOW_VEND (1 << 18) 61462306a36Sopenharmony_ci#define FP_RMX_HVSYNC_CONTROL_EN (1 << 20) 61562306a36Sopenharmony_ci#define FP_DFP_SYNC_SEL (1 << 21) 61662306a36Sopenharmony_ci#define FP_CRTC_LOCK_8DOT (1 << 22) 61762306a36Sopenharmony_ci#define FP_CRT_SYNC_SEL (1 << 23) 61862306a36Sopenharmony_ci#define FP_USE_SHADOW_EN (1 << 24) 61962306a36Sopenharmony_ci#define FP_CRT_SYNC_ALT (1 << 26) 62062306a36Sopenharmony_ci 62162306a36Sopenharmony_ci/* FP2_GEN_CNTL bit constants */ 62262306a36Sopenharmony_ci#define FP2_BLANK_EN (1 << 1) 62362306a36Sopenharmony_ci#define FP2_ON (1 << 2) 62462306a36Sopenharmony_ci#define FP2_PANEL_FORMAT (1 << 3) 62562306a36Sopenharmony_ci#define FP2_SOURCE_SEL_MASK (3 << 10) 62662306a36Sopenharmony_ci#define FP2_SOURCE_SEL_CRTC2 (1 << 10) 62762306a36Sopenharmony_ci#define FP2_SRC_SEL_MASK (3 << 13) 62862306a36Sopenharmony_ci#define FP2_SRC_SEL_CRTC2 (1 << 13) 62962306a36Sopenharmony_ci#define FP2_FP_POL (1 << 16) 63062306a36Sopenharmony_ci#define FP2_LP_POL (1 << 17) 63162306a36Sopenharmony_ci#define FP2_SCK_POL (1 << 18) 63262306a36Sopenharmony_ci#define FP2_LCD_CNTL_MASK (7 << 19) 63362306a36Sopenharmony_ci#define FP2_PAD_FLOP_EN (1 << 22) 63462306a36Sopenharmony_ci#define FP2_CRC_EN (1 << 23) 63562306a36Sopenharmony_ci#define FP2_CRC_READ_EN (1 << 24) 63662306a36Sopenharmony_ci#define FP2_DV0_EN (1 << 25) 63762306a36Sopenharmony_ci#define FP2_DV0_RATE_SEL_SDR (1 << 26) 63862306a36Sopenharmony_ci 63962306a36Sopenharmony_ci 64062306a36Sopenharmony_ci/* LVDS_GEN_CNTL bit constants */ 64162306a36Sopenharmony_ci#define LVDS_ON (1 << 0) 64262306a36Sopenharmony_ci#define LVDS_DISPLAY_DIS (1 << 1) 64362306a36Sopenharmony_ci#define LVDS_PANEL_TYPE (1 << 2) 64462306a36Sopenharmony_ci#define LVDS_PANEL_FORMAT (1 << 3) 64562306a36Sopenharmony_ci#define LVDS_EN (1 << 7) 64662306a36Sopenharmony_ci#define LVDS_BL_MOD_LEVEL_MASK 0x0000ff00 64762306a36Sopenharmony_ci#define LVDS_BL_MOD_LEVEL_SHIFT 8 64862306a36Sopenharmony_ci#define LVDS_BL_MOD_EN (1 << 16) 64962306a36Sopenharmony_ci#define LVDS_DIGON (1 << 18) 65062306a36Sopenharmony_ci#define LVDS_BLON (1 << 19) 65162306a36Sopenharmony_ci#define LVDS_SEL_CRTC2 (1 << 23) 65262306a36Sopenharmony_ci#define LVDS_STATE_MASK \ 65362306a36Sopenharmony_ci (LVDS_ON | LVDS_DISPLAY_DIS | LVDS_BL_MOD_LEVEL_MASK | LVDS_BLON) 65462306a36Sopenharmony_ci 65562306a36Sopenharmony_ci/* LVDS_PLL_CNTL bit constatns */ 65662306a36Sopenharmony_ci#define HSYNC_DELAY_SHIFT 0x1c 65762306a36Sopenharmony_ci#define HSYNC_DELAY_MASK (0xf << 0x1c) 65862306a36Sopenharmony_ci 65962306a36Sopenharmony_ci/* TMDS_TRANSMITTER_CNTL bit constants */ 66062306a36Sopenharmony_ci#define TMDS_PLL_EN (1 << 0) 66162306a36Sopenharmony_ci#define TMDS_PLLRST (1 << 1) 66262306a36Sopenharmony_ci#define TMDS_RAN_PAT_RST (1 << 7) 66362306a36Sopenharmony_ci#define TMDS_ICHCSEL (1 << 28) 66462306a36Sopenharmony_ci 66562306a36Sopenharmony_ci/* FP_HORZ_STRETCH bit constants */ 66662306a36Sopenharmony_ci#define HORZ_STRETCH_RATIO_MASK 0xffff 66762306a36Sopenharmony_ci#define HORZ_STRETCH_RATIO_MAX 4096 66862306a36Sopenharmony_ci#define HORZ_PANEL_SIZE (0x1ff << 16) 66962306a36Sopenharmony_ci#define HORZ_PANEL_SHIFT 16 67062306a36Sopenharmony_ci#define HORZ_STRETCH_PIXREP (0 << 25) 67162306a36Sopenharmony_ci#define HORZ_STRETCH_BLEND (1 << 26) 67262306a36Sopenharmony_ci#define HORZ_STRETCH_ENABLE (1 << 25) 67362306a36Sopenharmony_ci#define HORZ_AUTO_RATIO (1 << 27) 67462306a36Sopenharmony_ci#define HORZ_FP_LOOP_STRETCH (0x7 << 28) 67562306a36Sopenharmony_ci#define HORZ_AUTO_RATIO_INC (1 << 31) 67662306a36Sopenharmony_ci 67762306a36Sopenharmony_ci 67862306a36Sopenharmony_ci/* FP_VERT_STRETCH bit constants */ 67962306a36Sopenharmony_ci#define VERT_STRETCH_RATIO_MASK 0xfff 68062306a36Sopenharmony_ci#define VERT_STRETCH_RATIO_MAX 4096 68162306a36Sopenharmony_ci#define VERT_PANEL_SIZE (0xfff << 12) 68262306a36Sopenharmony_ci#define VERT_PANEL_SHIFT 12 68362306a36Sopenharmony_ci#define VERT_STRETCH_LINREP (0 << 26) 68462306a36Sopenharmony_ci#define VERT_STRETCH_BLEND (1 << 26) 68562306a36Sopenharmony_ci#define VERT_STRETCH_ENABLE (1 << 25) 68662306a36Sopenharmony_ci#define VERT_AUTO_RATIO_EN (1 << 27) 68762306a36Sopenharmony_ci#define VERT_FP_LOOP_STRETCH (0x7 << 28) 68862306a36Sopenharmony_ci#define VERT_STRETCH_RESERVED 0xf1000000 68962306a36Sopenharmony_ci 69062306a36Sopenharmony_ci/* DAC_CNTL bit constants */ 69162306a36Sopenharmony_ci#define DAC_8BIT_EN 0x00000100 69262306a36Sopenharmony_ci#define DAC_4BPP_PIX_ORDER 0x00000200 69362306a36Sopenharmony_ci#define DAC_CRC_EN 0x00080000 69462306a36Sopenharmony_ci#define DAC_MASK_ALL (0xff << 24) 69562306a36Sopenharmony_ci#define DAC_PDWN (1 << 15) 69662306a36Sopenharmony_ci#define DAC_EXPAND_MODE (1 << 14) 69762306a36Sopenharmony_ci#define DAC_VGA_ADR_EN (1 << 13) 69862306a36Sopenharmony_ci#define DAC_RANGE_CNTL (3 << 0) 69962306a36Sopenharmony_ci#define DAC_RANGE_CNTL_MASK 0x03 70062306a36Sopenharmony_ci#define DAC_BLANKING (1 << 2) 70162306a36Sopenharmony_ci#define DAC_CMP_EN (1 << 3) 70262306a36Sopenharmony_ci#define DAC_CMP_OUTPUT (1 << 7) 70362306a36Sopenharmony_ci 70462306a36Sopenharmony_ci/* DAC_CNTL2 bit constants */ 70562306a36Sopenharmony_ci#define DAC2_EXPAND_MODE (1 << 14) 70662306a36Sopenharmony_ci#define DAC2_CMP_EN (1 << 7) 70762306a36Sopenharmony_ci#define DAC2_PALETTE_ACCESS_CNTL (1 << 5) 70862306a36Sopenharmony_ci 70962306a36Sopenharmony_ci/* DAC_EXT_CNTL bit constants */ 71062306a36Sopenharmony_ci#define DAC_FORCE_BLANK_OFF_EN (1 << 4) 71162306a36Sopenharmony_ci#define DAC_FORCE_DATA_EN (1 << 5) 71262306a36Sopenharmony_ci#define DAC_FORCE_DATA_SEL_MASK (3 << 6) 71362306a36Sopenharmony_ci#define DAC_FORCE_DATA_MASK 0x0003ff00 71462306a36Sopenharmony_ci#define DAC_FORCE_DATA_SHIFT 8 71562306a36Sopenharmony_ci 71662306a36Sopenharmony_ci/* GEN_RESET_CNTL bit constants */ 71762306a36Sopenharmony_ci#define SOFT_RESET_GUI 0x00000001 71862306a36Sopenharmony_ci#define SOFT_RESET_VCLK 0x00000100 71962306a36Sopenharmony_ci#define SOFT_RESET_PCLK 0x00000200 72062306a36Sopenharmony_ci#define SOFT_RESET_ECP 0x00000400 72162306a36Sopenharmony_ci#define SOFT_RESET_DISPENG_XCLK 0x00000800 72262306a36Sopenharmony_ci 72362306a36Sopenharmony_ci/* MEM_CNTL bit constants */ 72462306a36Sopenharmony_ci#define MEM_CTLR_STATUS_IDLE 0x00000000 72562306a36Sopenharmony_ci#define MEM_CTLR_STATUS_BUSY 0x00100000 72662306a36Sopenharmony_ci#define MEM_SEQNCR_STATUS_IDLE 0x00000000 72762306a36Sopenharmony_ci#define MEM_SEQNCR_STATUS_BUSY 0x00200000 72862306a36Sopenharmony_ci#define MEM_ARBITER_STATUS_IDLE 0x00000000 72962306a36Sopenharmony_ci#define MEM_ARBITER_STATUS_BUSY 0x00400000 73062306a36Sopenharmony_ci#define MEM_REQ_UNLOCK 0x00000000 73162306a36Sopenharmony_ci#define MEM_REQ_LOCK 0x00800000 73262306a36Sopenharmony_ci#define MEM_NUM_CHANNELS_MASK 0x00000001 73362306a36Sopenharmony_ci#define MEM_USE_B_CH_ONLY 0x00000002 73462306a36Sopenharmony_ci#define RV100_MEM_HALF_MODE 0x00000008 73562306a36Sopenharmony_ci#define R300_MEM_NUM_CHANNELS_MASK 0x00000003 73662306a36Sopenharmony_ci#define R300_MEM_USE_CD_CH_ONLY 0x00000004 73762306a36Sopenharmony_ci 73862306a36Sopenharmony_ci 73962306a36Sopenharmony_ci/* RBBM_SOFT_RESET bit constants */ 74062306a36Sopenharmony_ci#define SOFT_RESET_CP (1 << 0) 74162306a36Sopenharmony_ci#define SOFT_RESET_HI (1 << 1) 74262306a36Sopenharmony_ci#define SOFT_RESET_SE (1 << 2) 74362306a36Sopenharmony_ci#define SOFT_RESET_RE (1 << 3) 74462306a36Sopenharmony_ci#define SOFT_RESET_PP (1 << 4) 74562306a36Sopenharmony_ci#define SOFT_RESET_E2 (1 << 5) 74662306a36Sopenharmony_ci#define SOFT_RESET_RB (1 << 6) 74762306a36Sopenharmony_ci#define SOFT_RESET_HDP (1 << 7) 74862306a36Sopenharmony_ci 74962306a36Sopenharmony_ci/* WAIT_UNTIL bit constants */ 75062306a36Sopenharmony_ci#define WAIT_DMA_GUI_IDLE (1 << 9) 75162306a36Sopenharmony_ci#define WAIT_2D_IDLECLEAN (1 << 16) 75262306a36Sopenharmony_ci 75362306a36Sopenharmony_ci/* SURFACE_CNTL bit constants */ 75462306a36Sopenharmony_ci#define SURF_TRANSLATION_DIS (1 << 8) 75562306a36Sopenharmony_ci#define NONSURF_AP0_SWP_16BPP (1 << 20) 75662306a36Sopenharmony_ci#define NONSURF_AP0_SWP_32BPP (1 << 21) 75762306a36Sopenharmony_ci#define NONSURF_AP1_SWP_16BPP (1 << 22) 75862306a36Sopenharmony_ci#define NONSURF_AP1_SWP_32BPP (1 << 23) 75962306a36Sopenharmony_ci 76062306a36Sopenharmony_ci/* DEFAULT_SC_BOTTOM_RIGHT bit constants */ 76162306a36Sopenharmony_ci#define DEFAULT_SC_RIGHT_MAX (0x1fff << 0) 76262306a36Sopenharmony_ci#define DEFAULT_SC_BOTTOM_MAX (0x1fff << 16) 76362306a36Sopenharmony_ci 76462306a36Sopenharmony_ci/* MM_INDEX bit constants */ 76562306a36Sopenharmony_ci#define MM_APER 0x80000000 76662306a36Sopenharmony_ci 76762306a36Sopenharmony_ci/* CLR_CMP_CNTL bit constants */ 76862306a36Sopenharmony_ci#define COMPARE_SRC_FALSE 0x00000000 76962306a36Sopenharmony_ci#define COMPARE_SRC_TRUE 0x00000001 77062306a36Sopenharmony_ci#define COMPARE_SRC_NOT_EQUAL 0x00000004 77162306a36Sopenharmony_ci#define COMPARE_SRC_EQUAL 0x00000005 77262306a36Sopenharmony_ci#define COMPARE_SRC_EQUAL_FLIP 0x00000007 77362306a36Sopenharmony_ci#define COMPARE_DST_FALSE 0x00000000 77462306a36Sopenharmony_ci#define COMPARE_DST_TRUE 0x00000100 77562306a36Sopenharmony_ci#define COMPARE_DST_NOT_EQUAL 0x00000400 77662306a36Sopenharmony_ci#define COMPARE_DST_EQUAL 0x00000500 77762306a36Sopenharmony_ci#define COMPARE_DESTINATION 0x00000000 77862306a36Sopenharmony_ci#define COMPARE_SOURCE 0x01000000 77962306a36Sopenharmony_ci#define COMPARE_SRC_AND_DST 0x02000000 78062306a36Sopenharmony_ci 78162306a36Sopenharmony_ci 78262306a36Sopenharmony_ci/* DP_CNTL bit constants */ 78362306a36Sopenharmony_ci#define DST_X_RIGHT_TO_LEFT 0x00000000 78462306a36Sopenharmony_ci#define DST_X_LEFT_TO_RIGHT 0x00000001 78562306a36Sopenharmony_ci#define DST_Y_BOTTOM_TO_TOP 0x00000000 78662306a36Sopenharmony_ci#define DST_Y_TOP_TO_BOTTOM 0x00000002 78762306a36Sopenharmony_ci#define DST_X_MAJOR 0x00000000 78862306a36Sopenharmony_ci#define DST_Y_MAJOR 0x00000004 78962306a36Sopenharmony_ci#define DST_X_TILE 0x00000008 79062306a36Sopenharmony_ci#define DST_Y_TILE 0x00000010 79162306a36Sopenharmony_ci#define DST_LAST_PEL 0x00000020 79262306a36Sopenharmony_ci#define DST_TRAIL_X_RIGHT_TO_LEFT 0x00000000 79362306a36Sopenharmony_ci#define DST_TRAIL_X_LEFT_TO_RIGHT 0x00000040 79462306a36Sopenharmony_ci#define DST_TRAP_FILL_RIGHT_TO_LEFT 0x00000000 79562306a36Sopenharmony_ci#define DST_TRAP_FILL_LEFT_TO_RIGHT 0x00000080 79662306a36Sopenharmony_ci#define DST_BRES_SIGN 0x00000100 79762306a36Sopenharmony_ci#define DST_HOST_BIG_ENDIAN_EN 0x00000200 79862306a36Sopenharmony_ci#define DST_POLYLINE_NONLAST 0x00008000 79962306a36Sopenharmony_ci#define DST_RASTER_STALL 0x00010000 80062306a36Sopenharmony_ci#define DST_POLY_EDGE 0x00040000 80162306a36Sopenharmony_ci 80262306a36Sopenharmony_ci 80362306a36Sopenharmony_ci/* DP_CNTL_YDIR_XDIR_YMAJOR bit constants (short version of DP_CNTL) */ 80462306a36Sopenharmony_ci#define DST_X_MAJOR_S 0x00000000 80562306a36Sopenharmony_ci#define DST_Y_MAJOR_S 0x00000001 80662306a36Sopenharmony_ci#define DST_Y_BOTTOM_TO_TOP_S 0x00000000 80762306a36Sopenharmony_ci#define DST_Y_TOP_TO_BOTTOM_S 0x00008000 80862306a36Sopenharmony_ci#define DST_X_RIGHT_TO_LEFT_S 0x00000000 80962306a36Sopenharmony_ci#define DST_X_LEFT_TO_RIGHT_S 0x80000000 81062306a36Sopenharmony_ci 81162306a36Sopenharmony_ci 81262306a36Sopenharmony_ci/* DP_DATATYPE bit constants */ 81362306a36Sopenharmony_ci#define DST_8BPP 0x00000002 81462306a36Sopenharmony_ci#define DST_15BPP 0x00000003 81562306a36Sopenharmony_ci#define DST_16BPP 0x00000004 81662306a36Sopenharmony_ci#define DST_24BPP 0x00000005 81762306a36Sopenharmony_ci#define DST_32BPP 0x00000006 81862306a36Sopenharmony_ci#define DST_8BPP_RGB332 0x00000007 81962306a36Sopenharmony_ci#define DST_8BPP_Y8 0x00000008 82062306a36Sopenharmony_ci#define DST_8BPP_RGB8 0x00000009 82162306a36Sopenharmony_ci#define DST_16BPP_VYUY422 0x0000000b 82262306a36Sopenharmony_ci#define DST_16BPP_YVYU422 0x0000000c 82362306a36Sopenharmony_ci#define DST_32BPP_AYUV444 0x0000000e 82462306a36Sopenharmony_ci#define DST_16BPP_ARGB4444 0x0000000f 82562306a36Sopenharmony_ci#define BRUSH_SOLIDCOLOR 0x00000d00 82662306a36Sopenharmony_ci#define SRC_MONO 0x00000000 82762306a36Sopenharmony_ci#define SRC_MONO_LBKGD 0x00010000 82862306a36Sopenharmony_ci#define SRC_DSTCOLOR 0x00030000 82962306a36Sopenharmony_ci#define BYTE_ORDER_MSB_TO_LSB 0x00000000 83062306a36Sopenharmony_ci#define BYTE_ORDER_LSB_TO_MSB 0x40000000 83162306a36Sopenharmony_ci#define DP_CONVERSION_TEMP 0x80000000 83262306a36Sopenharmony_ci#define HOST_BIG_ENDIAN_EN (1 << 29) 83362306a36Sopenharmony_ci 83462306a36Sopenharmony_ci 83562306a36Sopenharmony_ci/* DP_GUI_MASTER_CNTL bit constants */ 83662306a36Sopenharmony_ci#define GMC_SRC_PITCH_OFFSET_DEFAULT 0x00000000 83762306a36Sopenharmony_ci#define GMC_SRC_PITCH_OFFSET_LEAVE 0x00000001 83862306a36Sopenharmony_ci#define GMC_DST_PITCH_OFFSET_DEFAULT 0x00000000 83962306a36Sopenharmony_ci#define GMC_DST_PITCH_OFFSET_LEAVE 0x00000002 84062306a36Sopenharmony_ci#define GMC_SRC_CLIP_DEFAULT 0x00000000 84162306a36Sopenharmony_ci#define GMC_SRC_CLIP_LEAVE 0x00000004 84262306a36Sopenharmony_ci#define GMC_DST_CLIP_DEFAULT 0x00000000 84362306a36Sopenharmony_ci#define GMC_DST_CLIP_LEAVE 0x00000008 84462306a36Sopenharmony_ci#define GMC_BRUSH_8x8MONO 0x00000000 84562306a36Sopenharmony_ci#define GMC_BRUSH_8x8MONO_LBKGD 0x00000010 84662306a36Sopenharmony_ci#define GMC_BRUSH_8x1MONO 0x00000020 84762306a36Sopenharmony_ci#define GMC_BRUSH_8x1MONO_LBKGD 0x00000030 84862306a36Sopenharmony_ci#define GMC_BRUSH_1x8MONO 0x00000040 84962306a36Sopenharmony_ci#define GMC_BRUSH_1x8MONO_LBKGD 0x00000050 85062306a36Sopenharmony_ci#define GMC_BRUSH_32x1MONO 0x00000060 85162306a36Sopenharmony_ci#define GMC_BRUSH_32x1MONO_LBKGD 0x00000070 85262306a36Sopenharmony_ci#define GMC_BRUSH_32x32MONO 0x00000080 85362306a36Sopenharmony_ci#define GMC_BRUSH_32x32MONO_LBKGD 0x00000090 85462306a36Sopenharmony_ci#define GMC_BRUSH_8x8COLOR 0x000000a0 85562306a36Sopenharmony_ci#define GMC_BRUSH_8x1COLOR 0x000000b0 85662306a36Sopenharmony_ci#define GMC_BRUSH_1x8COLOR 0x000000c0 85762306a36Sopenharmony_ci#define GMC_BRUSH_SOLID_COLOR 0x000000d0 85862306a36Sopenharmony_ci#define GMC_DST_8BPP 0x00000200 85962306a36Sopenharmony_ci#define GMC_DST_15BPP 0x00000300 86062306a36Sopenharmony_ci#define GMC_DST_16BPP 0x00000400 86162306a36Sopenharmony_ci#define GMC_DST_24BPP 0x00000500 86262306a36Sopenharmony_ci#define GMC_DST_32BPP 0x00000600 86362306a36Sopenharmony_ci#define GMC_DST_8BPP_RGB332 0x00000700 86462306a36Sopenharmony_ci#define GMC_DST_8BPP_Y8 0x00000800 86562306a36Sopenharmony_ci#define GMC_DST_8BPP_RGB8 0x00000900 86662306a36Sopenharmony_ci#define GMC_DST_16BPP_VYUY422 0x00000b00 86762306a36Sopenharmony_ci#define GMC_DST_16BPP_YVYU422 0x00000c00 86862306a36Sopenharmony_ci#define GMC_DST_32BPP_AYUV444 0x00000e00 86962306a36Sopenharmony_ci#define GMC_DST_16BPP_ARGB4444 0x00000f00 87062306a36Sopenharmony_ci#define GMC_SRC_MONO 0x00000000 87162306a36Sopenharmony_ci#define GMC_SRC_MONO_LBKGD 0x00001000 87262306a36Sopenharmony_ci#define GMC_SRC_DSTCOLOR 0x00003000 87362306a36Sopenharmony_ci#define GMC_BYTE_ORDER_MSB_TO_LSB 0x00000000 87462306a36Sopenharmony_ci#define GMC_BYTE_ORDER_LSB_TO_MSB 0x00004000 87562306a36Sopenharmony_ci#define GMC_DP_CONVERSION_TEMP_9300 0x00008000 87662306a36Sopenharmony_ci#define GMC_DP_CONVERSION_TEMP_6500 0x00000000 87762306a36Sopenharmony_ci#define GMC_DP_SRC_RECT 0x02000000 87862306a36Sopenharmony_ci#define GMC_DP_SRC_HOST 0x03000000 87962306a36Sopenharmony_ci#define GMC_DP_SRC_HOST_BYTEALIGN 0x04000000 88062306a36Sopenharmony_ci#define GMC_3D_FCN_EN_CLR 0x00000000 88162306a36Sopenharmony_ci#define GMC_3D_FCN_EN_SET 0x08000000 88262306a36Sopenharmony_ci#define GMC_DST_CLR_CMP_FCN_LEAVE 0x00000000 88362306a36Sopenharmony_ci#define GMC_DST_CLR_CMP_FCN_CLEAR 0x10000000 88462306a36Sopenharmony_ci#define GMC_AUX_CLIP_LEAVE 0x00000000 88562306a36Sopenharmony_ci#define GMC_AUX_CLIP_CLEAR 0x20000000 88662306a36Sopenharmony_ci#define GMC_WRITE_MASK_LEAVE 0x00000000 88762306a36Sopenharmony_ci#define GMC_WRITE_MASK_SET 0x40000000 88862306a36Sopenharmony_ci#define GMC_CLR_CMP_CNTL_DIS (1 << 28) 88962306a36Sopenharmony_ci#define GMC_SRC_DATATYPE_COLOR (3 << 12) 89062306a36Sopenharmony_ci#define ROP3_S 0x00cc0000 89162306a36Sopenharmony_ci#define ROP3_SRCCOPY 0x00cc0000 89262306a36Sopenharmony_ci#define ROP3_P 0x00f00000 89362306a36Sopenharmony_ci#define ROP3_PATCOPY 0x00f00000 89462306a36Sopenharmony_ci#define DP_SRC_SOURCE_MASK (7 << 24) 89562306a36Sopenharmony_ci#define GMC_BRUSH_NONE (15 << 4) 89662306a36Sopenharmony_ci#define DP_SRC_SOURCE_MEMORY (2 << 24) 89762306a36Sopenharmony_ci#define GMC_BRUSH_SOLIDCOLOR 0x000000d0 89862306a36Sopenharmony_ci 89962306a36Sopenharmony_ci/* DP_MIX bit constants */ 90062306a36Sopenharmony_ci#define DP_SRC_RECT 0x00000200 90162306a36Sopenharmony_ci#define DP_SRC_HOST 0x00000300 90262306a36Sopenharmony_ci#define DP_SRC_HOST_BYTEALIGN 0x00000400 90362306a36Sopenharmony_ci 90462306a36Sopenharmony_ci/* MPLL_CNTL bit constants */ 90562306a36Sopenharmony_ci#define MPLL_RESET 0x00000001 90662306a36Sopenharmony_ci 90762306a36Sopenharmony_ci/* MDLL_CKO bit constants */ 90862306a36Sopenharmony_ci#define MCKOA_SLEEP 0x00000001 90962306a36Sopenharmony_ci#define MCKOA_RESET 0x00000002 91062306a36Sopenharmony_ci#define MCKOA_REF_SKEW_MASK 0x00000700 91162306a36Sopenharmony_ci#define MCKOA_FB_SKEW_MASK 0x00007000 91262306a36Sopenharmony_ci 91362306a36Sopenharmony_ci/* MDLL_RDCKA bit constants */ 91462306a36Sopenharmony_ci#define MRDCKA0_SLEEP 0x00000001 91562306a36Sopenharmony_ci#define MRDCKA0_RESET 0x00000002 91662306a36Sopenharmony_ci#define MRDCKA1_SLEEP 0x00010000 91762306a36Sopenharmony_ci#define MRDCKA1_RESET 0x00020000 91862306a36Sopenharmony_ci 91962306a36Sopenharmony_ci/* VCLK_ECP_CNTL constants */ 92062306a36Sopenharmony_ci#define VCLK_SRC_SEL_MASK 0x03 92162306a36Sopenharmony_ci#define VCLK_SRC_SEL_CPUCLK 0x00 92262306a36Sopenharmony_ci#define VCLK_SRC_SEL_PSCANCLK 0x01 92362306a36Sopenharmony_ci#define VCLK_SRC_SEL_BYTECLK 0x02 92462306a36Sopenharmony_ci#define VCLK_SRC_SEL_PPLLCLK 0x03 92562306a36Sopenharmony_ci#define PIXCLK_ALWAYS_ONb 0x00000040 92662306a36Sopenharmony_ci#define PIXCLK_DAC_ALWAYS_ONb 0x00000080 92762306a36Sopenharmony_ci 92862306a36Sopenharmony_ci/* BUS_CNTL1 constants */ 92962306a36Sopenharmony_ci#define BUS_CNTL1_MOBILE_PLATFORM_SEL_MASK 0x0c000000 93062306a36Sopenharmony_ci#define BUS_CNTL1_MOBILE_PLATFORM_SEL_SHIFT 26 93162306a36Sopenharmony_ci#define BUS_CNTL1_AGPCLK_VALID 0x80000000 93262306a36Sopenharmony_ci 93362306a36Sopenharmony_ci/* PLL_PWRMGT_CNTL constants */ 93462306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL_SPLL_TURNOFF 0x00000002 93562306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL_PPLL_TURNOFF 0x00000004 93662306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL_P2PLL_TURNOFF 0x00000008 93762306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL_TVPLL_TURNOFF 0x00000010 93862306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL_MOBILE_SU 0x00010000 93962306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL_SU_SCLK_USE_BCLK 0x00020000 94062306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL_SU_MCLK_USE_BCLK 0x00040000 94162306a36Sopenharmony_ci 94262306a36Sopenharmony_ci/* TV_DAC_CNTL constants */ 94362306a36Sopenharmony_ci#define TV_DAC_CNTL_BGSLEEP 0x00000040 94462306a36Sopenharmony_ci#define TV_DAC_CNTL_DETECT 0x00000010 94562306a36Sopenharmony_ci#define TV_DAC_CNTL_BGADJ_MASK 0x000f0000 94662306a36Sopenharmony_ci#define TV_DAC_CNTL_DACADJ_MASK 0x00f00000 94762306a36Sopenharmony_ci#define TV_DAC_CNTL_BGADJ__SHIFT 16 94862306a36Sopenharmony_ci#define TV_DAC_CNTL_DACADJ__SHIFT 20 94962306a36Sopenharmony_ci#define TV_DAC_CNTL_RDACPD 0x01000000 95062306a36Sopenharmony_ci#define TV_DAC_CNTL_GDACPD 0x02000000 95162306a36Sopenharmony_ci#define TV_DAC_CNTL_BDACPD 0x04000000 95262306a36Sopenharmony_ci 95362306a36Sopenharmony_ci/* DISP_MISC_CNTL constants */ 95462306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_GRPH_PP (1 << 0) 95562306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_SUBPIC_PP (1 << 1) 95662306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_OV0_PP (1 << 2) 95762306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_GRPH_SCLK (1 << 4) 95862306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_SUBPIC_SCLK (1 << 5) 95962306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_OV0_SCLK (1 << 6) 96062306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_GRPH2_PP (1 << 12) 96162306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_GRPH2_SCLK (1 << 15) 96262306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_LVDS (1 << 16) 96362306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_TMDS (1 << 17) 96462306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_DIG_TMDS (1 << 18) 96562306a36Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_TV (1 << 19) 96662306a36Sopenharmony_ci 96762306a36Sopenharmony_ci/* DISP_PWR_MAN constants */ 96862306a36Sopenharmony_ci#define DISP_PWR_MAN_DISP_PWR_MAN_D3_CRTC_EN (1 << 0) 96962306a36Sopenharmony_ci#define DISP_PWR_MAN_DISP2_PWR_MAN_D3_CRTC2_EN (1 << 4) 97062306a36Sopenharmony_ci#define DISP_PWR_MAN_DISP_D3_RST (1 << 16) 97162306a36Sopenharmony_ci#define DISP_PWR_MAN_DISP_D3_REG_RST (1 << 17) 97262306a36Sopenharmony_ci#define DISP_PWR_MAN_DISP_D3_GRPH_RST (1 << 18) 97362306a36Sopenharmony_ci#define DISP_PWR_MAN_DISP_D3_SUBPIC_RST (1 << 19) 97462306a36Sopenharmony_ci#define DISP_PWR_MAN_DISP_D3_OV0_RST (1 << 20) 97562306a36Sopenharmony_ci#define DISP_PWR_MAN_DISP_D1D2_GRPH_RST (1 << 21) 97662306a36Sopenharmony_ci#define DISP_PWR_MAN_DISP_D1D2_SUBPIC_RST (1 << 22) 97762306a36Sopenharmony_ci#define DISP_PWR_MAN_DISP_D1D2_OV0_RST (1 << 23) 97862306a36Sopenharmony_ci#define DISP_PWR_MAN_DIG_TMDS_ENABLE_RST (1 << 24) 97962306a36Sopenharmony_ci#define DISP_PWR_MAN_TV_ENABLE_RST (1 << 25) 98062306a36Sopenharmony_ci#define DISP_PWR_MAN_AUTO_PWRUP_EN (1 << 26) 98162306a36Sopenharmony_ci 98262306a36Sopenharmony_ci/* masks */ 98362306a36Sopenharmony_ci 98462306a36Sopenharmony_ci#define CNFG_MEMSIZE_MASK 0x1f000000 98562306a36Sopenharmony_ci#define MEM_CFG_TYPE 0x40000000 98662306a36Sopenharmony_ci#define DST_OFFSET_MASK 0x003fffff 98762306a36Sopenharmony_ci#define DST_PITCH_MASK 0x3fc00000 98862306a36Sopenharmony_ci#define DEFAULT_TILE_MASK 0xc0000000 98962306a36Sopenharmony_ci#define PPLL_DIV_SEL_MASK 0x00000300 99062306a36Sopenharmony_ci#define PPLL_RESET 0x00000001 99162306a36Sopenharmony_ci#define PPLL_SLEEP 0x00000002 99262306a36Sopenharmony_ci#define PPLL_ATOMIC_UPDATE_EN 0x00010000 99362306a36Sopenharmony_ci#define PPLL_REF_DIV_MASK 0x000003ff 99462306a36Sopenharmony_ci#define PPLL_FB3_DIV_MASK 0x000007ff 99562306a36Sopenharmony_ci#define PPLL_POST3_DIV_MASK 0x00070000 99662306a36Sopenharmony_ci#define PPLL_ATOMIC_UPDATE_R 0x00008000 99762306a36Sopenharmony_ci#define PPLL_ATOMIC_UPDATE_W 0x00008000 99862306a36Sopenharmony_ci#define PPLL_VGA_ATOMIC_UPDATE_EN 0x00020000 99962306a36Sopenharmony_ci#define R300_PPLL_REF_DIV_ACC_MASK (0x3ff << 18) 100062306a36Sopenharmony_ci#define R300_PPLL_REF_DIV_ACC_SHIFT 18 100162306a36Sopenharmony_ci 100262306a36Sopenharmony_ci#define GUI_ACTIVE 0x80000000 100362306a36Sopenharmony_ci 100462306a36Sopenharmony_ci 100562306a36Sopenharmony_ci#define MC_IND_INDEX 0x01F8 100662306a36Sopenharmony_ci#define MC_IND_DATA 0x01FC 100762306a36Sopenharmony_ci 100862306a36Sopenharmony_ci/* PAD_CTLR_STRENGTH */ 100962306a36Sopenharmony_ci#define PAD_MANUAL_OVERRIDE 0x80000000 101062306a36Sopenharmony_ci 101162306a36Sopenharmony_ci// pllCLK_PIN_CNTL 101262306a36Sopenharmony_ci#define CLK_PIN_CNTL__OSC_EN_MASK 0x00000001L 101362306a36Sopenharmony_ci#define CLK_PIN_CNTL__OSC_EN 0x00000001L 101462306a36Sopenharmony_ci#define CLK_PIN_CNTL__XTL_LOW_GAIN_MASK 0x00000004L 101562306a36Sopenharmony_ci#define CLK_PIN_CNTL__XTL_LOW_GAIN 0x00000004L 101662306a36Sopenharmony_ci#define CLK_PIN_CNTL__DONT_USE_XTALIN_MASK 0x00000010L 101762306a36Sopenharmony_ci#define CLK_PIN_CNTL__DONT_USE_XTALIN 0x00000010L 101862306a36Sopenharmony_ci#define CLK_PIN_CNTL__SLOW_CLOCK_SOURCE_MASK 0x00000020L 101962306a36Sopenharmony_ci#define CLK_PIN_CNTL__SLOW_CLOCK_SOURCE 0x00000020L 102062306a36Sopenharmony_ci#define CLK_PIN_CNTL__CG_CLK_TO_OUTPIN_MASK 0x00000800L 102162306a36Sopenharmony_ci#define CLK_PIN_CNTL__CG_CLK_TO_OUTPIN 0x00000800L 102262306a36Sopenharmony_ci#define CLK_PIN_CNTL__CG_COUNT_UP_TO_OUTPIN_MASK 0x00001000L 102362306a36Sopenharmony_ci#define CLK_PIN_CNTL__CG_COUNT_UP_TO_OUTPIN 0x00001000L 102462306a36Sopenharmony_ci#define CLK_PIN_CNTL__ACCESS_REGS_IN_SUSPEND_MASK 0x00002000L 102562306a36Sopenharmony_ci#define CLK_PIN_CNTL__ACCESS_REGS_IN_SUSPEND 0x00002000L 102662306a36Sopenharmony_ci#define CLK_PIN_CNTL__CG_SPARE_MASK 0x00004000L 102762306a36Sopenharmony_ci#define CLK_PIN_CNTL__CG_SPARE 0x00004000L 102862306a36Sopenharmony_ci#define CLK_PIN_CNTL__SCLK_DYN_START_CNTL_MASK 0x00008000L 102962306a36Sopenharmony_ci#define CLK_PIN_CNTL__SCLK_DYN_START_CNTL 0x00008000L 103062306a36Sopenharmony_ci#define CLK_PIN_CNTL__CP_CLK_RUNNING_MASK 0x00010000L 103162306a36Sopenharmony_ci#define CLK_PIN_CNTL__CP_CLK_RUNNING 0x00010000L 103262306a36Sopenharmony_ci#define CLK_PIN_CNTL__CG_SPARE_RD_MASK 0x00060000L 103362306a36Sopenharmony_ci#define CLK_PIN_CNTL__XTALIN_ALWAYS_ONb_MASK 0x00080000L 103462306a36Sopenharmony_ci#define CLK_PIN_CNTL__XTALIN_ALWAYS_ONb 0x00080000L 103562306a36Sopenharmony_ci#define CLK_PIN_CNTL__PWRSEQ_DELAY_MASK 0xff000000L 103662306a36Sopenharmony_ci 103762306a36Sopenharmony_ci// pllCLK_PWRMGT_CNTL 103862306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF__SHIFT 0x00000000 103962306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF__SHIFT 0x00000001 104062306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF__SHIFT 0x00000002 104162306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF__SHIFT 0x00000003 104262306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MCLK_TURNOFF__SHIFT 0x00000004 104362306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__SCLK_TURNOFF__SHIFT 0x00000005 104462306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__PCLK_TURNOFF__SHIFT 0x00000006 104562306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2CLK_TURNOFF__SHIFT 0x00000007 104662306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_CH_MODE__SHIFT 0x00000008 104762306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__TEST_MODE__SHIFT 0x00000009 104862306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN__SHIFT 0x0000000a 104962306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE__SHIFT 0x0000000c 105062306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__ACTIVE_HILO_LAT__SHIFT 0x0000000d 105162306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT__SHIFT 0x0000000f 105262306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_BUSY__SHIFT 0x00000010 105362306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_INT_CNTL__SHIFT 0x00000011 105462306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_SWITCH__SHIFT 0x00000012 105562306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__DLL_READY__SHIFT 0x00000013 105662306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_PM__SHIFT 0x00000014 105762306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__DYN_STOP_MODE__SHIFT 0x00000015 105862306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__CG_NO1_DEBUG__SHIFT 0x00000018 105962306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF__SHIFT 0x0000001e 106062306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVCLK_TURNOFF__SHIFT 0x0000001f 106162306a36Sopenharmony_ci 106262306a36Sopenharmony_ci// pllP2PLL_CNTL 106362306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_RESET_MASK 0x00000001L 106462306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_RESET 0x00000001L 106562306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_SLEEP_MASK 0x00000002L 106662306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_SLEEP 0x00000002L 106762306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TST_EN_MASK 0x00000004L 106862306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TST_EN 0x00000004L 106962306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_REFCLK_SEL_MASK 0x00000010L 107062306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_REFCLK_SEL 0x00000010L 107162306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_FBCLK_SEL_MASK 0x00000020L 107262306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_FBCLK_SEL 0x00000020L 107362306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TCPOFF_MASK 0x00000040L 107462306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TCPOFF 0x00000040L 107562306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TVCOMAX_MASK 0x00000080L 107662306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TVCOMAX 0x00000080L 107762306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_PCP_MASK 0x00000700L 107862306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_PVG_MASK 0x00003800L 107962306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_PDC_MASK 0x0000c000L 108062306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_EN_MASK 0x00010000L 108162306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_EN 0x00010000L 108262306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_SYNC_MASK 0x00040000L 108362306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_SYNC 0x00040000L 108462306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_DISABLE_AUTO_RESET_MASK 0x00080000L 108562306a36Sopenharmony_ci#define P2PLL_CNTL__P2PLL_DISABLE_AUTO_RESET 0x00080000L 108662306a36Sopenharmony_ci 108762306a36Sopenharmony_ci// pllPIXCLKS_CNTL 108862306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_SRC_SEL__SHIFT 0x00000000 108962306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_INVERT__SHIFT 0x00000004 109062306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_SRC_INVERT__SHIFT 0x00000005 109162306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_ALWAYS_ONb__SHIFT 0x00000006 109262306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_DAC_ALWAYS_ONb__SHIFT 0x00000007 109362306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_TV_SRC_SEL__SHIFT 0x00000008 109462306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_BLEND_ALWAYS_ONb__SHIFT 0x0000000b 109562306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_GV_ALWAYS_ONb__SHIFT 0x0000000c 109662306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_DIG_TMDS_ALWAYS_ONb__SHIFT 0x0000000d 109762306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_LVDS_ALWAYS_ONb__SHIFT 0x0000000e 109862306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_TMDS_ALWAYS_ONb__SHIFT 0x0000000f 109962306a36Sopenharmony_ci 110062306a36Sopenharmony_ci 110162306a36Sopenharmony_ci// pllPIXCLKS_CNTL 110262306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_SRC_SEL_MASK 0x00000003L 110362306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_INVERT 0x00000010L 110462306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_SRC_INVERT 0x00000020L 110562306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_ALWAYS_ONb 0x00000040L 110662306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_DAC_ALWAYS_ONb 0x00000080L 110762306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_TV_SRC_SEL 0x00000100L 110862306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_BLEND_ALWAYS_ONb 0x00000800L 110962306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_GV_ALWAYS_ONb 0x00001000L 111062306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_DIG_TMDS_ALWAYS_ONb 0x00002000L 111162306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_LVDS_ALWAYS_ONb 0x00004000L 111262306a36Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_TMDS_ALWAYS_ONb 0x00008000L 111362306a36Sopenharmony_ci#define PIXCLKS_CNTL__DISP_TVOUT_PIXCLK_TV_ALWAYS_ONb (1 << 9) 111462306a36Sopenharmony_ci#define PIXCLKS_CNTL__R300_DVOCLK_ALWAYS_ONb (1 << 10) 111562306a36Sopenharmony_ci#define PIXCLKS_CNTL__R300_PIXCLK_DVO_ALWAYS_ONb (1 << 13) 111662306a36Sopenharmony_ci#define PIXCLKS_CNTL__R300_PIXCLK_TRANS_ALWAYS_ONb (1 << 16) 111762306a36Sopenharmony_ci#define PIXCLKS_CNTL__R300_PIXCLK_TVO_ALWAYS_ONb (1 << 17) 111862306a36Sopenharmony_ci#define PIXCLKS_CNTL__R300_P2G2CLK_ALWAYS_ONb (1 << 18) 111962306a36Sopenharmony_ci#define PIXCLKS_CNTL__R300_P2G2CLK_DAC_ALWAYS_ONb (1 << 19) 112062306a36Sopenharmony_ci#define PIXCLKS_CNTL__R300_DISP_DAC_PIXCLK_DAC2_BLANK_OFF (1 << 23) 112162306a36Sopenharmony_ci 112262306a36Sopenharmony_ci 112362306a36Sopenharmony_ci// pllP2PLL_DIV_0 112462306a36Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_FB_DIV_MASK 0x000007ffL 112562306a36Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_W_MASK 0x00008000L 112662306a36Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_W 0x00008000L 112762306a36Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_R_MASK 0x00008000L 112862306a36Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_R 0x00008000L 112962306a36Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_POST_DIV_MASK 0x00070000L 113062306a36Sopenharmony_ci 113162306a36Sopenharmony_ci// pllSCLK_CNTL 113262306a36Sopenharmony_ci#define SCLK_CNTL__SCLK_SRC_SEL_MASK 0x00000007L 113362306a36Sopenharmony_ci#define SCLK_CNTL__CP_MAX_DYN_STOP_LAT 0x00000008L 113462306a36Sopenharmony_ci#define SCLK_CNTL__HDP_MAX_DYN_STOP_LAT 0x00000010L 113562306a36Sopenharmony_ci#define SCLK_CNTL__TV_MAX_DYN_STOP_LAT 0x00000020L 113662306a36Sopenharmony_ci#define SCLK_CNTL__E2_MAX_DYN_STOP_LAT 0x00000040L 113762306a36Sopenharmony_ci#define SCLK_CNTL__SE_MAX_DYN_STOP_LAT 0x00000080L 113862306a36Sopenharmony_ci#define SCLK_CNTL__IDCT_MAX_DYN_STOP_LAT 0x00000100L 113962306a36Sopenharmony_ci#define SCLK_CNTL__VIP_MAX_DYN_STOP_LAT 0x00000200L 114062306a36Sopenharmony_ci#define SCLK_CNTL__RE_MAX_DYN_STOP_LAT 0x00000400L 114162306a36Sopenharmony_ci#define SCLK_CNTL__PB_MAX_DYN_STOP_LAT 0x00000800L 114262306a36Sopenharmony_ci#define SCLK_CNTL__TAM_MAX_DYN_STOP_LAT 0x00001000L 114362306a36Sopenharmony_ci#define SCLK_CNTL__TDM_MAX_DYN_STOP_LAT 0x00002000L 114462306a36Sopenharmony_ci#define SCLK_CNTL__RB_MAX_DYN_STOP_LAT 0x00004000L 114562306a36Sopenharmony_ci#define SCLK_CNTL__DYN_STOP_LAT_MASK 0x00007ff8 114662306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_DISP2 0x00008000L 114762306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_CP 0x00010000L 114862306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_HDP 0x00020000L 114962306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_DISP1 0x00040000L 115062306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_TOP 0x00080000L 115162306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_E2 0x00100000L 115262306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_SE 0x00200000L 115362306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_IDCT 0x00400000L 115462306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_VIP 0x00800000L 115562306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_RE 0x01000000L 115662306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_PB 0x02000000L 115762306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_TAM 0x04000000L 115862306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_TDM 0x08000000L 115962306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_RB 0x10000000L 116062306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_TV_SCLK 0x20000000L 116162306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_SUBPIC 0x40000000L 116262306a36Sopenharmony_ci#define SCLK_CNTL__FORCE_OV0 0x80000000L 116362306a36Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_VAP (1<<21) 116462306a36Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_SR (1<<25) 116562306a36Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_PX (1<<26) 116662306a36Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_TX (1<<27) 116762306a36Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_US (1<<28) 116862306a36Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_SU (1<<30) 116962306a36Sopenharmony_ci#define SCLK_CNTL__FORCEON_MASK 0xffff8000L 117062306a36Sopenharmony_ci 117162306a36Sopenharmony_ci// pllSCLK_CNTL2 117262306a36Sopenharmony_ci#define SCLK_CNTL2__R300_TCL_MAX_DYN_STOP_LAT (1<<10) 117362306a36Sopenharmony_ci#define SCLK_CNTL2__R300_GA_MAX_DYN_STOP_LAT (1<<11) 117462306a36Sopenharmony_ci#define SCLK_CNTL2__R300_CBA_MAX_DYN_STOP_LAT (1<<12) 117562306a36Sopenharmony_ci#define SCLK_CNTL2__R300_FORCE_TCL (1<<13) 117662306a36Sopenharmony_ci#define SCLK_CNTL2__R300_FORCE_CBA (1<<14) 117762306a36Sopenharmony_ci#define SCLK_CNTL2__R300_FORCE_GA (1<<15) 117862306a36Sopenharmony_ci 117962306a36Sopenharmony_ci// SCLK_MORE_CNTL 118062306a36Sopenharmony_ci#define SCLK_MORE_CNTL__DISPREGS_MAX_DYN_STOP_LAT 0x00000001L 118162306a36Sopenharmony_ci#define SCLK_MORE_CNTL__MC_GUI_MAX_DYN_STOP_LAT 0x00000002L 118262306a36Sopenharmony_ci#define SCLK_MORE_CNTL__MC_HOST_MAX_DYN_STOP_LAT 0x00000004L 118362306a36Sopenharmony_ci#define SCLK_MORE_CNTL__FORCE_DISPREGS 0x00000100L 118462306a36Sopenharmony_ci#define SCLK_MORE_CNTL__FORCE_MC_GUI 0x00000200L 118562306a36Sopenharmony_ci#define SCLK_MORE_CNTL__FORCE_MC_HOST 0x00000400L 118662306a36Sopenharmony_ci#define SCLK_MORE_CNTL__STOP_SCLK_EN 0x00001000L 118762306a36Sopenharmony_ci#define SCLK_MORE_CNTL__STOP_SCLK_A 0x00002000L 118862306a36Sopenharmony_ci#define SCLK_MORE_CNTL__STOP_SCLK_B 0x00004000L 118962306a36Sopenharmony_ci#define SCLK_MORE_CNTL__STOP_SCLK_C 0x00008000L 119062306a36Sopenharmony_ci#define SCLK_MORE_CNTL__HALF_SPEED_SCLK 0x00010000L 119162306a36Sopenharmony_ci#define SCLK_MORE_CNTL__IO_CG_VOLTAGE_DROP 0x00020000L 119262306a36Sopenharmony_ci#define SCLK_MORE_CNTL__TVFB_SOFT_RESET 0x00040000L 119362306a36Sopenharmony_ci#define SCLK_MORE_CNTL__VOLTAGE_DROP_SYNC 0x00080000L 119462306a36Sopenharmony_ci#define SCLK_MORE_CNTL__IDLE_DELAY_HALF_SCLK 0x00400000L 119562306a36Sopenharmony_ci#define SCLK_MORE_CNTL__AGP_BUSY_HALF_SCLK 0x00800000L 119662306a36Sopenharmony_ci#define SCLK_MORE_CNTL__CG_SPARE_RD_C_MASK 0xff000000L 119762306a36Sopenharmony_ci#define SCLK_MORE_CNTL__FORCEON 0x00000700L 119862306a36Sopenharmony_ci 119962306a36Sopenharmony_ci// MCLK_CNTL 120062306a36Sopenharmony_ci#define MCLK_CNTL__MCLKA_SRC_SEL_MASK 0x00000007L 120162306a36Sopenharmony_ci#define MCLK_CNTL__YCLKA_SRC_SEL_MASK 0x00000070L 120262306a36Sopenharmony_ci#define MCLK_CNTL__MCLKB_SRC_SEL_MASK 0x00000700L 120362306a36Sopenharmony_ci#define MCLK_CNTL__YCLKB_SRC_SEL_MASK 0x00007000L 120462306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_MCLKA_MASK 0x00010000L 120562306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_MCLKA 0x00010000L 120662306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_MCLKB_MASK 0x00020000L 120762306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_MCLKB 0x00020000L 120862306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_YCLKA_MASK 0x00040000L 120962306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_YCLKA 0x00040000L 121062306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_YCLKB_MASK 0x00080000L 121162306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_YCLKB 0x00080000L 121262306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_MC_MASK 0x00100000L 121362306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_MC 0x00100000L 121462306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_AIC_MASK 0x00200000L 121562306a36Sopenharmony_ci#define MCLK_CNTL__FORCE_AIC 0x00200000L 121662306a36Sopenharmony_ci#define MCLK_CNTL__MRDCKA0_SOUTSEL_MASK 0x03000000L 121762306a36Sopenharmony_ci#define MCLK_CNTL__MRDCKA1_SOUTSEL_MASK 0x0c000000L 121862306a36Sopenharmony_ci#define MCLK_CNTL__MRDCKB0_SOUTSEL_MASK 0x30000000L 121962306a36Sopenharmony_ci#define MCLK_CNTL__MRDCKB1_SOUTSEL_MASK 0xc0000000L 122062306a36Sopenharmony_ci#define MCLK_CNTL__R300_DISABLE_MC_MCLKA (1 << 21) 122162306a36Sopenharmony_ci#define MCLK_CNTL__R300_DISABLE_MC_MCLKB (1 << 21) 122262306a36Sopenharmony_ci 122362306a36Sopenharmony_ci// MCLK_MISC 122462306a36Sopenharmony_ci#define MCLK_MISC__SCLK_SOURCED_FROM_MPLL_SEL_MASK 0x00000003L 122562306a36Sopenharmony_ci#define MCLK_MISC__MCLK_FROM_SPLL_DIV_SEL_MASK 0x00000004L 122662306a36Sopenharmony_ci#define MCLK_MISC__MCLK_FROM_SPLL_DIV_SEL 0x00000004L 122762306a36Sopenharmony_ci#define MCLK_MISC__ENABLE_SCLK_FROM_MPLL_MASK 0x00000008L 122862306a36Sopenharmony_ci#define MCLK_MISC__ENABLE_SCLK_FROM_MPLL 0x00000008L 122962306a36Sopenharmony_ci#define MCLK_MISC__MPLL_MODEA_MODEC_HW_SEL_EN_MASK 0x00000010L 123062306a36Sopenharmony_ci#define MCLK_MISC__MPLL_MODEA_MODEC_HW_SEL_EN 0x00000010L 123162306a36Sopenharmony_ci#define MCLK_MISC__DLL_READY_LAT_MASK 0x00000100L 123262306a36Sopenharmony_ci#define MCLK_MISC__DLL_READY_LAT 0x00000100L 123362306a36Sopenharmony_ci#define MCLK_MISC__MC_MCLK_MAX_DYN_STOP_LAT_MASK 0x00001000L 123462306a36Sopenharmony_ci#define MCLK_MISC__MC_MCLK_MAX_DYN_STOP_LAT 0x00001000L 123562306a36Sopenharmony_ci#define MCLK_MISC__IO_MCLK_MAX_DYN_STOP_LAT_MASK 0x00002000L 123662306a36Sopenharmony_ci#define MCLK_MISC__IO_MCLK_MAX_DYN_STOP_LAT 0x00002000L 123762306a36Sopenharmony_ci#define MCLK_MISC__MC_MCLK_DYN_ENABLE_MASK 0x00004000L 123862306a36Sopenharmony_ci#define MCLK_MISC__MC_MCLK_DYN_ENABLE 0x00004000L 123962306a36Sopenharmony_ci#define MCLK_MISC__IO_MCLK_DYN_ENABLE_MASK 0x00008000L 124062306a36Sopenharmony_ci#define MCLK_MISC__IO_MCLK_DYN_ENABLE 0x00008000L 124162306a36Sopenharmony_ci#define MCLK_MISC__CGM_CLK_TO_OUTPIN_MASK 0x00010000L 124262306a36Sopenharmony_ci#define MCLK_MISC__CGM_CLK_TO_OUTPIN 0x00010000L 124362306a36Sopenharmony_ci#define MCLK_MISC__CLK_OR_COUNT_SEL_MASK 0x00020000L 124462306a36Sopenharmony_ci#define MCLK_MISC__CLK_OR_COUNT_SEL 0x00020000L 124562306a36Sopenharmony_ci#define MCLK_MISC__EN_MCLK_TRISTATE_IN_SUSPEND_MASK 0x00040000L 124662306a36Sopenharmony_ci#define MCLK_MISC__EN_MCLK_TRISTATE_IN_SUSPEND 0x00040000L 124762306a36Sopenharmony_ci#define MCLK_MISC__CGM_SPARE_RD_MASK 0x00300000L 124862306a36Sopenharmony_ci#define MCLK_MISC__CGM_SPARE_A_RD_MASK 0x00c00000L 124962306a36Sopenharmony_ci#define MCLK_MISC__TCLK_TO_YCLKB_EN_MASK 0x01000000L 125062306a36Sopenharmony_ci#define MCLK_MISC__TCLK_TO_YCLKB_EN 0x01000000L 125162306a36Sopenharmony_ci#define MCLK_MISC__CGM_SPARE_A_MASK 0x0e000000L 125262306a36Sopenharmony_ci 125362306a36Sopenharmony_ci// VCLK_ECP_CNTL 125462306a36Sopenharmony_ci#define VCLK_ECP_CNTL__VCLK_SRC_SEL_MASK 0x00000003L 125562306a36Sopenharmony_ci#define VCLK_ECP_CNTL__VCLK_INVERT 0x00000010L 125662306a36Sopenharmony_ci#define VCLK_ECP_CNTL__PIXCLK_SRC_INVERT 0x00000020L 125762306a36Sopenharmony_ci#define VCLK_ECP_CNTL__PIXCLK_ALWAYS_ONb 0x00000040L 125862306a36Sopenharmony_ci#define VCLK_ECP_CNTL__PIXCLK_DAC_ALWAYS_ONb 0x00000080L 125962306a36Sopenharmony_ci#define VCLK_ECP_CNTL__ECP_DIV_MASK 0x00000300L 126062306a36Sopenharmony_ci#define VCLK_ECP_CNTL__ECP_FORCE_ON 0x00040000L 126162306a36Sopenharmony_ci#define VCLK_ECP_CNTL__SUBCLK_FORCE_ON 0x00080000L 126262306a36Sopenharmony_ci#define VCLK_ECP_CNTL__R300_DISP_DAC_PIXCLK_DAC_BLANK_OFF (1<<23) 126362306a36Sopenharmony_ci 126462306a36Sopenharmony_ci// PLL_PWRMGT_CNTL 126562306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__MPLL_TURNOFF_MASK 0x00000001L 126662306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__MPLL_TURNOFF 0x00000001L 126762306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__SPLL_TURNOFF_MASK 0x00000002L 126862306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__SPLL_TURNOFF 0x00000002L 126962306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__PPLL_TURNOFF_MASK 0x00000004L 127062306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__PPLL_TURNOFF 0x00000004L 127162306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__P2PLL_TURNOFF_MASK 0x00000008L 127262306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__P2PLL_TURNOFF 0x00000008L 127362306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__TVPLL_TURNOFF_MASK 0x00000010L 127462306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__TVPLL_TURNOFF 0x00000010L 127562306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__AGPCLK_DYN_STOP_LAT_MASK 0x000001e0L 127662306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__APM_POWER_STATE_MASK 0x00000600L 127762306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__APM_PWRSTATE_RD_MASK 0x00001800L 127862306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__PM_MODE_SEL_MASK 0x00002000L 127962306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__PM_MODE_SEL 0x00002000L 128062306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__EN_PWRSEQ_DONE_COND_MASK 0x00004000L 128162306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__EN_PWRSEQ_DONE_COND 0x00004000L 128262306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__EN_DISP_PARKED_COND_MASK 0x00008000L 128362306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__EN_DISP_PARKED_COND 0x00008000L 128462306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__MOBILE_SU_MASK 0x00010000L 128562306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__MOBILE_SU 0x00010000L 128662306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_SCLK_USE_BCLK_MASK 0x00020000L 128762306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_SCLK_USE_BCLK 0x00020000L 128862306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_MCLK_USE_BCLK_MASK 0x00040000L 128962306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_MCLK_USE_BCLK 0x00040000L 129062306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_SUSTAIN_DISABLE_MASK 0x00080000L 129162306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_SUSTAIN_DISABLE 0x00080000L 129262306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__TCL_BYPASS_DISABLE_MASK 0x00100000L 129362306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__TCL_BYPASS_DISABLE 0x00100000L 129462306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__TCL_CLOCK_CTIVE_RD_MASK 0x00200000L 129562306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__TCL_CLOCK_ACTIVE_RD 0x00200000L 129662306a36Sopenharmony_ci#define PLL_PWRMGT_CNTL__CG_NO2_DEBUG_MASK 0xff000000L 129762306a36Sopenharmony_ci 129862306a36Sopenharmony_ci// CLK_PWRMGT_CNTL 129962306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF_MASK 0x00000001L 130062306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF 0x00000001L 130162306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF_MASK 0x00000002L 130262306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF 0x00000002L 130362306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF_MASK 0x00000004L 130462306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF 0x00000004L 130562306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF_MASK 0x00000008L 130662306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF 0x00000008L 130762306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MCLK_TURNOFF_MASK 0x00000010L 130862306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MCLK_TURNOFF 0x00000010L 130962306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__SCLK_TURNOFF_MASK 0x00000020L 131062306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__SCLK_TURNOFF 0x00000020L 131162306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__PCLK_TURNOFF_MASK 0x00000040L 131262306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__PCLK_TURNOFF 0x00000040L 131362306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2CLK_TURNOFF_MASK 0x00000080L 131462306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2CLK_TURNOFF 0x00000080L 131562306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_CH_MODE_MASK 0x00000100L 131662306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_CH_MODE 0x00000100L 131762306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__TEST_MODE_MASK 0x00000200L 131862306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__TEST_MODE 0x00000200L 131962306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN_MASK 0x00000400L 132062306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN 0x00000400L 132162306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE_MASK 0x00001000L 132262306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE 0x00001000L 132362306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__ACTIVE_HILO_LAT_MASK 0x00006000L 132462306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT_MASK 0x00008000L 132562306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT 0x00008000L 132662306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_BUSY_MASK 0x00010000L 132762306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_BUSY 0x00010000L 132862306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_INT_CNTL_MASK 0x00020000L 132962306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_INT_CNTL 0x00020000L 133062306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_SWITCH_MASK 0x00040000L 133162306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_SWITCH 0x00040000L 133262306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__DLL_READY_MASK 0x00080000L 133362306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__DLL_READY 0x00080000L 133462306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_PM_MASK 0x00100000L 133562306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_PM 0x00100000L 133662306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__DYN_STOP_MODE_MASK 0x00e00000L 133762306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__CG_NO1_DEBUG_MASK 0x3f000000L 133862306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF_MASK 0x40000000L 133962306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF 0x40000000L 134062306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVCLK_TURNOFF_MASK 0x80000000L 134162306a36Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVCLK_TURNOFF 0x80000000L 134262306a36Sopenharmony_ci 134362306a36Sopenharmony_ci// BUS_CNTL1 134462306a36Sopenharmony_ci#define BUS_CNTL1__PMI_IO_DISABLE_MASK 0x00000001L 134562306a36Sopenharmony_ci#define BUS_CNTL1__PMI_IO_DISABLE 0x00000001L 134662306a36Sopenharmony_ci#define BUS_CNTL1__PMI_MEM_DISABLE_MASK 0x00000002L 134762306a36Sopenharmony_ci#define BUS_CNTL1__PMI_MEM_DISABLE 0x00000002L 134862306a36Sopenharmony_ci#define BUS_CNTL1__PMI_BM_DISABLE_MASK 0x00000004L 134962306a36Sopenharmony_ci#define BUS_CNTL1__PMI_BM_DISABLE 0x00000004L 135062306a36Sopenharmony_ci#define BUS_CNTL1__PMI_INT_DISABLE_MASK 0x00000008L 135162306a36Sopenharmony_ci#define BUS_CNTL1__PMI_INT_DISABLE 0x00000008L 135262306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE_MASK 0x00000020L 135362306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE 0x00000020L 135462306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS_MASK 0x00000100L 135562306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS 0x00000100L 135662306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS_MASK 0x00000200L 135762306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS 0x00000200L 135862306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS_MASK 0x00000400L 135962306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS 0x00000400L 136062306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS_MASK 0x00000800L 136162306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS 0x00000800L 136262306a36Sopenharmony_ci#define BUS_CNTL1__MOBILE_PLATFORM_SEL_MASK 0x0c000000L 136362306a36Sopenharmony_ci#define BUS_CNTL1__SEND_SBA_LATENCY_MASK 0x70000000L 136462306a36Sopenharmony_ci#define BUS_CNTL1__AGPCLK_VALID_MASK 0x80000000L 136562306a36Sopenharmony_ci#define BUS_CNTL1__AGPCLK_VALID 0x80000000L 136662306a36Sopenharmony_ci 136762306a36Sopenharmony_ci// BUS_CNTL1 136862306a36Sopenharmony_ci#define BUS_CNTL1__PMI_IO_DISABLE__SHIFT 0x00000000 136962306a36Sopenharmony_ci#define BUS_CNTL1__PMI_MEM_DISABLE__SHIFT 0x00000001 137062306a36Sopenharmony_ci#define BUS_CNTL1__PMI_BM_DISABLE__SHIFT 0x00000002 137162306a36Sopenharmony_ci#define BUS_CNTL1__PMI_INT_DISABLE__SHIFT 0x00000003 137262306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE__SHIFT 0x00000005 137362306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS__SHIFT 0x00000008 137462306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS__SHIFT 0x00000009 137562306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS__SHIFT 0x0000000a 137662306a36Sopenharmony_ci#define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS__SHIFT 0x0000000b 137762306a36Sopenharmony_ci#define BUS_CNTL1__MOBILE_PLATFORM_SEL__SHIFT 0x0000001a 137862306a36Sopenharmony_ci#define BUS_CNTL1__SEND_SBA_LATENCY__SHIFT 0x0000001c 137962306a36Sopenharmony_ci#define BUS_CNTL1__AGPCLK_VALID__SHIFT 0x0000001f 138062306a36Sopenharmony_ci 138162306a36Sopenharmony_ci// CRTC_OFFSET_CNTL 138262306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_LINE_MASK 0x0000000fL 138362306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_LINE_RIGHT_MASK 0x000000f0L 138462306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_EN_RIGHT_MASK 0x00004000L 138562306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_EN_RIGHT 0x00004000L 138662306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_EN_MASK 0x00008000L 138762306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_EN 0x00008000L 138862306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_OFFSET_FLIP_CNTL_MASK 0x00010000L 138962306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_OFFSET_FLIP_CNTL 0x00010000L 139062306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_OFFSET_EN_MASK 0x00020000L 139162306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_OFFSET_EN 0x00020000L 139262306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_EN_MASK 0x000c0000L 139362306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_OUT_EN_MASK 0x00100000L 139462306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_OUT_EN 0x00100000L 139562306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_MASK 0x00200000L 139662306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC 0x00200000L 139762306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_LEFT_EN_MASK 0x10000000L 139862306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_LEFT_EN 0x10000000L 139962306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_RIGHT_EN_MASK 0x20000000L 140062306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_RIGHT_EN 0x20000000L 140162306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_MASK 0x40000000L 140262306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET 0x40000000L 140362306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_OFFSET_LOCK_MASK 0x80000000L 140462306a36Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_OFFSET_LOCK 0x80000000L 140562306a36Sopenharmony_ci 140662306a36Sopenharmony_ci// CRTC_GEN_CNTL 140762306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_DBL_SCAN_EN_MASK 0x00000001L 140862306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_DBL_SCAN_EN 0x00000001L 140962306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_INTERLACE_EN_MASK 0x00000002L 141062306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_INTERLACE_EN 0x00000002L 141162306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_C_SYNC_EN_MASK 0x00000010L 141262306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_C_SYNC_EN 0x00000010L 141362306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_PIX_WIDTH_MASK 0x00000f00L 141462306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_ICON_EN_MASK 0x00008000L 141562306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_ICON_EN 0x00008000L 141662306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_CUR_EN_MASK 0x00010000L 141762306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_CUR_EN 0x00010000L 141862306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_VSTAT_MODE_MASK 0x00060000L 141962306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_CUR_MODE_MASK 0x00700000L 142062306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_EXT_DISP_EN_MASK 0x01000000L 142162306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_EXT_DISP_EN 0x01000000L 142262306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_EN_MASK 0x02000000L 142362306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_EN 0x02000000L 142462306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_DISP_REQ_EN_B_MASK 0x04000000L 142562306a36Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_DISP_REQ_EN_B 0x04000000L 142662306a36Sopenharmony_ci 142762306a36Sopenharmony_ci// CRTC2_GEN_CNTL 142862306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DBL_SCAN_EN_MASK 0x00000001L 142962306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DBL_SCAN_EN 0x00000001L 143062306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_INTERLACE_EN_MASK 0x00000002L 143162306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_INTERLACE_EN 0x00000002L 143262306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_SYNC_TRISTATE_MASK 0x00000010L 143362306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_SYNC_TRISTATE 0x00000010L 143462306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_HSYNC_TRISTATE_MASK 0x00000020L 143562306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_HSYNC_TRISTATE 0x00000020L 143662306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_VSYNC_TRISTATE_MASK 0x00000040L 143762306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_VSYNC_TRISTATE 0x00000040L 143862306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRT2_ON_MASK 0x00000080L 143962306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRT2_ON 0x00000080L 144062306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_PIX_WIDTH_MASK 0x00000f00L 144162306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_ICON_EN_MASK 0x00008000L 144262306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_ICON_EN 0x00008000L 144362306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_CUR_EN_MASK 0x00010000L 144462306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_CUR_EN 0x00010000L 144562306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_CUR_MODE_MASK 0x00700000L 144662306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DISPLAY_DIS_MASK 0x00800000L 144762306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DISPLAY_DIS 0x00800000L 144862306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_EN_MASK 0x02000000L 144962306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_EN 0x02000000L 145062306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DISP_REQ_EN_B_MASK 0x04000000L 145162306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DISP_REQ_EN_B 0x04000000L 145262306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_C_SYNC_EN_MASK 0x08000000L 145362306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_C_SYNC_EN 0x08000000L 145462306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_HSYNC_DIS_MASK 0x10000000L 145562306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_HSYNC_DIS 0x10000000L 145662306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_VSYNC_DIS_MASK 0x20000000L 145762306a36Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_VSYNC_DIS 0x20000000L 145862306a36Sopenharmony_ci 145962306a36Sopenharmony_ci// AGP_CNTL 146062306a36Sopenharmony_ci#define AGP_CNTL__MAX_IDLE_CLK_MASK 0x000000ffL 146162306a36Sopenharmony_ci#define AGP_CNTL__HOLD_RD_FIFO_MASK 0x00000100L 146262306a36Sopenharmony_ci#define AGP_CNTL__HOLD_RD_FIFO 0x00000100L 146362306a36Sopenharmony_ci#define AGP_CNTL__HOLD_RQ_FIFO_MASK 0x00000200L 146462306a36Sopenharmony_ci#define AGP_CNTL__HOLD_RQ_FIFO 0x00000200L 146562306a36Sopenharmony_ci#define AGP_CNTL__EN_2X_STBB_MASK 0x00000400L 146662306a36Sopenharmony_ci#define AGP_CNTL__EN_2X_STBB 0x00000400L 146762306a36Sopenharmony_ci#define AGP_CNTL__FORCE_FULL_SBA_MASK 0x00000800L 146862306a36Sopenharmony_ci#define AGP_CNTL__FORCE_FULL_SBA 0x00000800L 146962306a36Sopenharmony_ci#define AGP_CNTL__SBA_DIS_MASK 0x00001000L 147062306a36Sopenharmony_ci#define AGP_CNTL__SBA_DIS 0x00001000L 147162306a36Sopenharmony_ci#define AGP_CNTL__AGP_REV_ID_MASK 0x00002000L 147262306a36Sopenharmony_ci#define AGP_CNTL__AGP_REV_ID 0x00002000L 147362306a36Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP4X_MASK 0x00004000L 147462306a36Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP4X 0x00004000L 147562306a36Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP2X4X_MASK 0x00008000L 147662306a36Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP2X4X 0x00008000L 147762306a36Sopenharmony_ci#define AGP_CNTL__FORCE_INT_VREF_MASK 0x00010000L 147862306a36Sopenharmony_ci#define AGP_CNTL__FORCE_INT_VREF 0x00010000L 147962306a36Sopenharmony_ci#define AGP_CNTL__PENDING_SLOTS_VAL_MASK 0x00060000L 148062306a36Sopenharmony_ci#define AGP_CNTL__PENDING_SLOTS_SEL_MASK 0x00080000L 148162306a36Sopenharmony_ci#define AGP_CNTL__PENDING_SLOTS_SEL 0x00080000L 148262306a36Sopenharmony_ci#define AGP_CNTL__EN_EXTENDED_AD_STB_2X_MASK 0x00100000L 148362306a36Sopenharmony_ci#define AGP_CNTL__EN_EXTENDED_AD_STB_2X 0x00100000L 148462306a36Sopenharmony_ci#define AGP_CNTL__DIS_QUEUED_GNT_FIX_MASK 0x00200000L 148562306a36Sopenharmony_ci#define AGP_CNTL__DIS_QUEUED_GNT_FIX 0x00200000L 148662306a36Sopenharmony_ci#define AGP_CNTL__EN_RDATA2X4X_MULTIRESET_MASK 0x00400000L 148762306a36Sopenharmony_ci#define AGP_CNTL__EN_RDATA2X4X_MULTIRESET 0x00400000L 148862306a36Sopenharmony_ci#define AGP_CNTL__EN_RBFCALM_MASK 0x00800000L 148962306a36Sopenharmony_ci#define AGP_CNTL__EN_RBFCALM 0x00800000L 149062306a36Sopenharmony_ci#define AGP_CNTL__FORCE_EXT_VREF_MASK 0x01000000L 149162306a36Sopenharmony_ci#define AGP_CNTL__FORCE_EXT_VREF 0x01000000L 149262306a36Sopenharmony_ci#define AGP_CNTL__DIS_RBF_MASK 0x02000000L 149362306a36Sopenharmony_ci#define AGP_CNTL__DIS_RBF 0x02000000L 149462306a36Sopenharmony_ci#define AGP_CNTL__DELAY_FIRST_SBA_EN_MASK 0x04000000L 149562306a36Sopenharmony_ci#define AGP_CNTL__DELAY_FIRST_SBA_EN 0x04000000L 149662306a36Sopenharmony_ci#define AGP_CNTL__DELAY_FIRST_SBA_VAL_MASK 0x38000000L 149762306a36Sopenharmony_ci#define AGP_CNTL__AGP_MISC_MASK 0xc0000000L 149862306a36Sopenharmony_ci 149962306a36Sopenharmony_ci// AGP_CNTL 150062306a36Sopenharmony_ci#define AGP_CNTL__MAX_IDLE_CLK__SHIFT 0x00000000 150162306a36Sopenharmony_ci#define AGP_CNTL__HOLD_RD_FIFO__SHIFT 0x00000008 150262306a36Sopenharmony_ci#define AGP_CNTL__HOLD_RQ_FIFO__SHIFT 0x00000009 150362306a36Sopenharmony_ci#define AGP_CNTL__EN_2X_STBB__SHIFT 0x0000000a 150462306a36Sopenharmony_ci#define AGP_CNTL__FORCE_FULL_SBA__SHIFT 0x0000000b 150562306a36Sopenharmony_ci#define AGP_CNTL__SBA_DIS__SHIFT 0x0000000c 150662306a36Sopenharmony_ci#define AGP_CNTL__AGP_REV_ID__SHIFT 0x0000000d 150762306a36Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP4X__SHIFT 0x0000000e 150862306a36Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP2X4X__SHIFT 0x0000000f 150962306a36Sopenharmony_ci#define AGP_CNTL__FORCE_INT_VREF__SHIFT 0x00000010 151062306a36Sopenharmony_ci#define AGP_CNTL__PENDING_SLOTS_VAL__SHIFT 0x00000011 151162306a36Sopenharmony_ci#define AGP_CNTL__PENDING_SLOTS_SEL__SHIFT 0x00000013 151262306a36Sopenharmony_ci#define AGP_CNTL__EN_EXTENDED_AD_STB_2X__SHIFT 0x00000014 151362306a36Sopenharmony_ci#define AGP_CNTL__DIS_QUEUED_GNT_FIX__SHIFT 0x00000015 151462306a36Sopenharmony_ci#define AGP_CNTL__EN_RDATA2X4X_MULTIRESET__SHIFT 0x00000016 151562306a36Sopenharmony_ci#define AGP_CNTL__EN_RBFCALM__SHIFT 0x00000017 151662306a36Sopenharmony_ci#define AGP_CNTL__FORCE_EXT_VREF__SHIFT 0x00000018 151762306a36Sopenharmony_ci#define AGP_CNTL__DIS_RBF__SHIFT 0x00000019 151862306a36Sopenharmony_ci#define AGP_CNTL__DELAY_FIRST_SBA_EN__SHIFT 0x0000001a 151962306a36Sopenharmony_ci#define AGP_CNTL__DELAY_FIRST_SBA_VAL__SHIFT 0x0000001b 152062306a36Sopenharmony_ci#define AGP_CNTL__AGP_MISC__SHIFT 0x0000001e 152162306a36Sopenharmony_ci 152262306a36Sopenharmony_ci// DISP_MISC_CNTL 152362306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH_PP_MASK 0x00000001L 152462306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH_PP 0x00000001L 152562306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_PP_MASK 0x00000002L 152662306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_PP 0x00000002L 152762306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_OV0_PP_MASK 0x00000004L 152862306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_OV0_PP 0x00000004L 152962306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH_SCLK_MASK 0x00000010L 153062306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH_SCLK 0x00000010L 153162306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_SCLK_MASK 0x00000020L 153262306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_SCLK 0x00000020L 153362306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_OV0_SCLK_MASK 0x00000040L 153462306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_OV0_SCLK 0x00000040L 153562306a36Sopenharmony_ci#define DISP_MISC_CNTL__SYNC_STRENGTH_MASK 0x00000300L 153662306a36Sopenharmony_ci#define DISP_MISC_CNTL__SYNC_PAD_FLOP_EN_MASK 0x00000400L 153762306a36Sopenharmony_ci#define DISP_MISC_CNTL__SYNC_PAD_FLOP_EN 0x00000400L 153862306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH2_PP_MASK 0x00001000L 153962306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH2_PP 0x00001000L 154062306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH2_SCLK_MASK 0x00008000L 154162306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH2_SCLK 0x00008000L 154262306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_LVDS_MASK 0x00010000L 154362306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_LVDS 0x00010000L 154462306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_TMDS_MASK 0x00020000L 154562306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_TMDS 0x00020000L 154662306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_DIG_TMDS_MASK 0x00040000L 154762306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_DIG_TMDS 0x00040000L 154862306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_TV_MASK 0x00080000L 154962306a36Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_TV 0x00080000L 155062306a36Sopenharmony_ci#define DISP_MISC_CNTL__PALETTE2_MEM_RD_MARGIN_MASK 0x00f00000L 155162306a36Sopenharmony_ci#define DISP_MISC_CNTL__PALETTE_MEM_RD_MARGIN_MASK 0x0f000000L 155262306a36Sopenharmony_ci#define DISP_MISC_CNTL__RMX_BUF_MEM_RD_MARGIN_MASK 0xf0000000L 155362306a36Sopenharmony_ci 155462306a36Sopenharmony_ci// DISP_PWR_MAN 155562306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_PWR_MAN_D3_CRTC_EN_MASK 0x00000001L 155662306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_PWR_MAN_D3_CRTC_EN 0x00000001L 155762306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP2_PWR_MAN_D3_CRTC2_EN_MASK 0x00000010L 155862306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP2_PWR_MAN_D3_CRTC2_EN 0x00000010L 155962306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_PWR_MAN_DPMS_MASK 0x00000300L 156062306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_RST_MASK 0x00010000L 156162306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_RST 0x00010000L 156262306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_REG_RST_MASK 0x00020000L 156362306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_REG_RST 0x00020000L 156462306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_GRPH_RST_MASK 0x00040000L 156562306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_GRPH_RST 0x00040000L 156662306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_SUBPIC_RST_MASK 0x00080000L 156762306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_SUBPIC_RST 0x00080000L 156862306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_OV0_RST_MASK 0x00100000L 156962306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_OV0_RST 0x00100000L 157062306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_GRPH_RST_MASK 0x00200000L 157162306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_GRPH_RST 0x00200000L 157262306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_SUBPIC_RST_MASK 0x00400000L 157362306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_SUBPIC_RST 0x00400000L 157462306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_OV0_RST_MASK 0x00800000L 157562306a36Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_OV0_RST 0x00800000L 157662306a36Sopenharmony_ci#define DISP_PWR_MAN__DIG_TMDS_ENABLE_RST_MASK 0x01000000L 157762306a36Sopenharmony_ci#define DISP_PWR_MAN__DIG_TMDS_ENABLE_RST 0x01000000L 157862306a36Sopenharmony_ci#define DISP_PWR_MAN__TV_ENABLE_RST_MASK 0x02000000L 157962306a36Sopenharmony_ci#define DISP_PWR_MAN__TV_ENABLE_RST 0x02000000L 158062306a36Sopenharmony_ci#define DISP_PWR_MAN__AUTO_PWRUP_EN_MASK 0x04000000L 158162306a36Sopenharmony_ci#define DISP_PWR_MAN__AUTO_PWRUP_EN 0x04000000L 158262306a36Sopenharmony_ci 158362306a36Sopenharmony_ci// MC_IND_INDEX 158462306a36Sopenharmony_ci#define MC_IND_INDEX__MC_IND_ADDR_MASK 0x0000001fL 158562306a36Sopenharmony_ci#define MC_IND_INDEX__MC_IND_WR_EN_MASK 0x00000100L 158662306a36Sopenharmony_ci#define MC_IND_INDEX__MC_IND_WR_EN 0x00000100L 158762306a36Sopenharmony_ci 158862306a36Sopenharmony_ci// MC_IND_DATA 158962306a36Sopenharmony_ci#define MC_IND_DATA__MC_IND_DATA_MASK 0xffffffffL 159062306a36Sopenharmony_ci 159162306a36Sopenharmony_ci// MC_CHP_IO_CNTL_A1 159262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA__SHIFT 0x00000000 159362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA__SHIFT 0x00000001 159462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA__SHIFT 0x00000002 159562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA__SHIFT 0x00000003 159662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA__SHIFT 0x00000004 159762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA__SHIFT 0x00000005 159862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA__SHIFT 0x00000006 159962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA__SHIFT 0x00000007 160062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA__SHIFT 0x00000008 160162306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA__SHIFT 0x00000009 160262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA__SHIFT 0x0000000a 160362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_IO_MODEA__SHIFT 0x0000000c 160462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_CKA__SHIFT 0x0000000e 160562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_AA__SHIFT 0x00000010 160662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_DQMA__SHIFT 0x00000012 160762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_DQSA__SHIFT 0x00000014 160862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA__SHIFT 0x00000016 160962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA__SHIFT 0x00000017 161062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_ENA__SHIFT 0x00000018 161162306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CLK_SELA__SHIFT 0x0000001a 161262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA__SHIFT 0x0000001c 161362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A__SHIFT 0x0000001e 161462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A__SHIFT 0x0000001f 161562306a36Sopenharmony_ci 161662306a36Sopenharmony_ci// MC_CHP_IO_CNTL_B1 161762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB__SHIFT 0x00000000 161862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB__SHIFT 0x00000001 161962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB__SHIFT 0x00000002 162062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB__SHIFT 0x00000003 162162306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB__SHIFT 0x00000004 162262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB__SHIFT 0x00000005 162362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB__SHIFT 0x00000006 162462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB__SHIFT 0x00000007 162562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB__SHIFT 0x00000008 162662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB__SHIFT 0x00000009 162762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB__SHIFT 0x0000000a 162862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_IO_MODEB__SHIFT 0x0000000c 162962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_CKB__SHIFT 0x0000000e 163062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_AB__SHIFT 0x00000010 163162306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_DQMB__SHIFT 0x00000012 163262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_DQSB__SHIFT 0x00000014 163362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB__SHIFT 0x00000016 163462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB__SHIFT 0x00000017 163562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_ENB__SHIFT 0x00000018 163662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CLK_SELB__SHIFT 0x0000001a 163762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB__SHIFT 0x0000001c 163862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B__SHIFT 0x0000001e 163962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B__SHIFT 0x0000001f 164062306a36Sopenharmony_ci 164162306a36Sopenharmony_ci// MC_CHP_IO_CNTL_A1 164262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA_MASK 0x00000001L 164362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA 0x00000001L 164462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA_MASK 0x00000002L 164562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA 0x00000002L 164662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA_MASK 0x00000004L 164762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA 0x00000004L 164862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA_MASK 0x00000008L 164962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA 0x00000008L 165062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA_MASK 0x00000010L 165162306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA 0x00000010L 165262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA_MASK 0x00000020L 165362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA 0x00000020L 165462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA_MASK 0x00000040L 165562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA 0x00000040L 165662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA_MASK 0x00000080L 165762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA 0x00000080L 165862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA_MASK 0x00000100L 165962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA 0x00000100L 166062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA_MASK 0x00000200L 166162306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA 0x00000200L 166262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA_MASK 0x00000400L 166362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA 0x00000400L 166462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_IO_MODEA_MASK 0x00003000L 166562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_CKA_MASK 0x0000c000L 166662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_AA_MASK 0x00030000L 166762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_DQMA_MASK 0x000c0000L 166862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_DQSA_MASK 0x00300000L 166962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA_MASK 0x00400000L 167062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA 0x00400000L 167162306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA_MASK 0x00800000L 167262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA 0x00800000L 167362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_ENA_MASK 0x03000000L 167462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CLK_SELA_MASK 0x0c000000L 167562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA_MASK 0x10000000L 167662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA 0x10000000L 167762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A_MASK 0x40000000L 167862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A 0x40000000L 167962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A_MASK 0x80000000L 168062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A 0x80000000L 168162306a36Sopenharmony_ci 168262306a36Sopenharmony_ci// MC_CHP_IO_CNTL_B1 168362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB_MASK 0x00000001L 168462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB 0x00000001L 168562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB_MASK 0x00000002L 168662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB 0x00000002L 168762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB_MASK 0x00000004L 168862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB 0x00000004L 168962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB_MASK 0x00000008L 169062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB 0x00000008L 169162306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB_MASK 0x00000010L 169262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB 0x00000010L 169362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB_MASK 0x00000020L 169462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB 0x00000020L 169562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB_MASK 0x00000040L 169662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB 0x00000040L 169762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB_MASK 0x00000080L 169862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB 0x00000080L 169962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB_MASK 0x00000100L 170062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB 0x00000100L 170162306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB_MASK 0x00000200L 170262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB 0x00000200L 170362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB_MASK 0x00000400L 170462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB 0x00000400L 170562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_IO_MODEB_MASK 0x00003000L 170662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_CKB_MASK 0x0000c000L 170762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_AB_MASK 0x00030000L 170862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_DQMB_MASK 0x000c0000L 170962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_DQSB_MASK 0x00300000L 171062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB_MASK 0x00400000L 171162306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB 0x00400000L 171262306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB_MASK 0x00800000L 171362306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB 0x00800000L 171462306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_ENB_MASK 0x03000000L 171562306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CLK_SELB_MASK 0x0c000000L 171662306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB_MASK 0x10000000L 171762306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB 0x10000000L 171862306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B_MASK 0x40000000L 171962306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B 0x40000000L 172062306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B_MASK 0x80000000L 172162306a36Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B 0x80000000L 172262306a36Sopenharmony_ci 172362306a36Sopenharmony_ci// MEM_SDRAM_MODE_REG 172462306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_MODE_REG_MASK 0x00007fffL 172562306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_WR_LATENCY_MASK 0x000f0000L 172662306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CAS_LATENCY_MASK 0x00700000L 172762306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY_MASK 0x00800000L 172862306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY 0x00800000L 172962306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY_MASK 0x01000000L 173062306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY 0x01000000L 173162306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD_MASK 0x02000000L 173262306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD 0x02000000L 173362306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA_MASK 0x04000000L 173462306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA 0x04000000L 173562306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR_MASK 0x08000000L 173662306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR 0x08000000L 173762306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE_MASK 0x10000000L 173862306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE 0x10000000L 173962306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_DDR_DLL_MASK 0x20000000L 174062306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_DDR_DLL 0x20000000L 174162306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE_MASK 0x40000000L 174262306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE 0x40000000L 174362306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET_MASK 0x80000000L 174462306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET 0x80000000L 174562306a36Sopenharmony_ci 174662306a36Sopenharmony_ci// MEM_SDRAM_MODE_REG 174762306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_MODE_REG__SHIFT 0x00000000 174862306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_WR_LATENCY__SHIFT 0x00000010 174962306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CAS_LATENCY__SHIFT 0x00000014 175062306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY__SHIFT 0x00000017 175162306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY__SHIFT 0x00000018 175262306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD__SHIFT 0x00000019 175362306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA__SHIFT 0x0000001a 175462306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR__SHIFT 0x0000001b 175562306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE__SHIFT 0x0000001c 175662306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_DDR_DLL__SHIFT 0x0000001d 175762306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE__SHIFT 0x0000001e 175862306a36Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET__SHIFT 0x0000001f 175962306a36Sopenharmony_ci 176062306a36Sopenharmony_ci// MEM_REFRESH_CNTL 176162306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_REFRESH_RATE_MASK 0x000000ffL 176262306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_REFRESH_DIS_MASK 0x00000100L 176362306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_REFRESH_DIS 0x00000100L 176462306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_DYNAMIC_CKE_MASK 0x00000200L 176562306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_DYNAMIC_CKE 0x00000200L 176662306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_TRFC_MASK 0x0000f000L 176762306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA0_ENABLE_MASK 0x00010000L 176862306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA0_ENABLE 0x00010000L 176962306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA0b_ENABLE_MASK 0x00020000L 177062306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA0b_ENABLE 0x00020000L 177162306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA1_ENABLE_MASK 0x00040000L 177262306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA1_ENABLE 0x00040000L 177362306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA1b_ENABLE_MASK 0x00080000L 177462306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA1b_ENABLE 0x00080000L 177562306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKAFB_ENABLE_MASK 0x00100000L 177662306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKAFB_ENABLE 0x00100000L 177762306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__DLL_FB_SLCT_CKA_MASK 0x00c00000L 177862306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB0_ENABLE_MASK 0x01000000L 177962306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB0_ENABLE 0x01000000L 178062306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB0b_ENABLE_MASK 0x02000000L 178162306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB0b_ENABLE 0x02000000L 178262306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB1_ENABLE_MASK 0x04000000L 178362306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB1_ENABLE 0x04000000L 178462306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB1b_ENABLE_MASK 0x08000000L 178562306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB1b_ENABLE 0x08000000L 178662306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKBFB_ENABLE_MASK 0x10000000L 178762306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKBFB_ENABLE 0x10000000L 178862306a36Sopenharmony_ci#define MEM_REFRESH_CNTL__DLL_FB_SLCT_CKB_MASK 0xc0000000L 178962306a36Sopenharmony_ci 179062306a36Sopenharmony_ci// MC_STATUS 179162306a36Sopenharmony_ci#define MC_STATUS__MEM_PWRUP_COMPL_A_MASK 0x00000001L 179262306a36Sopenharmony_ci#define MC_STATUS__MEM_PWRUP_COMPL_A 0x00000001L 179362306a36Sopenharmony_ci#define MC_STATUS__MEM_PWRUP_COMPL_B_MASK 0x00000002L 179462306a36Sopenharmony_ci#define MC_STATUS__MEM_PWRUP_COMPL_B 0x00000002L 179562306a36Sopenharmony_ci#define MC_STATUS__MC_IDLE_MASK 0x00000004L 179662306a36Sopenharmony_ci#define MC_STATUS__MC_IDLE 0x00000004L 179762306a36Sopenharmony_ci#define MC_STATUS__IMP_N_VALUE_R_BACK_MASK 0x00000078L 179862306a36Sopenharmony_ci#define MC_STATUS__IMP_P_VALUE_R_BACK_MASK 0x00000780L 179962306a36Sopenharmony_ci#define MC_STATUS__TEST_OUT_R_BACK_MASK 0x00000800L 180062306a36Sopenharmony_ci#define MC_STATUS__TEST_OUT_R_BACK 0x00000800L 180162306a36Sopenharmony_ci#define MC_STATUS__DUMMY_OUT_R_BACK_MASK 0x00001000L 180262306a36Sopenharmony_ci#define MC_STATUS__DUMMY_OUT_R_BACK 0x00001000L 180362306a36Sopenharmony_ci#define MC_STATUS__IMP_N_VALUE_A_R_BACK_MASK 0x0001e000L 180462306a36Sopenharmony_ci#define MC_STATUS__IMP_P_VALUE_A_R_BACK_MASK 0x001e0000L 180562306a36Sopenharmony_ci#define MC_STATUS__IMP_N_VALUE_CK_R_BACK_MASK 0x01e00000L 180662306a36Sopenharmony_ci#define MC_STATUS__IMP_P_VALUE_CK_R_BACK_MASK 0x1e000000L 180762306a36Sopenharmony_ci 180862306a36Sopenharmony_ci// MDLL_CKO 180962306a36Sopenharmony_ci#define MDLL_CKO__MCKOA_SLEEP_MASK 0x00000001L 181062306a36Sopenharmony_ci#define MDLL_CKO__MCKOA_SLEEP 0x00000001L 181162306a36Sopenharmony_ci#define MDLL_CKO__MCKOA_RESET_MASK 0x00000002L 181262306a36Sopenharmony_ci#define MDLL_CKO__MCKOA_RESET 0x00000002L 181362306a36Sopenharmony_ci#define MDLL_CKO__MCKOA_RANGE_MASK 0x0000000cL 181462306a36Sopenharmony_ci#define MDLL_CKO__ERSTA_SOUTSEL_MASK 0x00000030L 181562306a36Sopenharmony_ci#define MDLL_CKO__MCKOA_FB_SEL_MASK 0x000000c0L 181662306a36Sopenharmony_ci#define MDLL_CKO__MCKOA_REF_SKEW_MASK 0x00000700L 181762306a36Sopenharmony_ci#define MDLL_CKO__MCKOA_FB_SKEW_MASK 0x00007000L 181862306a36Sopenharmony_ci#define MDLL_CKO__MCKOA_BP_SEL_MASK 0x00008000L 181962306a36Sopenharmony_ci#define MDLL_CKO__MCKOA_BP_SEL 0x00008000L 182062306a36Sopenharmony_ci#define MDLL_CKO__MCKOB_SLEEP_MASK 0x00010000L 182162306a36Sopenharmony_ci#define MDLL_CKO__MCKOB_SLEEP 0x00010000L 182262306a36Sopenharmony_ci#define MDLL_CKO__MCKOB_RESET_MASK 0x00020000L 182362306a36Sopenharmony_ci#define MDLL_CKO__MCKOB_RESET 0x00020000L 182462306a36Sopenharmony_ci#define MDLL_CKO__MCKOB_RANGE_MASK 0x000c0000L 182562306a36Sopenharmony_ci#define MDLL_CKO__ERSTB_SOUTSEL_MASK 0x00300000L 182662306a36Sopenharmony_ci#define MDLL_CKO__MCKOB_FB_SEL_MASK 0x00c00000L 182762306a36Sopenharmony_ci#define MDLL_CKO__MCKOB_REF_SKEW_MASK 0x07000000L 182862306a36Sopenharmony_ci#define MDLL_CKO__MCKOB_FB_SKEW_MASK 0x70000000L 182962306a36Sopenharmony_ci#define MDLL_CKO__MCKOB_BP_SEL_MASK 0x80000000L 183062306a36Sopenharmony_ci#define MDLL_CKO__MCKOB_BP_SEL 0x80000000L 183162306a36Sopenharmony_ci 183262306a36Sopenharmony_ci// MDLL_RDCKA 183362306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_SLEEP_MASK 0x00000001L 183462306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_SLEEP 0x00000001L 183562306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_RESET_MASK 0x00000002L 183662306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_RESET 0x00000002L 183762306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_RANGE_MASK 0x0000000cL 183862306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_REF_SEL_MASK 0x00000030L 183962306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_FB_SEL_MASK 0x000000c0L 184062306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_REF_SKEW_MASK 0x00000700L 184162306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_SINSEL_MASK 0x00000800L 184262306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_SINSEL 0x00000800L 184362306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_FB_SKEW_MASK 0x00007000L 184462306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_BP_SEL_MASK 0x00008000L 184562306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_BP_SEL 0x00008000L 184662306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_SLEEP_MASK 0x00010000L 184762306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_SLEEP 0x00010000L 184862306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_RESET_MASK 0x00020000L 184962306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_RESET 0x00020000L 185062306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_RANGE_MASK 0x000c0000L 185162306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_REF_SEL_MASK 0x00300000L 185262306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_FB_SEL_MASK 0x00c00000L 185362306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_REF_SKEW_MASK 0x07000000L 185462306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_SINSEL_MASK 0x08000000L 185562306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_SINSEL 0x08000000L 185662306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_FB_SKEW_MASK 0x70000000L 185762306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_BP_SEL_MASK 0x80000000L 185862306a36Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_BP_SEL 0x80000000L 185962306a36Sopenharmony_ci 186062306a36Sopenharmony_ci// MDLL_RDCKB 186162306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_SLEEP_MASK 0x00000001L 186262306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_SLEEP 0x00000001L 186362306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_RESET_MASK 0x00000002L 186462306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_RESET 0x00000002L 186562306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_RANGE_MASK 0x0000000cL 186662306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_REF_SEL_MASK 0x00000030L 186762306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_FB_SEL_MASK 0x000000c0L 186862306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_REF_SKEW_MASK 0x00000700L 186962306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_SINSEL_MASK 0x00000800L 187062306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_SINSEL 0x00000800L 187162306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_FB_SKEW_MASK 0x00007000L 187262306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_BP_SEL_MASK 0x00008000L 187362306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_BP_SEL 0x00008000L 187462306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_SLEEP_MASK 0x00010000L 187562306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_SLEEP 0x00010000L 187662306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_RESET_MASK 0x00020000L 187762306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_RESET 0x00020000L 187862306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_RANGE_MASK 0x000c0000L 187962306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_REF_SEL_MASK 0x00300000L 188062306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_FB_SEL_MASK 0x00c00000L 188162306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_REF_SKEW_MASK 0x07000000L 188262306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_SINSEL_MASK 0x08000000L 188362306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_SINSEL 0x08000000L 188462306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_FB_SKEW_MASK 0x70000000L 188562306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_BP_SEL_MASK 0x80000000L 188662306a36Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_BP_SEL 0x80000000L 188762306a36Sopenharmony_ci 188862306a36Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKA_SLEEP 0x00000001L 188962306a36Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKA_RESET 0x00000002L 189062306a36Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKB_SLEEP 0x00000004L 189162306a36Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKB_RESET 0x00000008L 189262306a36Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKC_SLEEP 0x00000010L 189362306a36Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKC_RESET 0x00000020L 189462306a36Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKD_SLEEP 0x00000040L 189562306a36Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKD_RESET 0x00000080L 189662306a36Sopenharmony_ci 189762306a36Sopenharmony_ci#define pllCLK_PIN_CNTL 0x0001 189862306a36Sopenharmony_ci#define pllPPLL_CNTL 0x0002 189962306a36Sopenharmony_ci#define pllPPLL_REF_DIV 0x0003 190062306a36Sopenharmony_ci#define pllPPLL_DIV_0 0x0004 190162306a36Sopenharmony_ci#define pllPPLL_DIV_1 0x0005 190262306a36Sopenharmony_ci#define pllPPLL_DIV_2 0x0006 190362306a36Sopenharmony_ci#define pllPPLL_DIV_3 0x0007 190462306a36Sopenharmony_ci#define pllVCLK_ECP_CNTL 0x0008 190562306a36Sopenharmony_ci#define pllHTOTAL_CNTL 0x0009 190662306a36Sopenharmony_ci#define pllM_SPLL_REF_FB_DIV 0x000A 190762306a36Sopenharmony_ci#define pllAGP_PLL_CNTL 0x000B 190862306a36Sopenharmony_ci#define pllSPLL_CNTL 0x000C 190962306a36Sopenharmony_ci#define pllSCLK_CNTL 0x000D 191062306a36Sopenharmony_ci#define pllMPLL_CNTL 0x000E 191162306a36Sopenharmony_ci#define pllMDLL_CKO 0x000F 191262306a36Sopenharmony_ci#define pllMDLL_RDCKA 0x0010 191362306a36Sopenharmony_ci#define pllMDLL_RDCKB 0x0011 191462306a36Sopenharmony_ci#define pllMCLK_CNTL 0x0012 191562306a36Sopenharmony_ci#define pllPLL_TEST_CNTL 0x0013 191662306a36Sopenharmony_ci#define pllCLK_PWRMGT_CNTL 0x0014 191762306a36Sopenharmony_ci#define pllPLL_PWRMGT_CNTL 0x0015 191862306a36Sopenharmony_ci#define pllCG_TEST_MACRO_RW_WRITE 0x0016 191962306a36Sopenharmony_ci#define pllCG_TEST_MACRO_RW_READ 0x0017 192062306a36Sopenharmony_ci#define pllCG_TEST_MACRO_RW_DATA 0x0018 192162306a36Sopenharmony_ci#define pllCG_TEST_MACRO_RW_CNTL 0x0019 192262306a36Sopenharmony_ci#define pllDISP_TEST_MACRO_RW_WRITE 0x001A 192362306a36Sopenharmony_ci#define pllDISP_TEST_MACRO_RW_READ 0x001B 192462306a36Sopenharmony_ci#define pllDISP_TEST_MACRO_RW_DATA 0x001C 192562306a36Sopenharmony_ci#define pllDISP_TEST_MACRO_RW_CNTL 0x001D 192662306a36Sopenharmony_ci#define pllSCLK_CNTL2 0x001E 192762306a36Sopenharmony_ci#define pllMCLK_MISC 0x001F 192862306a36Sopenharmony_ci#define pllTV_PLL_FINE_CNTL 0x0020 192962306a36Sopenharmony_ci#define pllTV_PLL_CNTL 0x0021 193062306a36Sopenharmony_ci#define pllTV_PLL_CNTL1 0x0022 193162306a36Sopenharmony_ci#define pllTV_DTO_INCREMENTS 0x0023 193262306a36Sopenharmony_ci#define pllSPLL_AUX_CNTL 0x0024 193362306a36Sopenharmony_ci#define pllMPLL_AUX_CNTL 0x0025 193462306a36Sopenharmony_ci#define pllP2PLL_CNTL 0x002A 193562306a36Sopenharmony_ci#define pllP2PLL_REF_DIV 0x002B 193662306a36Sopenharmony_ci#define pllP2PLL_DIV_0 0x002C 193762306a36Sopenharmony_ci#define pllPIXCLKS_CNTL 0x002D 193862306a36Sopenharmony_ci#define pllHTOTAL2_CNTL 0x002E 193962306a36Sopenharmony_ci#define pllSSPLL_CNTL 0x0030 194062306a36Sopenharmony_ci#define pllSSPLL_REF_DIV 0x0031 194162306a36Sopenharmony_ci#define pllSSPLL_DIV_0 0x0032 194262306a36Sopenharmony_ci#define pllSS_INT_CNTL 0x0033 194362306a36Sopenharmony_ci#define pllSS_TST_CNTL 0x0034 194462306a36Sopenharmony_ci#define pllSCLK_MORE_CNTL 0x0035 194562306a36Sopenharmony_ci 194662306a36Sopenharmony_ci#define ixMC_PERF_CNTL 0x0000 194762306a36Sopenharmony_ci#define ixMC_PERF_SEL 0x0001 194862306a36Sopenharmony_ci#define ixMC_PERF_REGION_0 0x0002 194962306a36Sopenharmony_ci#define ixMC_PERF_REGION_1 0x0003 195062306a36Sopenharmony_ci#define ixMC_PERF_COUNT_0 0x0004 195162306a36Sopenharmony_ci#define ixMC_PERF_COUNT_1 0x0005 195262306a36Sopenharmony_ci#define ixMC_PERF_COUNT_2 0x0006 195362306a36Sopenharmony_ci#define ixMC_PERF_COUNT_3 0x0007 195462306a36Sopenharmony_ci#define ixMC_PERF_COUNT_MEMCH_A 0x0008 195562306a36Sopenharmony_ci#define ixMC_PERF_COUNT_MEMCH_B 0x0009 195662306a36Sopenharmony_ci#define ixMC_IMP_CNTL 0x000A 195762306a36Sopenharmony_ci#define ixMC_CHP_IO_CNTL_A0 0x000B 195862306a36Sopenharmony_ci#define ixMC_CHP_IO_CNTL_A1 0x000C 195962306a36Sopenharmony_ci#define ixMC_CHP_IO_CNTL_B0 0x000D 196062306a36Sopenharmony_ci#define ixMC_CHP_IO_CNTL_B1 0x000E 196162306a36Sopenharmony_ci#define ixMC_IMP_CNTL_0 0x000F 196262306a36Sopenharmony_ci#define ixTC_MISMATCH_1 0x0010 196362306a36Sopenharmony_ci#define ixTC_MISMATCH_2 0x0011 196462306a36Sopenharmony_ci#define ixMC_BIST_CTRL 0x0012 196562306a36Sopenharmony_ci#define ixREG_COLLAR_WRITE 0x0013 196662306a36Sopenharmony_ci#define ixREG_COLLAR_READ 0x0014 196762306a36Sopenharmony_ci#define ixR300_MC_IMP_CNTL 0x0018 196862306a36Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_A0 0x0019 196962306a36Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_A1 0x001a 197062306a36Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_B0 0x001b 197162306a36Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_B1 0x001c 197262306a36Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_C0 0x001d 197362306a36Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_C1 0x001e 197462306a36Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_D0 0x001f 197562306a36Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_D1 0x0020 197662306a36Sopenharmony_ci#define ixR300_MC_IMP_CNTL_0 0x0021 197762306a36Sopenharmony_ci#define ixR300_MC_ELPIDA_CNTL 0x0022 197862306a36Sopenharmony_ci#define ixR300_MC_CHP_IO_OE_CNTL_CD 0x0023 197962306a36Sopenharmony_ci#define ixR300_MC_READ_CNTL_CD 0x0024 198062306a36Sopenharmony_ci#define ixR300_MC_MC_INIT_WR_LAT_TIMER 0x0025 198162306a36Sopenharmony_ci#define ixR300_MC_DEBUG_CNTL 0x0026 198262306a36Sopenharmony_ci#define ixR300_MC_BIST_CNTL_0 0x0028 198362306a36Sopenharmony_ci#define ixR300_MC_BIST_CNTL_1 0x0029 198462306a36Sopenharmony_ci#define ixR300_MC_BIST_CNTL_2 0x002a 198562306a36Sopenharmony_ci#define ixR300_MC_BIST_CNTL_3 0x002b 198662306a36Sopenharmony_ci#define ixR300_MC_BIST_CNTL_4 0x002c 198762306a36Sopenharmony_ci#define ixR300_MC_BIST_CNTL_5 0x002d 198862306a36Sopenharmony_ci#define ixR300_MC_IMP_STATUS 0x002e 198962306a36Sopenharmony_ci#define ixR300_MC_DLL_CNTL 0x002f 199062306a36Sopenharmony_ci#define NB_TOM 0x15C 199162306a36Sopenharmony_ci 199262306a36Sopenharmony_ci 199362306a36Sopenharmony_ci#endif /* _RADEON_H */ 199462306a36Sopenharmony_ci 1995