18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _RADEON_H 38c2ecf20Sopenharmony_ci#define _RADEON_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#define RADEON_REGSIZE 0x4000 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#define MM_INDEX 0x0000 108c2ecf20Sopenharmony_ci#define MM_DATA 0x0004 118c2ecf20Sopenharmony_ci#define BUS_CNTL 0x0030 128c2ecf20Sopenharmony_ci#define HI_STAT 0x004C 138c2ecf20Sopenharmony_ci#define BUS_CNTL1 0x0034 148c2ecf20Sopenharmony_ci#define I2C_CNTL_1 0x0094 158c2ecf20Sopenharmony_ci#define CNFG_CNTL 0x00E0 168c2ecf20Sopenharmony_ci#define CNFG_MEMSIZE 0x00F8 178c2ecf20Sopenharmony_ci#define CNFG_APER_0_BASE 0x0100 188c2ecf20Sopenharmony_ci#define CNFG_APER_1_BASE 0x0104 198c2ecf20Sopenharmony_ci#define CNFG_APER_SIZE 0x0108 208c2ecf20Sopenharmony_ci#define CNFG_REG_1_BASE 0x010C 218c2ecf20Sopenharmony_ci#define CNFG_REG_APER_SIZE 0x0110 228c2ecf20Sopenharmony_ci#define PAD_AGPINPUT_DELAY 0x0164 238c2ecf20Sopenharmony_ci#define PAD_CTLR_STRENGTH 0x0168 248c2ecf20Sopenharmony_ci#define PAD_CTLR_UPDATE 0x016C 258c2ecf20Sopenharmony_ci#define PAD_CTLR_MISC 0x0aa0 268c2ecf20Sopenharmony_ci#define AGP_CNTL 0x0174 278c2ecf20Sopenharmony_ci#define BM_STATUS 0x0160 288c2ecf20Sopenharmony_ci#define CAP0_TRIG_CNTL 0x0950 298c2ecf20Sopenharmony_ci#define CAP1_TRIG_CNTL 0x09c0 308c2ecf20Sopenharmony_ci#define VIPH_CONTROL 0x0C40 318c2ecf20Sopenharmony_ci#define VENDOR_ID 0x0F00 328c2ecf20Sopenharmony_ci#define DEVICE_ID 0x0F02 338c2ecf20Sopenharmony_ci#define COMMAND 0x0F04 348c2ecf20Sopenharmony_ci#define STATUS 0x0F06 358c2ecf20Sopenharmony_ci#define REVISION_ID 0x0F08 368c2ecf20Sopenharmony_ci#define REGPROG_INF 0x0F09 378c2ecf20Sopenharmony_ci#define SUB_CLASS 0x0F0A 388c2ecf20Sopenharmony_ci#define BASE_CODE 0x0F0B 398c2ecf20Sopenharmony_ci#define CACHE_LINE 0x0F0C 408c2ecf20Sopenharmony_ci#define LATENCY 0x0F0D 418c2ecf20Sopenharmony_ci#define HEADER 0x0F0E 428c2ecf20Sopenharmony_ci#define BIST 0x0F0F 438c2ecf20Sopenharmony_ci#define REG_MEM_BASE 0x0F10 448c2ecf20Sopenharmony_ci#define REG_IO_BASE 0x0F14 458c2ecf20Sopenharmony_ci#define REG_REG_BASE 0x0F18 468c2ecf20Sopenharmony_ci#define ADAPTER_ID 0x0F2C 478c2ecf20Sopenharmony_ci#define BIOS_ROM 0x0F30 488c2ecf20Sopenharmony_ci#define CAPABILITIES_PTR 0x0F34 498c2ecf20Sopenharmony_ci#define INTERRUPT_LINE 0x0F3C 508c2ecf20Sopenharmony_ci#define INTERRUPT_PIN 0x0F3D 518c2ecf20Sopenharmony_ci#define MIN_GRANT 0x0F3E 528c2ecf20Sopenharmony_ci#define MAX_LATENCY 0x0F3F 538c2ecf20Sopenharmony_ci#define ADAPTER_ID_W 0x0F4C 548c2ecf20Sopenharmony_ci#define PMI_CAP_ID 0x0F50 558c2ecf20Sopenharmony_ci#define PMI_NXT_CAP_PTR 0x0F51 568c2ecf20Sopenharmony_ci#define PMI_PMC_REG 0x0F52 578c2ecf20Sopenharmony_ci#define PM_STATUS 0x0F54 588c2ecf20Sopenharmony_ci#define PMI_DATA 0x0F57 598c2ecf20Sopenharmony_ci#define AGP_CAP_ID 0x0F58 608c2ecf20Sopenharmony_ci#define AGP_STATUS 0x0F5C 618c2ecf20Sopenharmony_ci#define AGP_COMMAND 0x0F60 628c2ecf20Sopenharmony_ci#define AIC_CTRL 0x01D0 638c2ecf20Sopenharmony_ci#define AIC_STAT 0x01D4 648c2ecf20Sopenharmony_ci#define AIC_PT_BASE 0x01D8 658c2ecf20Sopenharmony_ci#define AIC_LO_ADDR 0x01DC 668c2ecf20Sopenharmony_ci#define AIC_HI_ADDR 0x01E0 678c2ecf20Sopenharmony_ci#define AIC_TLB_ADDR 0x01E4 688c2ecf20Sopenharmony_ci#define AIC_TLB_DATA 0x01E8 698c2ecf20Sopenharmony_ci#define DAC_CNTL 0x0058 708c2ecf20Sopenharmony_ci#define DAC_CNTL2 0x007c 718c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL 0x0050 728c2ecf20Sopenharmony_ci#define MEM_CNTL 0x0140 738c2ecf20Sopenharmony_ci#define MC_CNTL 0x0140 748c2ecf20Sopenharmony_ci#define EXT_MEM_CNTL 0x0144 758c2ecf20Sopenharmony_ci#define MC_TIMING_CNTL 0x0144 768c2ecf20Sopenharmony_ci#define MC_AGP_LOCATION 0x014C 778c2ecf20Sopenharmony_ci#define MEM_IO_CNTL_A0 0x0178 788c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL 0x0178 798c2ecf20Sopenharmony_ci#define MEM_INIT_LATENCY_TIMER 0x0154 808c2ecf20Sopenharmony_ci#define MC_INIT_GFX_LAT_TIMER 0x0154 818c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG 0x0158 828c2ecf20Sopenharmony_ci#define AGP_BASE 0x0170 838c2ecf20Sopenharmony_ci#define MEM_IO_CNTL_A1 0x017C 848c2ecf20Sopenharmony_ci#define MC_READ_CNTL_AB 0x017C 858c2ecf20Sopenharmony_ci#define MEM_IO_CNTL_B0 0x0180 868c2ecf20Sopenharmony_ci#define MC_INIT_MISC_LAT_TIMER 0x0180 878c2ecf20Sopenharmony_ci#define MEM_IO_CNTL_B1 0x0184 888c2ecf20Sopenharmony_ci#define MC_IOPAD_CNTL 0x0184 898c2ecf20Sopenharmony_ci#define MC_DEBUG 0x0188 908c2ecf20Sopenharmony_ci#define MC_STATUS 0x0150 918c2ecf20Sopenharmony_ci#define MEM_IO_OE_CNTL 0x018C 928c2ecf20Sopenharmony_ci#define MC_CHIP_IO_OE_CNTL_AB 0x018C 938c2ecf20Sopenharmony_ci#define MC_FB_LOCATION 0x0148 948c2ecf20Sopenharmony_ci#define HOST_PATH_CNTL 0x0130 958c2ecf20Sopenharmony_ci#define MEM_VGA_WP_SEL 0x0038 968c2ecf20Sopenharmony_ci#define MEM_VGA_RP_SEL 0x003C 978c2ecf20Sopenharmony_ci#define HDP_DEBUG 0x0138 988c2ecf20Sopenharmony_ci#define SW_SEMAPHORE 0x013C 998c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL 0x03f8 1008c2ecf20Sopenharmony_ci#define CRTC2_DISPLAY_BASE_ADDR 0x033c 1018c2ecf20Sopenharmony_ci#define SURFACE_CNTL 0x0B00 1028c2ecf20Sopenharmony_ci#define SURFACE0_LOWER_BOUND 0x0B04 1038c2ecf20Sopenharmony_ci#define SURFACE1_LOWER_BOUND 0x0B14 1048c2ecf20Sopenharmony_ci#define SURFACE2_LOWER_BOUND 0x0B24 1058c2ecf20Sopenharmony_ci#define SURFACE3_LOWER_BOUND 0x0B34 1068c2ecf20Sopenharmony_ci#define SURFACE4_LOWER_BOUND 0x0B44 1078c2ecf20Sopenharmony_ci#define SURFACE5_LOWER_BOUND 0x0B54 1088c2ecf20Sopenharmony_ci#define SURFACE6_LOWER_BOUND 0x0B64 1098c2ecf20Sopenharmony_ci#define SURFACE7_LOWER_BOUND 0x0B74 1108c2ecf20Sopenharmony_ci#define SURFACE0_UPPER_BOUND 0x0B08 1118c2ecf20Sopenharmony_ci#define SURFACE1_UPPER_BOUND 0x0B18 1128c2ecf20Sopenharmony_ci#define SURFACE2_UPPER_BOUND 0x0B28 1138c2ecf20Sopenharmony_ci#define SURFACE3_UPPER_BOUND 0x0B38 1148c2ecf20Sopenharmony_ci#define SURFACE4_UPPER_BOUND 0x0B48 1158c2ecf20Sopenharmony_ci#define SURFACE5_UPPER_BOUND 0x0B58 1168c2ecf20Sopenharmony_ci#define SURFACE6_UPPER_BOUND 0x0B68 1178c2ecf20Sopenharmony_ci#define SURFACE7_UPPER_BOUND 0x0B78 1188c2ecf20Sopenharmony_ci#define SURFACE0_INFO 0x0B0C 1198c2ecf20Sopenharmony_ci#define SURFACE1_INFO 0x0B1C 1208c2ecf20Sopenharmony_ci#define SURFACE2_INFO 0x0B2C 1218c2ecf20Sopenharmony_ci#define SURFACE3_INFO 0x0B3C 1228c2ecf20Sopenharmony_ci#define SURFACE4_INFO 0x0B4C 1238c2ecf20Sopenharmony_ci#define SURFACE5_INFO 0x0B5C 1248c2ecf20Sopenharmony_ci#define SURFACE6_INFO 0x0B6C 1258c2ecf20Sopenharmony_ci#define SURFACE7_INFO 0x0B7C 1268c2ecf20Sopenharmony_ci#define SURFACE_ACCESS_FLAGS 0x0BF8 1278c2ecf20Sopenharmony_ci#define SURFACE_ACCESS_CLR 0x0BFC 1288c2ecf20Sopenharmony_ci#define GEN_INT_CNTL 0x0040 1298c2ecf20Sopenharmony_ci#define GEN_INT_STATUS 0x0044 1308c2ecf20Sopenharmony_ci#define CRTC_EXT_CNTL 0x0054 1318c2ecf20Sopenharmony_ci#define RB3D_CNTL 0x1C3C 1328c2ecf20Sopenharmony_ci#define WAIT_UNTIL 0x1720 1338c2ecf20Sopenharmony_ci#define ISYNC_CNTL 0x1724 1348c2ecf20Sopenharmony_ci#define RBBM_GUICNTL 0x172C 1358c2ecf20Sopenharmony_ci#define RBBM_STATUS 0x0E40 1368c2ecf20Sopenharmony_ci#define RBBM_STATUS_alt_1 0x1740 1378c2ecf20Sopenharmony_ci#define RBBM_CNTL 0x00EC 1388c2ecf20Sopenharmony_ci#define RBBM_CNTL_alt_1 0x0E44 1398c2ecf20Sopenharmony_ci#define RBBM_SOFT_RESET 0x00F0 1408c2ecf20Sopenharmony_ci#define RBBM_SOFT_RESET_alt_1 0x0E48 1418c2ecf20Sopenharmony_ci#define NQWAIT_UNTIL 0x0E50 1428c2ecf20Sopenharmony_ci#define RBBM_DEBUG 0x0E6C 1438c2ecf20Sopenharmony_ci#define RBBM_CMDFIFO_ADDR 0x0E70 1448c2ecf20Sopenharmony_ci#define RBBM_CMDFIFO_DATAL 0x0E74 1458c2ecf20Sopenharmony_ci#define RBBM_CMDFIFO_DATAH 0x0E78 1468c2ecf20Sopenharmony_ci#define RBBM_CMDFIFO_STAT 0x0E7C 1478c2ecf20Sopenharmony_ci#define CRTC_STATUS 0x005C 1488c2ecf20Sopenharmony_ci#define GPIO_VGA_DDC 0x0060 1498c2ecf20Sopenharmony_ci#define GPIO_DVI_DDC 0x0064 1508c2ecf20Sopenharmony_ci#define GPIO_MONID 0x0068 1518c2ecf20Sopenharmony_ci#define GPIO_CRT2_DDC 0x006c 1528c2ecf20Sopenharmony_ci#define PALETTE_INDEX 0x00B0 1538c2ecf20Sopenharmony_ci#define PALETTE_DATA 0x00B4 1548c2ecf20Sopenharmony_ci#define PALETTE_30_DATA 0x00B8 1558c2ecf20Sopenharmony_ci#define CRTC_H_TOTAL_DISP 0x0200 1568c2ecf20Sopenharmony_ci#define CRTC_H_SYNC_STRT_WID 0x0204 1578c2ecf20Sopenharmony_ci#define CRTC_V_TOTAL_DISP 0x0208 1588c2ecf20Sopenharmony_ci#define CRTC_V_SYNC_STRT_WID 0x020C 1598c2ecf20Sopenharmony_ci#define CRTC_VLINE_CRNT_VLINE 0x0210 1608c2ecf20Sopenharmony_ci#define CRTC_CRNT_FRAME 0x0214 1618c2ecf20Sopenharmony_ci#define CRTC_GUI_TRIG_VLINE 0x0218 1628c2ecf20Sopenharmony_ci#define CRTC_DEBUG 0x021C 1638c2ecf20Sopenharmony_ci#define CRTC_OFFSET_RIGHT 0x0220 1648c2ecf20Sopenharmony_ci#define CRTC_OFFSET 0x0224 1658c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL 0x0228 1668c2ecf20Sopenharmony_ci#define CRTC_PITCH 0x022C 1678c2ecf20Sopenharmony_ci#define OVR_CLR 0x0230 1688c2ecf20Sopenharmony_ci#define OVR_WID_LEFT_RIGHT 0x0234 1698c2ecf20Sopenharmony_ci#define OVR_WID_TOP_BOTTOM 0x0238 1708c2ecf20Sopenharmony_ci#define DISPLAY_BASE_ADDR 0x023C 1718c2ecf20Sopenharmony_ci#define SNAPSHOT_VH_COUNTS 0x0240 1728c2ecf20Sopenharmony_ci#define SNAPSHOT_F_COUNT 0x0244 1738c2ecf20Sopenharmony_ci#define N_VIF_COUNT 0x0248 1748c2ecf20Sopenharmony_ci#define SNAPSHOT_VIF_COUNT 0x024C 1758c2ecf20Sopenharmony_ci#define FP_CRTC_H_TOTAL_DISP 0x0250 1768c2ecf20Sopenharmony_ci#define FP_CRTC_V_TOTAL_DISP 0x0254 1778c2ecf20Sopenharmony_ci#define CRT_CRTC_H_SYNC_STRT_WID 0x0258 1788c2ecf20Sopenharmony_ci#define CRT_CRTC_V_SYNC_STRT_WID 0x025C 1798c2ecf20Sopenharmony_ci#define CUR_OFFSET 0x0260 1808c2ecf20Sopenharmony_ci#define CUR_HORZ_VERT_POSN 0x0264 1818c2ecf20Sopenharmony_ci#define CUR_HORZ_VERT_OFF 0x0268 1828c2ecf20Sopenharmony_ci#define CUR_CLR0 0x026C 1838c2ecf20Sopenharmony_ci#define CUR_CLR1 0x0270 1848c2ecf20Sopenharmony_ci#define FP_HORZ_VERT_ACTIVE 0x0278 1858c2ecf20Sopenharmony_ci#define CRTC_MORE_CNTL 0x027C 1868c2ecf20Sopenharmony_ci#define CRTC_H_CUTOFF_ACTIVE_EN (1<<4) 1878c2ecf20Sopenharmony_ci#define CRTC_V_CUTOFF_ACTIVE_EN (1<<5) 1888c2ecf20Sopenharmony_ci#define DAC_EXT_CNTL 0x0280 1898c2ecf20Sopenharmony_ci#define FP_GEN_CNTL 0x0284 1908c2ecf20Sopenharmony_ci#define FP_HORZ_STRETCH 0x028C 1918c2ecf20Sopenharmony_ci#define FP_VERT_STRETCH 0x0290 1928c2ecf20Sopenharmony_ci#define FP_H_SYNC_STRT_WID 0x02C4 1938c2ecf20Sopenharmony_ci#define FP_V_SYNC_STRT_WID 0x02C8 1948c2ecf20Sopenharmony_ci#define AUX_WINDOW_HORZ_CNTL 0x02D8 1958c2ecf20Sopenharmony_ci#define AUX_WINDOW_VERT_CNTL 0x02DC 1968c2ecf20Sopenharmony_ci//#define DDA_CONFIG 0x02e0 1978c2ecf20Sopenharmony_ci//#define DDA_ON_OFF 0x02e4 1988c2ecf20Sopenharmony_ci#define DVI_I2C_CNTL_1 0x02e4 1998c2ecf20Sopenharmony_ci#define GRPH_BUFFER_CNTL 0x02F0 2008c2ecf20Sopenharmony_ci#define GRPH2_BUFFER_CNTL 0x03F0 2018c2ecf20Sopenharmony_ci#define VGA_BUFFER_CNTL 0x02F4 2028c2ecf20Sopenharmony_ci#define OV0_Y_X_START 0x0400 2038c2ecf20Sopenharmony_ci#define OV0_Y_X_END 0x0404 2048c2ecf20Sopenharmony_ci#define OV0_PIPELINE_CNTL 0x0408 2058c2ecf20Sopenharmony_ci#define OV0_REG_LOAD_CNTL 0x0410 2068c2ecf20Sopenharmony_ci#define OV0_SCALE_CNTL 0x0420 2078c2ecf20Sopenharmony_ci#define OV0_V_INC 0x0424 2088c2ecf20Sopenharmony_ci#define OV0_P1_V_ACCUM_INIT 0x0428 2098c2ecf20Sopenharmony_ci#define OV0_P23_V_ACCUM_INIT 0x042C 2108c2ecf20Sopenharmony_ci#define OV0_P1_BLANK_LINES_AT_TOP 0x0430 2118c2ecf20Sopenharmony_ci#define OV0_P23_BLANK_LINES_AT_TOP 0x0434 2128c2ecf20Sopenharmony_ci#define OV0_BASE_ADDR 0x043C 2138c2ecf20Sopenharmony_ci#define OV0_VID_BUF0_BASE_ADRS 0x0440 2148c2ecf20Sopenharmony_ci#define OV0_VID_BUF1_BASE_ADRS 0x0444 2158c2ecf20Sopenharmony_ci#define OV0_VID_BUF2_BASE_ADRS 0x0448 2168c2ecf20Sopenharmony_ci#define OV0_VID_BUF3_BASE_ADRS 0x044C 2178c2ecf20Sopenharmony_ci#define OV0_VID_BUF4_BASE_ADRS 0x0450 2188c2ecf20Sopenharmony_ci#define OV0_VID_BUF5_BASE_ADRS 0x0454 2198c2ecf20Sopenharmony_ci#define OV0_VID_BUF_PITCH0_VALUE 0x0460 2208c2ecf20Sopenharmony_ci#define OV0_VID_BUF_PITCH1_VALUE 0x0464 2218c2ecf20Sopenharmony_ci#define OV0_AUTO_FLIP_CNTRL 0x0470 2228c2ecf20Sopenharmony_ci#define OV0_DEINTERLACE_PATTERN 0x0474 2238c2ecf20Sopenharmony_ci#define OV0_SUBMIT_HISTORY 0x0478 2248c2ecf20Sopenharmony_ci#define OV0_H_INC 0x0480 2258c2ecf20Sopenharmony_ci#define OV0_STEP_BY 0x0484 2268c2ecf20Sopenharmony_ci#define OV0_P1_H_ACCUM_INIT 0x0488 2278c2ecf20Sopenharmony_ci#define OV0_P23_H_ACCUM_INIT 0x048C 2288c2ecf20Sopenharmony_ci#define OV0_P1_X_START_END 0x0494 2298c2ecf20Sopenharmony_ci#define OV0_P2_X_START_END 0x0498 2308c2ecf20Sopenharmony_ci#define OV0_P3_X_START_END 0x049C 2318c2ecf20Sopenharmony_ci#define OV0_FILTER_CNTL 0x04A0 2328c2ecf20Sopenharmony_ci#define OV0_FOUR_TAP_COEF_0 0x04B0 2338c2ecf20Sopenharmony_ci#define OV0_FOUR_TAP_COEF_1 0x04B4 2348c2ecf20Sopenharmony_ci#define OV0_FOUR_TAP_COEF_2 0x04B8 2358c2ecf20Sopenharmony_ci#define OV0_FOUR_TAP_COEF_3 0x04BC 2368c2ecf20Sopenharmony_ci#define OV0_FOUR_TAP_COEF_4 0x04C0 2378c2ecf20Sopenharmony_ci#define OV0_FLAG_CNTRL 0x04DC 2388c2ecf20Sopenharmony_ci#define OV0_SLICE_CNTL 0x04E0 2398c2ecf20Sopenharmony_ci#define OV0_VID_KEY_CLR_LOW 0x04E4 2408c2ecf20Sopenharmony_ci#define OV0_VID_KEY_CLR_HIGH 0x04E8 2418c2ecf20Sopenharmony_ci#define OV0_GRPH_KEY_CLR_LOW 0x04EC 2428c2ecf20Sopenharmony_ci#define OV0_GRPH_KEY_CLR_HIGH 0x04F0 2438c2ecf20Sopenharmony_ci#define OV0_KEY_CNTL 0x04F4 2448c2ecf20Sopenharmony_ci#define OV0_TEST 0x04F8 2458c2ecf20Sopenharmony_ci#define SUBPIC_CNTL 0x0540 2468c2ecf20Sopenharmony_ci#define SUBPIC_DEFCOLCON 0x0544 2478c2ecf20Sopenharmony_ci#define SUBPIC_Y_X_START 0x054C 2488c2ecf20Sopenharmony_ci#define SUBPIC_Y_X_END 0x0550 2498c2ecf20Sopenharmony_ci#define SUBPIC_V_INC 0x0554 2508c2ecf20Sopenharmony_ci#define SUBPIC_H_INC 0x0558 2518c2ecf20Sopenharmony_ci#define SUBPIC_BUF0_OFFSET 0x055C 2528c2ecf20Sopenharmony_ci#define SUBPIC_BUF1_OFFSET 0x0560 2538c2ecf20Sopenharmony_ci#define SUBPIC_LC0_OFFSET 0x0564 2548c2ecf20Sopenharmony_ci#define SUBPIC_LC1_OFFSET 0x0568 2558c2ecf20Sopenharmony_ci#define SUBPIC_PITCH 0x056C 2568c2ecf20Sopenharmony_ci#define SUBPIC_BTN_HLI_COLCON 0x0570 2578c2ecf20Sopenharmony_ci#define SUBPIC_BTN_HLI_Y_X_START 0x0574 2588c2ecf20Sopenharmony_ci#define SUBPIC_BTN_HLI_Y_X_END 0x0578 2598c2ecf20Sopenharmony_ci#define SUBPIC_PALETTE_INDEX 0x057C 2608c2ecf20Sopenharmony_ci#define SUBPIC_PALETTE_DATA 0x0580 2618c2ecf20Sopenharmony_ci#define SUBPIC_H_ACCUM_INIT 0x0584 2628c2ecf20Sopenharmony_ci#define SUBPIC_V_ACCUM_INIT 0x0588 2638c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL 0x0D00 2648c2ecf20Sopenharmony_ci#define DAC_MACRO_CNTL 0x0D04 2658c2ecf20Sopenharmony_ci#define DISP_PWR_MAN 0x0D08 2668c2ecf20Sopenharmony_ci#define DISP_TEST_DEBUG_CNTL 0x0D10 2678c2ecf20Sopenharmony_ci#define DISP_HW_DEBUG 0x0D14 2688c2ecf20Sopenharmony_ci#define DAC_CRC_SIG1 0x0D18 2698c2ecf20Sopenharmony_ci#define DAC_CRC_SIG2 0x0D1C 2708c2ecf20Sopenharmony_ci#define OV0_LIN_TRANS_A 0x0D20 2718c2ecf20Sopenharmony_ci#define OV0_LIN_TRANS_B 0x0D24 2728c2ecf20Sopenharmony_ci#define OV0_LIN_TRANS_C 0x0D28 2738c2ecf20Sopenharmony_ci#define OV0_LIN_TRANS_D 0x0D2C 2748c2ecf20Sopenharmony_ci#define OV0_LIN_TRANS_E 0x0D30 2758c2ecf20Sopenharmony_ci#define OV0_LIN_TRANS_F 0x0D34 2768c2ecf20Sopenharmony_ci#define OV0_GAMMA_0_F 0x0D40 2778c2ecf20Sopenharmony_ci#define OV0_GAMMA_10_1F 0x0D44 2788c2ecf20Sopenharmony_ci#define OV0_GAMMA_20_3F 0x0D48 2798c2ecf20Sopenharmony_ci#define OV0_GAMMA_40_7F 0x0D4C 2808c2ecf20Sopenharmony_ci#define OV0_GAMMA_380_3BF 0x0D50 2818c2ecf20Sopenharmony_ci#define OV0_GAMMA_3C0_3FF 0x0D54 2828c2ecf20Sopenharmony_ci#define DISP_MERGE_CNTL 0x0D60 2838c2ecf20Sopenharmony_ci#define DISP_OUTPUT_CNTL 0x0D64 2848c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_A 0x0D80 2858c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_B 0x0D84 2868c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_C 0x0D88 2878c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_D 0x0D8C 2888c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_E 0x0D90 2898c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_GRPH_F 0x0D94 2908c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_VID_A 0x0D98 2918c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_VID_B 0x0D9C 2928c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_VID_C 0x0DA0 2938c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_VID_D 0x0DA4 2948c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_VID_E 0x0DA8 2958c2ecf20Sopenharmony_ci#define DISP_LIN_TRANS_VID_F 0x0DAC 2968c2ecf20Sopenharmony_ci#define RMX_HORZ_FILTER_0TAP_COEF 0x0DB0 2978c2ecf20Sopenharmony_ci#define RMX_HORZ_FILTER_1TAP_COEF 0x0DB4 2988c2ecf20Sopenharmony_ci#define RMX_HORZ_FILTER_2TAP_COEF 0x0DB8 2998c2ecf20Sopenharmony_ci#define RMX_HORZ_PHASE 0x0DBC 3008c2ecf20Sopenharmony_ci#define DAC_EMBEDDED_SYNC_CNTL 0x0DC0 3018c2ecf20Sopenharmony_ci#define DAC_BROAD_PULSE 0x0DC4 3028c2ecf20Sopenharmony_ci#define DAC_SKEW_CLKS 0x0DC8 3038c2ecf20Sopenharmony_ci#define DAC_INCR 0x0DCC 3048c2ecf20Sopenharmony_ci#define DAC_NEG_SYNC_LEVEL 0x0DD0 3058c2ecf20Sopenharmony_ci#define DAC_POS_SYNC_LEVEL 0x0DD4 3068c2ecf20Sopenharmony_ci#define DAC_BLANK_LEVEL 0x0DD8 3078c2ecf20Sopenharmony_ci#define CLOCK_CNTL_INDEX 0x0008 3088c2ecf20Sopenharmony_ci#define CLOCK_CNTL_DATA 0x000C 3098c2ecf20Sopenharmony_ci#define CP_RB_CNTL 0x0704 3108c2ecf20Sopenharmony_ci#define CP_RB_BASE 0x0700 3118c2ecf20Sopenharmony_ci#define CP_RB_RPTR_ADDR 0x070C 3128c2ecf20Sopenharmony_ci#define CP_RB_RPTR 0x0710 3138c2ecf20Sopenharmony_ci#define CP_RB_WPTR 0x0714 3148c2ecf20Sopenharmony_ci#define CP_RB_WPTR_DELAY 0x0718 3158c2ecf20Sopenharmony_ci#define CP_IB_BASE 0x0738 3168c2ecf20Sopenharmony_ci#define CP_IB_BUFSZ 0x073C 3178c2ecf20Sopenharmony_ci#define SCRATCH_REG0 0x15E0 3188c2ecf20Sopenharmony_ci#define GUI_SCRATCH_REG0 0x15E0 3198c2ecf20Sopenharmony_ci#define SCRATCH_REG1 0x15E4 3208c2ecf20Sopenharmony_ci#define GUI_SCRATCH_REG1 0x15E4 3218c2ecf20Sopenharmony_ci#define SCRATCH_REG2 0x15E8 3228c2ecf20Sopenharmony_ci#define GUI_SCRATCH_REG2 0x15E8 3238c2ecf20Sopenharmony_ci#define SCRATCH_REG3 0x15EC 3248c2ecf20Sopenharmony_ci#define GUI_SCRATCH_REG3 0x15EC 3258c2ecf20Sopenharmony_ci#define SCRATCH_REG4 0x15F0 3268c2ecf20Sopenharmony_ci#define GUI_SCRATCH_REG4 0x15F0 3278c2ecf20Sopenharmony_ci#define SCRATCH_REG5 0x15F4 3288c2ecf20Sopenharmony_ci#define GUI_SCRATCH_REG5 0x15F4 3298c2ecf20Sopenharmony_ci#define SCRATCH_UMSK 0x0770 3308c2ecf20Sopenharmony_ci#define SCRATCH_ADDR 0x0774 3318c2ecf20Sopenharmony_ci#define DP_BRUSH_FRGD_CLR 0x147C 3328c2ecf20Sopenharmony_ci#define DP_BRUSH_BKGD_CLR 0x1478 3338c2ecf20Sopenharmony_ci#define DST_LINE_START 0x1600 3348c2ecf20Sopenharmony_ci#define DST_LINE_END 0x1604 3358c2ecf20Sopenharmony_ci#define SRC_OFFSET 0x15AC 3368c2ecf20Sopenharmony_ci#define SRC_PITCH 0x15B0 3378c2ecf20Sopenharmony_ci#define SRC_TILE 0x1704 3388c2ecf20Sopenharmony_ci#define SRC_PITCH_OFFSET 0x1428 3398c2ecf20Sopenharmony_ci#define SRC_X 0x1414 3408c2ecf20Sopenharmony_ci#define SRC_Y 0x1418 3418c2ecf20Sopenharmony_ci#define SRC_X_Y 0x1590 3428c2ecf20Sopenharmony_ci#define SRC_Y_X 0x1434 3438c2ecf20Sopenharmony_ci#define DST_Y_X 0x1438 3448c2ecf20Sopenharmony_ci#define DST_WIDTH_HEIGHT 0x1598 3458c2ecf20Sopenharmony_ci#define DST_HEIGHT_WIDTH 0x143c 3468c2ecf20Sopenharmony_ci#define DST_OFFSET 0x1404 3478c2ecf20Sopenharmony_ci#define SRC_CLUT_ADDRESS 0x1780 3488c2ecf20Sopenharmony_ci#define SRC_CLUT_DATA 0x1784 3498c2ecf20Sopenharmony_ci#define SRC_CLUT_DATA_RD 0x1788 3508c2ecf20Sopenharmony_ci#define HOST_DATA0 0x17C0 3518c2ecf20Sopenharmony_ci#define HOST_DATA1 0x17C4 3528c2ecf20Sopenharmony_ci#define HOST_DATA2 0x17C8 3538c2ecf20Sopenharmony_ci#define HOST_DATA3 0x17CC 3548c2ecf20Sopenharmony_ci#define HOST_DATA4 0x17D0 3558c2ecf20Sopenharmony_ci#define HOST_DATA5 0x17D4 3568c2ecf20Sopenharmony_ci#define HOST_DATA6 0x17D8 3578c2ecf20Sopenharmony_ci#define HOST_DATA7 0x17DC 3588c2ecf20Sopenharmony_ci#define HOST_DATA_LAST 0x17E0 3598c2ecf20Sopenharmony_ci#define DP_SRC_ENDIAN 0x15D4 3608c2ecf20Sopenharmony_ci#define DP_SRC_FRGD_CLR 0x15D8 3618c2ecf20Sopenharmony_ci#define DP_SRC_BKGD_CLR 0x15DC 3628c2ecf20Sopenharmony_ci#define SC_LEFT 0x1640 3638c2ecf20Sopenharmony_ci#define SC_RIGHT 0x1644 3648c2ecf20Sopenharmony_ci#define SC_TOP 0x1648 3658c2ecf20Sopenharmony_ci#define SC_BOTTOM 0x164C 3668c2ecf20Sopenharmony_ci#define SRC_SC_RIGHT 0x1654 3678c2ecf20Sopenharmony_ci#define SRC_SC_BOTTOM 0x165C 3688c2ecf20Sopenharmony_ci#define DP_CNTL 0x16C0 3698c2ecf20Sopenharmony_ci#define DP_CNTL_XDIR_YDIR_YMAJOR 0x16D0 3708c2ecf20Sopenharmony_ci#define DP_DATATYPE 0x16C4 3718c2ecf20Sopenharmony_ci#define DP_MIX 0x16C8 3728c2ecf20Sopenharmony_ci#define DP_WRITE_MSK 0x16CC 3738c2ecf20Sopenharmony_ci#define DP_XOP 0x17F8 3748c2ecf20Sopenharmony_ci#define CLR_CMP_CLR_SRC 0x15C4 3758c2ecf20Sopenharmony_ci#define CLR_CMP_CLR_DST 0x15C8 3768c2ecf20Sopenharmony_ci#define CLR_CMP_CNTL 0x15C0 3778c2ecf20Sopenharmony_ci#define CLR_CMP_MSK 0x15CC 3788c2ecf20Sopenharmony_ci#define DSTCACHE_MODE 0x1710 3798c2ecf20Sopenharmony_ci#define DSTCACHE_CTLSTAT 0x1714 3808c2ecf20Sopenharmony_ci#define DEFAULT_PITCH_OFFSET 0x16E0 3818c2ecf20Sopenharmony_ci#define DEFAULT_SC_BOTTOM_RIGHT 0x16E8 3828c2ecf20Sopenharmony_ci#define DEFAULT_SC_TOP_LEFT 0x16EC 3838c2ecf20Sopenharmony_ci#define SRC_PITCH_OFFSET 0x1428 3848c2ecf20Sopenharmony_ci#define DST_PITCH_OFFSET 0x142C 3858c2ecf20Sopenharmony_ci#define DP_GUI_MASTER_CNTL 0x146C 3868c2ecf20Sopenharmony_ci#define SC_TOP_LEFT 0x16EC 3878c2ecf20Sopenharmony_ci#define SC_BOTTOM_RIGHT 0x16F0 3888c2ecf20Sopenharmony_ci#define SRC_SC_BOTTOM_RIGHT 0x16F4 3898c2ecf20Sopenharmony_ci#define RB2D_DSTCACHE_MODE 0x3428 3908c2ecf20Sopenharmony_ci#define RB2D_DSTCACHE_CTLSTAT_broken 0x342C /* do not use */ 3918c2ecf20Sopenharmony_ci#define LVDS_GEN_CNTL 0x02d0 3928c2ecf20Sopenharmony_ci#define LVDS_PLL_CNTL 0x02d4 3938c2ecf20Sopenharmony_ci#define FP2_GEN_CNTL 0x0288 3948c2ecf20Sopenharmony_ci#define TMDS_CNTL 0x0294 3958c2ecf20Sopenharmony_ci#define TMDS_CRC 0x02a0 3968c2ecf20Sopenharmony_ci#define TMDS_TRANSMITTER_CNTL 0x02a4 3978c2ecf20Sopenharmony_ci#define MPP_TB_CONFIG 0x01c0 3988c2ecf20Sopenharmony_ci#define PAMAC0_DLY_CNTL 0x0a94 3998c2ecf20Sopenharmony_ci#define PAMAC1_DLY_CNTL 0x0a98 4008c2ecf20Sopenharmony_ci#define PAMAC2_DLY_CNTL 0x0a9c 4018c2ecf20Sopenharmony_ci#define FW_CNTL 0x0118 4028c2ecf20Sopenharmony_ci#define FCP_CNTL 0x0910 4038c2ecf20Sopenharmony_ci#define VGA_DDA_ON_OFF 0x02ec 4048c2ecf20Sopenharmony_ci#define TV_MASTER_CNTL 0x0800 4058c2ecf20Sopenharmony_ci 4068c2ecf20Sopenharmony_ci//#define BASE_CODE 0x0f0b 4078c2ecf20Sopenharmony_ci#define BIOS_0_SCRATCH 0x0010 4088c2ecf20Sopenharmony_ci#define BIOS_1_SCRATCH 0x0014 4098c2ecf20Sopenharmony_ci#define BIOS_2_SCRATCH 0x0018 4108c2ecf20Sopenharmony_ci#define BIOS_3_SCRATCH 0x001c 4118c2ecf20Sopenharmony_ci#define BIOS_4_SCRATCH 0x0020 4128c2ecf20Sopenharmony_ci#define BIOS_5_SCRATCH 0x0024 4138c2ecf20Sopenharmony_ci#define BIOS_6_SCRATCH 0x0028 4148c2ecf20Sopenharmony_ci#define BIOS_7_SCRATCH 0x002c 4158c2ecf20Sopenharmony_ci 4168c2ecf20Sopenharmony_ci#define HDP_SOFT_RESET (1 << 26) 4178c2ecf20Sopenharmony_ci 4188c2ecf20Sopenharmony_ci#define TV_DAC_CNTL 0x088c 4198c2ecf20Sopenharmony_ci#define GPIOPAD_MASK 0x0198 4208c2ecf20Sopenharmony_ci#define GPIOPAD_A 0x019c 4218c2ecf20Sopenharmony_ci#define GPIOPAD_EN 0x01a0 4228c2ecf20Sopenharmony_ci#define GPIOPAD_Y 0x01a4 4238c2ecf20Sopenharmony_ci#define ZV_LCDPAD_MASK 0x01a8 4248c2ecf20Sopenharmony_ci#define ZV_LCDPAD_A 0x01ac 4258c2ecf20Sopenharmony_ci#define ZV_LCDPAD_EN 0x01b0 4268c2ecf20Sopenharmony_ci#define ZV_LCDPAD_Y 0x01b4 4278c2ecf20Sopenharmony_ci 4288c2ecf20Sopenharmony_ci/* PLL Registers */ 4298c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL 0x0001 4308c2ecf20Sopenharmony_ci#define PPLL_CNTL 0x0002 4318c2ecf20Sopenharmony_ci#define PPLL_REF_DIV 0x0003 4328c2ecf20Sopenharmony_ci#define PPLL_DIV_0 0x0004 4338c2ecf20Sopenharmony_ci#define PPLL_DIV_1 0x0005 4348c2ecf20Sopenharmony_ci#define PPLL_DIV_2 0x0006 4358c2ecf20Sopenharmony_ci#define PPLL_DIV_3 0x0007 4368c2ecf20Sopenharmony_ci#define VCLK_ECP_CNTL 0x0008 4378c2ecf20Sopenharmony_ci#define HTOTAL_CNTL 0x0009 4388c2ecf20Sopenharmony_ci#define M_SPLL_REF_FB_DIV 0x000a 4398c2ecf20Sopenharmony_ci#define AGP_PLL_CNTL 0x000b 4408c2ecf20Sopenharmony_ci#define SPLL_CNTL 0x000c 4418c2ecf20Sopenharmony_ci#define SCLK_CNTL 0x000d 4428c2ecf20Sopenharmony_ci#define MPLL_CNTL 0x000e 4438c2ecf20Sopenharmony_ci#define MDLL_CKO 0x000f 4448c2ecf20Sopenharmony_ci#define MDLL_RDCKA 0x0010 4458c2ecf20Sopenharmony_ci#define MCLK_CNTL 0x0012 4468c2ecf20Sopenharmony_ci#define AGP_PLL_CNTL 0x000b 4478c2ecf20Sopenharmony_ci#define PLL_TEST_CNTL 0x0013 4488c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL 0x0014 4498c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL 0x0015 4508c2ecf20Sopenharmony_ci#define MCLK_MISC 0x001f 4518c2ecf20Sopenharmony_ci#define P2PLL_CNTL 0x002a 4528c2ecf20Sopenharmony_ci#define P2PLL_REF_DIV 0x002b 4538c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL 0x002d 4548c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL 0x0035 4558c2ecf20Sopenharmony_ci 4568c2ecf20Sopenharmony_ci/* MCLK_CNTL bit constants */ 4578c2ecf20Sopenharmony_ci#define FORCEON_MCLKA (1 << 16) 4588c2ecf20Sopenharmony_ci#define FORCEON_MCLKB (1 << 17) 4598c2ecf20Sopenharmony_ci#define FORCEON_YCLKA (1 << 18) 4608c2ecf20Sopenharmony_ci#define FORCEON_YCLKB (1 << 19) 4618c2ecf20Sopenharmony_ci#define FORCEON_MC (1 << 20) 4628c2ecf20Sopenharmony_ci#define FORCEON_AIC (1 << 21) 4638c2ecf20Sopenharmony_ci 4648c2ecf20Sopenharmony_ci/* SCLK_CNTL bit constants */ 4658c2ecf20Sopenharmony_ci#define DYN_STOP_LAT_MASK 0x00007ff8 4668c2ecf20Sopenharmony_ci#define CP_MAX_DYN_STOP_LAT 0x0008 4678c2ecf20Sopenharmony_ci#define SCLK_FORCEON_MASK 0xffff8000 4688c2ecf20Sopenharmony_ci 4698c2ecf20Sopenharmony_ci/* SCLK_MORE_CNTL bit constants */ 4708c2ecf20Sopenharmony_ci#define SCLK_MORE_FORCEON 0x0700 4718c2ecf20Sopenharmony_ci 4728c2ecf20Sopenharmony_ci/* BUS_CNTL bit constants */ 4738c2ecf20Sopenharmony_ci#define BUS_DBL_RESYNC 0x00000001 4748c2ecf20Sopenharmony_ci#define BUS_MSTR_RESET 0x00000002 4758c2ecf20Sopenharmony_ci#define BUS_FLUSH_BUF 0x00000004 4768c2ecf20Sopenharmony_ci#define BUS_STOP_REQ_DIS 0x00000008 4778c2ecf20Sopenharmony_ci#define BUS_ROTATION_DIS 0x00000010 4788c2ecf20Sopenharmony_ci#define BUS_MASTER_DIS 0x00000040 4798c2ecf20Sopenharmony_ci#define BUS_ROM_WRT_EN 0x00000080 4808c2ecf20Sopenharmony_ci#define BUS_DIS_ROM 0x00001000 4818c2ecf20Sopenharmony_ci#define BUS_PCI_READ_RETRY_EN 0x00002000 4828c2ecf20Sopenharmony_ci#define BUS_AGP_AD_STEPPING_EN 0x00004000 4838c2ecf20Sopenharmony_ci#define BUS_PCI_WRT_RETRY_EN 0x00008000 4848c2ecf20Sopenharmony_ci#define BUS_MSTR_RD_MULT 0x00100000 4858c2ecf20Sopenharmony_ci#define BUS_MSTR_RD_LINE 0x00200000 4868c2ecf20Sopenharmony_ci#define BUS_SUSPEND 0x00400000 4878c2ecf20Sopenharmony_ci#define LAT_16X 0x00800000 4888c2ecf20Sopenharmony_ci#define BUS_RD_DISCARD_EN 0x01000000 4898c2ecf20Sopenharmony_ci#define BUS_RD_ABORT_EN 0x02000000 4908c2ecf20Sopenharmony_ci#define BUS_MSTR_WS 0x04000000 4918c2ecf20Sopenharmony_ci#define BUS_PARKING_DIS 0x08000000 4928c2ecf20Sopenharmony_ci#define BUS_MSTR_DISCONNECT_EN 0x10000000 4938c2ecf20Sopenharmony_ci#define BUS_WRT_BURST 0x20000000 4948c2ecf20Sopenharmony_ci#define BUS_READ_BURST 0x40000000 4958c2ecf20Sopenharmony_ci#define BUS_RDY_READ_DLY 0x80000000 4968c2ecf20Sopenharmony_ci 4978c2ecf20Sopenharmony_ci/* PIXCLKS_CNTL */ 4988c2ecf20Sopenharmony_ci#define PIX2CLK_SRC_SEL_MASK 0x03 4998c2ecf20Sopenharmony_ci#define PIX2CLK_SRC_SEL_CPUCLK 0x00 5008c2ecf20Sopenharmony_ci#define PIX2CLK_SRC_SEL_PSCANCLK 0x01 5018c2ecf20Sopenharmony_ci#define PIX2CLK_SRC_SEL_BYTECLK 0x02 5028c2ecf20Sopenharmony_ci#define PIX2CLK_SRC_SEL_P2PLLCLK 0x03 5038c2ecf20Sopenharmony_ci#define PIX2CLK_ALWAYS_ONb (1<<6) 5048c2ecf20Sopenharmony_ci#define PIX2CLK_DAC_ALWAYS_ONb (1<<7) 5058c2ecf20Sopenharmony_ci#define PIXCLK_TV_SRC_SEL (1 << 8) 5068c2ecf20Sopenharmony_ci#define PIXCLK_LVDS_ALWAYS_ONb (1 << 14) 5078c2ecf20Sopenharmony_ci#define PIXCLK_TMDS_ALWAYS_ONb (1 << 15) 5088c2ecf20Sopenharmony_ci 5098c2ecf20Sopenharmony_ci 5108c2ecf20Sopenharmony_ci/* CLOCK_CNTL_INDEX bit constants */ 5118c2ecf20Sopenharmony_ci#define PLL_WR_EN 0x00000080 5128c2ecf20Sopenharmony_ci 5138c2ecf20Sopenharmony_ci/* CNFG_CNTL bit constants */ 5148c2ecf20Sopenharmony_ci#define CFG_VGA_RAM_EN 0x00000100 5158c2ecf20Sopenharmony_ci#define CFG_ATI_REV_ID_MASK (0xf << 16) 5168c2ecf20Sopenharmony_ci#define CFG_ATI_REV_A11 (0 << 16) 5178c2ecf20Sopenharmony_ci#define CFG_ATI_REV_A12 (1 << 16) 5188c2ecf20Sopenharmony_ci#define CFG_ATI_REV_A13 (2 << 16) 5198c2ecf20Sopenharmony_ci 5208c2ecf20Sopenharmony_ci/* CRTC_EXT_CNTL bit constants */ 5218c2ecf20Sopenharmony_ci#define VGA_ATI_LINEAR 0x00000008 5228c2ecf20Sopenharmony_ci#define VGA_128KAP_PAGING 0x00000010 5238c2ecf20Sopenharmony_ci#define XCRT_CNT_EN (1 << 6) 5248c2ecf20Sopenharmony_ci#define CRTC_HSYNC_DIS (1 << 8) 5258c2ecf20Sopenharmony_ci#define CRTC_VSYNC_DIS (1 << 9) 5268c2ecf20Sopenharmony_ci#define CRTC_DISPLAY_DIS (1 << 10) 5278c2ecf20Sopenharmony_ci#define CRTC_CRT_ON (1 << 15) 5288c2ecf20Sopenharmony_ci 5298c2ecf20Sopenharmony_ci 5308c2ecf20Sopenharmony_ci/* DSTCACHE_CTLSTAT bit constants */ 5318c2ecf20Sopenharmony_ci#define RB2D_DC_FLUSH_2D (1 << 0) 5328c2ecf20Sopenharmony_ci#define RB2D_DC_FREE_2D (1 << 2) 5338c2ecf20Sopenharmony_ci#define RB2D_DC_FLUSH_ALL (RB2D_DC_FLUSH_2D | RB2D_DC_FREE_2D) 5348c2ecf20Sopenharmony_ci#define RB2D_DC_BUSY (1 << 31) 5358c2ecf20Sopenharmony_ci 5368c2ecf20Sopenharmony_ci/* DSTCACHE_MODE bits constants */ 5378c2ecf20Sopenharmony_ci#define RB2D_DC_AUTOFLUSH_ENABLE (1 << 8) 5388c2ecf20Sopenharmony_ci#define RB2D_DC_DC_DISABLE_IGNORE_PE (1 << 17) 5398c2ecf20Sopenharmony_ci 5408c2ecf20Sopenharmony_ci/* CRTC_GEN_CNTL bit constants */ 5418c2ecf20Sopenharmony_ci#define CRTC_DBL_SCAN_EN 0x00000001 5428c2ecf20Sopenharmony_ci#define CRTC_CUR_EN 0x00010000 5438c2ecf20Sopenharmony_ci#define CRTC_INTERLACE_EN (1 << 1) 5448c2ecf20Sopenharmony_ci#define CRTC_BYPASS_LUT_EN (1 << 14) 5458c2ecf20Sopenharmony_ci#define CRTC_EXT_DISP_EN (1 << 24) 5468c2ecf20Sopenharmony_ci#define CRTC_EN (1 << 25) 5478c2ecf20Sopenharmony_ci#define CRTC_DISP_REQ_EN_B (1 << 26) 5488c2ecf20Sopenharmony_ci 5498c2ecf20Sopenharmony_ci/* CRTC_STATUS bit constants */ 5508c2ecf20Sopenharmony_ci#define CRTC_VBLANK 0x00000001 5518c2ecf20Sopenharmony_ci 5528c2ecf20Sopenharmony_ci/* CRTC2_GEN_CNTL bit constants */ 5538c2ecf20Sopenharmony_ci#define CRT2_ON (1 << 7) 5548c2ecf20Sopenharmony_ci#define CRTC2_DISPLAY_DIS (1 << 23) 5558c2ecf20Sopenharmony_ci#define CRTC2_EN (1 << 25) 5568c2ecf20Sopenharmony_ci#define CRTC2_DISP_REQ_EN_B (1 << 26) 5578c2ecf20Sopenharmony_ci 5588c2ecf20Sopenharmony_ci/* CUR_OFFSET, CUR_HORZ_VERT_POSN, CUR_HORZ_VERT_OFF bit constants */ 5598c2ecf20Sopenharmony_ci#define CUR_LOCK 0x80000000 5608c2ecf20Sopenharmony_ci 5618c2ecf20Sopenharmony_ci/* GPIO bit constants */ 5628c2ecf20Sopenharmony_ci#define GPIO_A_0 (1 << 0) 5638c2ecf20Sopenharmony_ci#define GPIO_A_1 (1 << 1) 5648c2ecf20Sopenharmony_ci#define GPIO_Y_0 (1 << 8) 5658c2ecf20Sopenharmony_ci#define GPIO_Y_1 (1 << 9) 5668c2ecf20Sopenharmony_ci#define GPIO_EN_0 (1 << 16) 5678c2ecf20Sopenharmony_ci#define GPIO_EN_1 (1 << 17) 5688c2ecf20Sopenharmony_ci#define GPIO_MASK_0 (1 << 24) 5698c2ecf20Sopenharmony_ci#define GPIO_MASK_1 (1 << 25) 5708c2ecf20Sopenharmony_ci#define VGA_DDC_DATA_OUTPUT GPIO_A_0 5718c2ecf20Sopenharmony_ci#define VGA_DDC_CLK_OUTPUT GPIO_A_1 5728c2ecf20Sopenharmony_ci#define VGA_DDC_DATA_INPUT GPIO_Y_0 5738c2ecf20Sopenharmony_ci#define VGA_DDC_CLK_INPUT GPIO_Y_1 5748c2ecf20Sopenharmony_ci#define VGA_DDC_DATA_OUT_EN GPIO_EN_0 5758c2ecf20Sopenharmony_ci#define VGA_DDC_CLK_OUT_EN GPIO_EN_1 5768c2ecf20Sopenharmony_ci 5778c2ecf20Sopenharmony_ci 5788c2ecf20Sopenharmony_ci/* FP bit constants */ 5798c2ecf20Sopenharmony_ci#define FP_CRTC_H_TOTAL_MASK 0x000003ff 5808c2ecf20Sopenharmony_ci#define FP_CRTC_H_DISP_MASK 0x01ff0000 5818c2ecf20Sopenharmony_ci#define FP_CRTC_V_TOTAL_MASK 0x00000fff 5828c2ecf20Sopenharmony_ci#define FP_CRTC_V_DISP_MASK 0x0fff0000 5838c2ecf20Sopenharmony_ci#define FP_H_SYNC_STRT_CHAR_MASK 0x00001ff8 5848c2ecf20Sopenharmony_ci#define FP_H_SYNC_WID_MASK 0x003f0000 5858c2ecf20Sopenharmony_ci#define FP_V_SYNC_STRT_MASK 0x00000fff 5868c2ecf20Sopenharmony_ci#define FP_V_SYNC_WID_MASK 0x001f0000 5878c2ecf20Sopenharmony_ci#define FP_CRTC_H_TOTAL_SHIFT 0x00000000 5888c2ecf20Sopenharmony_ci#define FP_CRTC_H_DISP_SHIFT 0x00000010 5898c2ecf20Sopenharmony_ci#define FP_CRTC_V_TOTAL_SHIFT 0x00000000 5908c2ecf20Sopenharmony_ci#define FP_CRTC_V_DISP_SHIFT 0x00000010 5918c2ecf20Sopenharmony_ci#define FP_H_SYNC_STRT_CHAR_SHIFT 0x00000003 5928c2ecf20Sopenharmony_ci#define FP_H_SYNC_WID_SHIFT 0x00000010 5938c2ecf20Sopenharmony_ci#define FP_V_SYNC_STRT_SHIFT 0x00000000 5948c2ecf20Sopenharmony_ci#define FP_V_SYNC_WID_SHIFT 0x00000010 5958c2ecf20Sopenharmony_ci 5968c2ecf20Sopenharmony_ci/* FP_GEN_CNTL bit constants */ 5978c2ecf20Sopenharmony_ci#define FP_FPON (1 << 0) 5988c2ecf20Sopenharmony_ci#define FP_TMDS_EN (1 << 2) 5998c2ecf20Sopenharmony_ci#define FP_PANEL_FORMAT (1 << 3) 6008c2ecf20Sopenharmony_ci#define FP_EN_TMDS (1 << 7) 6018c2ecf20Sopenharmony_ci#define FP_DETECT_SENSE (1 << 8) 6028c2ecf20Sopenharmony_ci#define R200_FP_SOURCE_SEL_MASK (3 << 10) 6038c2ecf20Sopenharmony_ci#define R200_FP_SOURCE_SEL_CRTC1 (0 << 10) 6048c2ecf20Sopenharmony_ci#define R200_FP_SOURCE_SEL_CRTC2 (1 << 10) 6058c2ecf20Sopenharmony_ci#define R200_FP_SOURCE_SEL_RMX (2 << 10) 6068c2ecf20Sopenharmony_ci#define R200_FP_SOURCE_SEL_TRANS (3 << 10) 6078c2ecf20Sopenharmony_ci#define FP_SEL_CRTC1 (0 << 13) 6088c2ecf20Sopenharmony_ci#define FP_SEL_CRTC2 (1 << 13) 6098c2ecf20Sopenharmony_ci#define FP_USE_VGA_HSYNC (1 << 14) 6108c2ecf20Sopenharmony_ci#define FP_CRTC_DONT_SHADOW_HPAR (1 << 15) 6118c2ecf20Sopenharmony_ci#define FP_CRTC_DONT_SHADOW_VPAR (1 << 16) 6128c2ecf20Sopenharmony_ci#define FP_CRTC_DONT_SHADOW_HEND (1 << 17) 6138c2ecf20Sopenharmony_ci#define FP_CRTC_USE_SHADOW_VEND (1 << 18) 6148c2ecf20Sopenharmony_ci#define FP_RMX_HVSYNC_CONTROL_EN (1 << 20) 6158c2ecf20Sopenharmony_ci#define FP_DFP_SYNC_SEL (1 << 21) 6168c2ecf20Sopenharmony_ci#define FP_CRTC_LOCK_8DOT (1 << 22) 6178c2ecf20Sopenharmony_ci#define FP_CRT_SYNC_SEL (1 << 23) 6188c2ecf20Sopenharmony_ci#define FP_USE_SHADOW_EN (1 << 24) 6198c2ecf20Sopenharmony_ci#define FP_CRT_SYNC_ALT (1 << 26) 6208c2ecf20Sopenharmony_ci 6218c2ecf20Sopenharmony_ci/* FP2_GEN_CNTL bit constants */ 6228c2ecf20Sopenharmony_ci#define FP2_BLANK_EN (1 << 1) 6238c2ecf20Sopenharmony_ci#define FP2_ON (1 << 2) 6248c2ecf20Sopenharmony_ci#define FP2_PANEL_FORMAT (1 << 3) 6258c2ecf20Sopenharmony_ci#define FP2_SOURCE_SEL_MASK (3 << 10) 6268c2ecf20Sopenharmony_ci#define FP2_SOURCE_SEL_CRTC2 (1 << 10) 6278c2ecf20Sopenharmony_ci#define FP2_SRC_SEL_MASK (3 << 13) 6288c2ecf20Sopenharmony_ci#define FP2_SRC_SEL_CRTC2 (1 << 13) 6298c2ecf20Sopenharmony_ci#define FP2_FP_POL (1 << 16) 6308c2ecf20Sopenharmony_ci#define FP2_LP_POL (1 << 17) 6318c2ecf20Sopenharmony_ci#define FP2_SCK_POL (1 << 18) 6328c2ecf20Sopenharmony_ci#define FP2_LCD_CNTL_MASK (7 << 19) 6338c2ecf20Sopenharmony_ci#define FP2_PAD_FLOP_EN (1 << 22) 6348c2ecf20Sopenharmony_ci#define FP2_CRC_EN (1 << 23) 6358c2ecf20Sopenharmony_ci#define FP2_CRC_READ_EN (1 << 24) 6368c2ecf20Sopenharmony_ci#define FP2_DV0_EN (1 << 25) 6378c2ecf20Sopenharmony_ci#define FP2_DV0_RATE_SEL_SDR (1 << 26) 6388c2ecf20Sopenharmony_ci 6398c2ecf20Sopenharmony_ci 6408c2ecf20Sopenharmony_ci/* LVDS_GEN_CNTL bit constants */ 6418c2ecf20Sopenharmony_ci#define LVDS_ON (1 << 0) 6428c2ecf20Sopenharmony_ci#define LVDS_DISPLAY_DIS (1 << 1) 6438c2ecf20Sopenharmony_ci#define LVDS_PANEL_TYPE (1 << 2) 6448c2ecf20Sopenharmony_ci#define LVDS_PANEL_FORMAT (1 << 3) 6458c2ecf20Sopenharmony_ci#define LVDS_EN (1 << 7) 6468c2ecf20Sopenharmony_ci#define LVDS_BL_MOD_LEVEL_MASK 0x0000ff00 6478c2ecf20Sopenharmony_ci#define LVDS_BL_MOD_LEVEL_SHIFT 8 6488c2ecf20Sopenharmony_ci#define LVDS_BL_MOD_EN (1 << 16) 6498c2ecf20Sopenharmony_ci#define LVDS_DIGON (1 << 18) 6508c2ecf20Sopenharmony_ci#define LVDS_BLON (1 << 19) 6518c2ecf20Sopenharmony_ci#define LVDS_SEL_CRTC2 (1 << 23) 6528c2ecf20Sopenharmony_ci#define LVDS_STATE_MASK \ 6538c2ecf20Sopenharmony_ci (LVDS_ON | LVDS_DISPLAY_DIS | LVDS_BL_MOD_LEVEL_MASK | LVDS_BLON) 6548c2ecf20Sopenharmony_ci 6558c2ecf20Sopenharmony_ci/* LVDS_PLL_CNTL bit constatns */ 6568c2ecf20Sopenharmony_ci#define HSYNC_DELAY_SHIFT 0x1c 6578c2ecf20Sopenharmony_ci#define HSYNC_DELAY_MASK (0xf << 0x1c) 6588c2ecf20Sopenharmony_ci 6598c2ecf20Sopenharmony_ci/* TMDS_TRANSMITTER_CNTL bit constants */ 6608c2ecf20Sopenharmony_ci#define TMDS_PLL_EN (1 << 0) 6618c2ecf20Sopenharmony_ci#define TMDS_PLLRST (1 << 1) 6628c2ecf20Sopenharmony_ci#define TMDS_RAN_PAT_RST (1 << 7) 6638c2ecf20Sopenharmony_ci#define TMDS_ICHCSEL (1 << 28) 6648c2ecf20Sopenharmony_ci 6658c2ecf20Sopenharmony_ci/* FP_HORZ_STRETCH bit constants */ 6668c2ecf20Sopenharmony_ci#define HORZ_STRETCH_RATIO_MASK 0xffff 6678c2ecf20Sopenharmony_ci#define HORZ_STRETCH_RATIO_MAX 4096 6688c2ecf20Sopenharmony_ci#define HORZ_PANEL_SIZE (0x1ff << 16) 6698c2ecf20Sopenharmony_ci#define HORZ_PANEL_SHIFT 16 6708c2ecf20Sopenharmony_ci#define HORZ_STRETCH_PIXREP (0 << 25) 6718c2ecf20Sopenharmony_ci#define HORZ_STRETCH_BLEND (1 << 26) 6728c2ecf20Sopenharmony_ci#define HORZ_STRETCH_ENABLE (1 << 25) 6738c2ecf20Sopenharmony_ci#define HORZ_AUTO_RATIO (1 << 27) 6748c2ecf20Sopenharmony_ci#define HORZ_FP_LOOP_STRETCH (0x7 << 28) 6758c2ecf20Sopenharmony_ci#define HORZ_AUTO_RATIO_INC (1 << 31) 6768c2ecf20Sopenharmony_ci 6778c2ecf20Sopenharmony_ci 6788c2ecf20Sopenharmony_ci/* FP_VERT_STRETCH bit constants */ 6798c2ecf20Sopenharmony_ci#define VERT_STRETCH_RATIO_MASK 0xfff 6808c2ecf20Sopenharmony_ci#define VERT_STRETCH_RATIO_MAX 4096 6818c2ecf20Sopenharmony_ci#define VERT_PANEL_SIZE (0xfff << 12) 6828c2ecf20Sopenharmony_ci#define VERT_PANEL_SHIFT 12 6838c2ecf20Sopenharmony_ci#define VERT_STRETCH_LINREP (0 << 26) 6848c2ecf20Sopenharmony_ci#define VERT_STRETCH_BLEND (1 << 26) 6858c2ecf20Sopenharmony_ci#define VERT_STRETCH_ENABLE (1 << 25) 6868c2ecf20Sopenharmony_ci#define VERT_AUTO_RATIO_EN (1 << 27) 6878c2ecf20Sopenharmony_ci#define VERT_FP_LOOP_STRETCH (0x7 << 28) 6888c2ecf20Sopenharmony_ci#define VERT_STRETCH_RESERVED 0xf1000000 6898c2ecf20Sopenharmony_ci 6908c2ecf20Sopenharmony_ci/* DAC_CNTL bit constants */ 6918c2ecf20Sopenharmony_ci#define DAC_8BIT_EN 0x00000100 6928c2ecf20Sopenharmony_ci#define DAC_4BPP_PIX_ORDER 0x00000200 6938c2ecf20Sopenharmony_ci#define DAC_CRC_EN 0x00080000 6948c2ecf20Sopenharmony_ci#define DAC_MASK_ALL (0xff << 24) 6958c2ecf20Sopenharmony_ci#define DAC_PDWN (1 << 15) 6968c2ecf20Sopenharmony_ci#define DAC_EXPAND_MODE (1 << 14) 6978c2ecf20Sopenharmony_ci#define DAC_VGA_ADR_EN (1 << 13) 6988c2ecf20Sopenharmony_ci#define DAC_RANGE_CNTL (3 << 0) 6998c2ecf20Sopenharmony_ci#define DAC_RANGE_CNTL_MASK 0x03 7008c2ecf20Sopenharmony_ci#define DAC_BLANKING (1 << 2) 7018c2ecf20Sopenharmony_ci#define DAC_CMP_EN (1 << 3) 7028c2ecf20Sopenharmony_ci#define DAC_CMP_OUTPUT (1 << 7) 7038c2ecf20Sopenharmony_ci 7048c2ecf20Sopenharmony_ci/* DAC_CNTL2 bit constants */ 7058c2ecf20Sopenharmony_ci#define DAC2_EXPAND_MODE (1 << 14) 7068c2ecf20Sopenharmony_ci#define DAC2_CMP_EN (1 << 7) 7078c2ecf20Sopenharmony_ci#define DAC2_PALETTE_ACCESS_CNTL (1 << 5) 7088c2ecf20Sopenharmony_ci 7098c2ecf20Sopenharmony_ci/* DAC_EXT_CNTL bit constants */ 7108c2ecf20Sopenharmony_ci#define DAC_FORCE_BLANK_OFF_EN (1 << 4) 7118c2ecf20Sopenharmony_ci#define DAC_FORCE_DATA_EN (1 << 5) 7128c2ecf20Sopenharmony_ci#define DAC_FORCE_DATA_SEL_MASK (3 << 6) 7138c2ecf20Sopenharmony_ci#define DAC_FORCE_DATA_MASK 0x0003ff00 7148c2ecf20Sopenharmony_ci#define DAC_FORCE_DATA_SHIFT 8 7158c2ecf20Sopenharmony_ci 7168c2ecf20Sopenharmony_ci/* GEN_RESET_CNTL bit constants */ 7178c2ecf20Sopenharmony_ci#define SOFT_RESET_GUI 0x00000001 7188c2ecf20Sopenharmony_ci#define SOFT_RESET_VCLK 0x00000100 7198c2ecf20Sopenharmony_ci#define SOFT_RESET_PCLK 0x00000200 7208c2ecf20Sopenharmony_ci#define SOFT_RESET_ECP 0x00000400 7218c2ecf20Sopenharmony_ci#define SOFT_RESET_DISPENG_XCLK 0x00000800 7228c2ecf20Sopenharmony_ci 7238c2ecf20Sopenharmony_ci/* MEM_CNTL bit constants */ 7248c2ecf20Sopenharmony_ci#define MEM_CTLR_STATUS_IDLE 0x00000000 7258c2ecf20Sopenharmony_ci#define MEM_CTLR_STATUS_BUSY 0x00100000 7268c2ecf20Sopenharmony_ci#define MEM_SEQNCR_STATUS_IDLE 0x00000000 7278c2ecf20Sopenharmony_ci#define MEM_SEQNCR_STATUS_BUSY 0x00200000 7288c2ecf20Sopenharmony_ci#define MEM_ARBITER_STATUS_IDLE 0x00000000 7298c2ecf20Sopenharmony_ci#define MEM_ARBITER_STATUS_BUSY 0x00400000 7308c2ecf20Sopenharmony_ci#define MEM_REQ_UNLOCK 0x00000000 7318c2ecf20Sopenharmony_ci#define MEM_REQ_LOCK 0x00800000 7328c2ecf20Sopenharmony_ci#define MEM_NUM_CHANNELS_MASK 0x00000001 7338c2ecf20Sopenharmony_ci#define MEM_USE_B_CH_ONLY 0x00000002 7348c2ecf20Sopenharmony_ci#define RV100_MEM_HALF_MODE 0x00000008 7358c2ecf20Sopenharmony_ci#define R300_MEM_NUM_CHANNELS_MASK 0x00000003 7368c2ecf20Sopenharmony_ci#define R300_MEM_USE_CD_CH_ONLY 0x00000004 7378c2ecf20Sopenharmony_ci 7388c2ecf20Sopenharmony_ci 7398c2ecf20Sopenharmony_ci/* RBBM_SOFT_RESET bit constants */ 7408c2ecf20Sopenharmony_ci#define SOFT_RESET_CP (1 << 0) 7418c2ecf20Sopenharmony_ci#define SOFT_RESET_HI (1 << 1) 7428c2ecf20Sopenharmony_ci#define SOFT_RESET_SE (1 << 2) 7438c2ecf20Sopenharmony_ci#define SOFT_RESET_RE (1 << 3) 7448c2ecf20Sopenharmony_ci#define SOFT_RESET_PP (1 << 4) 7458c2ecf20Sopenharmony_ci#define SOFT_RESET_E2 (1 << 5) 7468c2ecf20Sopenharmony_ci#define SOFT_RESET_RB (1 << 6) 7478c2ecf20Sopenharmony_ci#define SOFT_RESET_HDP (1 << 7) 7488c2ecf20Sopenharmony_ci 7498c2ecf20Sopenharmony_ci/* WAIT_UNTIL bit constants */ 7508c2ecf20Sopenharmony_ci#define WAIT_DMA_GUI_IDLE (1 << 9) 7518c2ecf20Sopenharmony_ci#define WAIT_2D_IDLECLEAN (1 << 16) 7528c2ecf20Sopenharmony_ci 7538c2ecf20Sopenharmony_ci/* SURFACE_CNTL bit consants */ 7548c2ecf20Sopenharmony_ci#define SURF_TRANSLATION_DIS (1 << 8) 7558c2ecf20Sopenharmony_ci#define NONSURF_AP0_SWP_16BPP (1 << 20) 7568c2ecf20Sopenharmony_ci#define NONSURF_AP0_SWP_32BPP (1 << 21) 7578c2ecf20Sopenharmony_ci#define NONSURF_AP1_SWP_16BPP (1 << 22) 7588c2ecf20Sopenharmony_ci#define NONSURF_AP1_SWP_32BPP (1 << 23) 7598c2ecf20Sopenharmony_ci 7608c2ecf20Sopenharmony_ci/* DEFAULT_SC_BOTTOM_RIGHT bit constants */ 7618c2ecf20Sopenharmony_ci#define DEFAULT_SC_RIGHT_MAX (0x1fff << 0) 7628c2ecf20Sopenharmony_ci#define DEFAULT_SC_BOTTOM_MAX (0x1fff << 16) 7638c2ecf20Sopenharmony_ci 7648c2ecf20Sopenharmony_ci/* MM_INDEX bit constants */ 7658c2ecf20Sopenharmony_ci#define MM_APER 0x80000000 7668c2ecf20Sopenharmony_ci 7678c2ecf20Sopenharmony_ci/* CLR_CMP_CNTL bit constants */ 7688c2ecf20Sopenharmony_ci#define COMPARE_SRC_FALSE 0x00000000 7698c2ecf20Sopenharmony_ci#define COMPARE_SRC_TRUE 0x00000001 7708c2ecf20Sopenharmony_ci#define COMPARE_SRC_NOT_EQUAL 0x00000004 7718c2ecf20Sopenharmony_ci#define COMPARE_SRC_EQUAL 0x00000005 7728c2ecf20Sopenharmony_ci#define COMPARE_SRC_EQUAL_FLIP 0x00000007 7738c2ecf20Sopenharmony_ci#define COMPARE_DST_FALSE 0x00000000 7748c2ecf20Sopenharmony_ci#define COMPARE_DST_TRUE 0x00000100 7758c2ecf20Sopenharmony_ci#define COMPARE_DST_NOT_EQUAL 0x00000400 7768c2ecf20Sopenharmony_ci#define COMPARE_DST_EQUAL 0x00000500 7778c2ecf20Sopenharmony_ci#define COMPARE_DESTINATION 0x00000000 7788c2ecf20Sopenharmony_ci#define COMPARE_SOURCE 0x01000000 7798c2ecf20Sopenharmony_ci#define COMPARE_SRC_AND_DST 0x02000000 7808c2ecf20Sopenharmony_ci 7818c2ecf20Sopenharmony_ci 7828c2ecf20Sopenharmony_ci/* DP_CNTL bit constants */ 7838c2ecf20Sopenharmony_ci#define DST_X_RIGHT_TO_LEFT 0x00000000 7848c2ecf20Sopenharmony_ci#define DST_X_LEFT_TO_RIGHT 0x00000001 7858c2ecf20Sopenharmony_ci#define DST_Y_BOTTOM_TO_TOP 0x00000000 7868c2ecf20Sopenharmony_ci#define DST_Y_TOP_TO_BOTTOM 0x00000002 7878c2ecf20Sopenharmony_ci#define DST_X_MAJOR 0x00000000 7888c2ecf20Sopenharmony_ci#define DST_Y_MAJOR 0x00000004 7898c2ecf20Sopenharmony_ci#define DST_X_TILE 0x00000008 7908c2ecf20Sopenharmony_ci#define DST_Y_TILE 0x00000010 7918c2ecf20Sopenharmony_ci#define DST_LAST_PEL 0x00000020 7928c2ecf20Sopenharmony_ci#define DST_TRAIL_X_RIGHT_TO_LEFT 0x00000000 7938c2ecf20Sopenharmony_ci#define DST_TRAIL_X_LEFT_TO_RIGHT 0x00000040 7948c2ecf20Sopenharmony_ci#define DST_TRAP_FILL_RIGHT_TO_LEFT 0x00000000 7958c2ecf20Sopenharmony_ci#define DST_TRAP_FILL_LEFT_TO_RIGHT 0x00000080 7968c2ecf20Sopenharmony_ci#define DST_BRES_SIGN 0x00000100 7978c2ecf20Sopenharmony_ci#define DST_HOST_BIG_ENDIAN_EN 0x00000200 7988c2ecf20Sopenharmony_ci#define DST_POLYLINE_NONLAST 0x00008000 7998c2ecf20Sopenharmony_ci#define DST_RASTER_STALL 0x00010000 8008c2ecf20Sopenharmony_ci#define DST_POLY_EDGE 0x00040000 8018c2ecf20Sopenharmony_ci 8028c2ecf20Sopenharmony_ci 8038c2ecf20Sopenharmony_ci/* DP_CNTL_YDIR_XDIR_YMAJOR bit constants (short version of DP_CNTL) */ 8048c2ecf20Sopenharmony_ci#define DST_X_MAJOR_S 0x00000000 8058c2ecf20Sopenharmony_ci#define DST_Y_MAJOR_S 0x00000001 8068c2ecf20Sopenharmony_ci#define DST_Y_BOTTOM_TO_TOP_S 0x00000000 8078c2ecf20Sopenharmony_ci#define DST_Y_TOP_TO_BOTTOM_S 0x00008000 8088c2ecf20Sopenharmony_ci#define DST_X_RIGHT_TO_LEFT_S 0x00000000 8098c2ecf20Sopenharmony_ci#define DST_X_LEFT_TO_RIGHT_S 0x80000000 8108c2ecf20Sopenharmony_ci 8118c2ecf20Sopenharmony_ci 8128c2ecf20Sopenharmony_ci/* DP_DATATYPE bit constants */ 8138c2ecf20Sopenharmony_ci#define DST_8BPP 0x00000002 8148c2ecf20Sopenharmony_ci#define DST_15BPP 0x00000003 8158c2ecf20Sopenharmony_ci#define DST_16BPP 0x00000004 8168c2ecf20Sopenharmony_ci#define DST_24BPP 0x00000005 8178c2ecf20Sopenharmony_ci#define DST_32BPP 0x00000006 8188c2ecf20Sopenharmony_ci#define DST_8BPP_RGB332 0x00000007 8198c2ecf20Sopenharmony_ci#define DST_8BPP_Y8 0x00000008 8208c2ecf20Sopenharmony_ci#define DST_8BPP_RGB8 0x00000009 8218c2ecf20Sopenharmony_ci#define DST_16BPP_VYUY422 0x0000000b 8228c2ecf20Sopenharmony_ci#define DST_16BPP_YVYU422 0x0000000c 8238c2ecf20Sopenharmony_ci#define DST_32BPP_AYUV444 0x0000000e 8248c2ecf20Sopenharmony_ci#define DST_16BPP_ARGB4444 0x0000000f 8258c2ecf20Sopenharmony_ci#define BRUSH_SOLIDCOLOR 0x00000d00 8268c2ecf20Sopenharmony_ci#define SRC_MONO 0x00000000 8278c2ecf20Sopenharmony_ci#define SRC_MONO_LBKGD 0x00010000 8288c2ecf20Sopenharmony_ci#define SRC_DSTCOLOR 0x00030000 8298c2ecf20Sopenharmony_ci#define BYTE_ORDER_MSB_TO_LSB 0x00000000 8308c2ecf20Sopenharmony_ci#define BYTE_ORDER_LSB_TO_MSB 0x40000000 8318c2ecf20Sopenharmony_ci#define DP_CONVERSION_TEMP 0x80000000 8328c2ecf20Sopenharmony_ci#define HOST_BIG_ENDIAN_EN (1 << 29) 8338c2ecf20Sopenharmony_ci 8348c2ecf20Sopenharmony_ci 8358c2ecf20Sopenharmony_ci/* DP_GUI_MASTER_CNTL bit constants */ 8368c2ecf20Sopenharmony_ci#define GMC_SRC_PITCH_OFFSET_DEFAULT 0x00000000 8378c2ecf20Sopenharmony_ci#define GMC_SRC_PITCH_OFFSET_LEAVE 0x00000001 8388c2ecf20Sopenharmony_ci#define GMC_DST_PITCH_OFFSET_DEFAULT 0x00000000 8398c2ecf20Sopenharmony_ci#define GMC_DST_PITCH_OFFSET_LEAVE 0x00000002 8408c2ecf20Sopenharmony_ci#define GMC_SRC_CLIP_DEFAULT 0x00000000 8418c2ecf20Sopenharmony_ci#define GMC_SRC_CLIP_LEAVE 0x00000004 8428c2ecf20Sopenharmony_ci#define GMC_DST_CLIP_DEFAULT 0x00000000 8438c2ecf20Sopenharmony_ci#define GMC_DST_CLIP_LEAVE 0x00000008 8448c2ecf20Sopenharmony_ci#define GMC_BRUSH_8x8MONO 0x00000000 8458c2ecf20Sopenharmony_ci#define GMC_BRUSH_8x8MONO_LBKGD 0x00000010 8468c2ecf20Sopenharmony_ci#define GMC_BRUSH_8x1MONO 0x00000020 8478c2ecf20Sopenharmony_ci#define GMC_BRUSH_8x1MONO_LBKGD 0x00000030 8488c2ecf20Sopenharmony_ci#define GMC_BRUSH_1x8MONO 0x00000040 8498c2ecf20Sopenharmony_ci#define GMC_BRUSH_1x8MONO_LBKGD 0x00000050 8508c2ecf20Sopenharmony_ci#define GMC_BRUSH_32x1MONO 0x00000060 8518c2ecf20Sopenharmony_ci#define GMC_BRUSH_32x1MONO_LBKGD 0x00000070 8528c2ecf20Sopenharmony_ci#define GMC_BRUSH_32x32MONO 0x00000080 8538c2ecf20Sopenharmony_ci#define GMC_BRUSH_32x32MONO_LBKGD 0x00000090 8548c2ecf20Sopenharmony_ci#define GMC_BRUSH_8x8COLOR 0x000000a0 8558c2ecf20Sopenharmony_ci#define GMC_BRUSH_8x1COLOR 0x000000b0 8568c2ecf20Sopenharmony_ci#define GMC_BRUSH_1x8COLOR 0x000000c0 8578c2ecf20Sopenharmony_ci#define GMC_BRUSH_SOLID_COLOR 0x000000d0 8588c2ecf20Sopenharmony_ci#define GMC_DST_8BPP 0x00000200 8598c2ecf20Sopenharmony_ci#define GMC_DST_15BPP 0x00000300 8608c2ecf20Sopenharmony_ci#define GMC_DST_16BPP 0x00000400 8618c2ecf20Sopenharmony_ci#define GMC_DST_24BPP 0x00000500 8628c2ecf20Sopenharmony_ci#define GMC_DST_32BPP 0x00000600 8638c2ecf20Sopenharmony_ci#define GMC_DST_8BPP_RGB332 0x00000700 8648c2ecf20Sopenharmony_ci#define GMC_DST_8BPP_Y8 0x00000800 8658c2ecf20Sopenharmony_ci#define GMC_DST_8BPP_RGB8 0x00000900 8668c2ecf20Sopenharmony_ci#define GMC_DST_16BPP_VYUY422 0x00000b00 8678c2ecf20Sopenharmony_ci#define GMC_DST_16BPP_YVYU422 0x00000c00 8688c2ecf20Sopenharmony_ci#define GMC_DST_32BPP_AYUV444 0x00000e00 8698c2ecf20Sopenharmony_ci#define GMC_DST_16BPP_ARGB4444 0x00000f00 8708c2ecf20Sopenharmony_ci#define GMC_SRC_MONO 0x00000000 8718c2ecf20Sopenharmony_ci#define GMC_SRC_MONO_LBKGD 0x00001000 8728c2ecf20Sopenharmony_ci#define GMC_SRC_DSTCOLOR 0x00003000 8738c2ecf20Sopenharmony_ci#define GMC_BYTE_ORDER_MSB_TO_LSB 0x00000000 8748c2ecf20Sopenharmony_ci#define GMC_BYTE_ORDER_LSB_TO_MSB 0x00004000 8758c2ecf20Sopenharmony_ci#define GMC_DP_CONVERSION_TEMP_9300 0x00008000 8768c2ecf20Sopenharmony_ci#define GMC_DP_CONVERSION_TEMP_6500 0x00000000 8778c2ecf20Sopenharmony_ci#define GMC_DP_SRC_RECT 0x02000000 8788c2ecf20Sopenharmony_ci#define GMC_DP_SRC_HOST 0x03000000 8798c2ecf20Sopenharmony_ci#define GMC_DP_SRC_HOST_BYTEALIGN 0x04000000 8808c2ecf20Sopenharmony_ci#define GMC_3D_FCN_EN_CLR 0x00000000 8818c2ecf20Sopenharmony_ci#define GMC_3D_FCN_EN_SET 0x08000000 8828c2ecf20Sopenharmony_ci#define GMC_DST_CLR_CMP_FCN_LEAVE 0x00000000 8838c2ecf20Sopenharmony_ci#define GMC_DST_CLR_CMP_FCN_CLEAR 0x10000000 8848c2ecf20Sopenharmony_ci#define GMC_AUX_CLIP_LEAVE 0x00000000 8858c2ecf20Sopenharmony_ci#define GMC_AUX_CLIP_CLEAR 0x20000000 8868c2ecf20Sopenharmony_ci#define GMC_WRITE_MASK_LEAVE 0x00000000 8878c2ecf20Sopenharmony_ci#define GMC_WRITE_MASK_SET 0x40000000 8888c2ecf20Sopenharmony_ci#define GMC_CLR_CMP_CNTL_DIS (1 << 28) 8898c2ecf20Sopenharmony_ci#define GMC_SRC_DATATYPE_COLOR (3 << 12) 8908c2ecf20Sopenharmony_ci#define ROP3_S 0x00cc0000 8918c2ecf20Sopenharmony_ci#define ROP3_SRCCOPY 0x00cc0000 8928c2ecf20Sopenharmony_ci#define ROP3_P 0x00f00000 8938c2ecf20Sopenharmony_ci#define ROP3_PATCOPY 0x00f00000 8948c2ecf20Sopenharmony_ci#define DP_SRC_SOURCE_MASK (7 << 24) 8958c2ecf20Sopenharmony_ci#define GMC_BRUSH_NONE (15 << 4) 8968c2ecf20Sopenharmony_ci#define DP_SRC_SOURCE_MEMORY (2 << 24) 8978c2ecf20Sopenharmony_ci#define GMC_BRUSH_SOLIDCOLOR 0x000000d0 8988c2ecf20Sopenharmony_ci 8998c2ecf20Sopenharmony_ci/* DP_MIX bit constants */ 9008c2ecf20Sopenharmony_ci#define DP_SRC_RECT 0x00000200 9018c2ecf20Sopenharmony_ci#define DP_SRC_HOST 0x00000300 9028c2ecf20Sopenharmony_ci#define DP_SRC_HOST_BYTEALIGN 0x00000400 9038c2ecf20Sopenharmony_ci 9048c2ecf20Sopenharmony_ci/* MPLL_CNTL bit constants */ 9058c2ecf20Sopenharmony_ci#define MPLL_RESET 0x00000001 9068c2ecf20Sopenharmony_ci 9078c2ecf20Sopenharmony_ci/* MDLL_CKO bit constants */ 9088c2ecf20Sopenharmony_ci#define MCKOA_SLEEP 0x00000001 9098c2ecf20Sopenharmony_ci#define MCKOA_RESET 0x00000002 9108c2ecf20Sopenharmony_ci#define MCKOA_REF_SKEW_MASK 0x00000700 9118c2ecf20Sopenharmony_ci#define MCKOA_FB_SKEW_MASK 0x00007000 9128c2ecf20Sopenharmony_ci 9138c2ecf20Sopenharmony_ci/* MDLL_RDCKA bit constants */ 9148c2ecf20Sopenharmony_ci#define MRDCKA0_SLEEP 0x00000001 9158c2ecf20Sopenharmony_ci#define MRDCKA0_RESET 0x00000002 9168c2ecf20Sopenharmony_ci#define MRDCKA1_SLEEP 0x00010000 9178c2ecf20Sopenharmony_ci#define MRDCKA1_RESET 0x00020000 9188c2ecf20Sopenharmony_ci 9198c2ecf20Sopenharmony_ci/* VCLK_ECP_CNTL constants */ 9208c2ecf20Sopenharmony_ci#define VCLK_SRC_SEL_MASK 0x03 9218c2ecf20Sopenharmony_ci#define VCLK_SRC_SEL_CPUCLK 0x00 9228c2ecf20Sopenharmony_ci#define VCLK_SRC_SEL_PSCANCLK 0x01 9238c2ecf20Sopenharmony_ci#define VCLK_SRC_SEL_BYTECLK 0x02 9248c2ecf20Sopenharmony_ci#define VCLK_SRC_SEL_PPLLCLK 0x03 9258c2ecf20Sopenharmony_ci#define PIXCLK_ALWAYS_ONb 0x00000040 9268c2ecf20Sopenharmony_ci#define PIXCLK_DAC_ALWAYS_ONb 0x00000080 9278c2ecf20Sopenharmony_ci 9288c2ecf20Sopenharmony_ci/* BUS_CNTL1 constants */ 9298c2ecf20Sopenharmony_ci#define BUS_CNTL1_MOBILE_PLATFORM_SEL_MASK 0x0c000000 9308c2ecf20Sopenharmony_ci#define BUS_CNTL1_MOBILE_PLATFORM_SEL_SHIFT 26 9318c2ecf20Sopenharmony_ci#define BUS_CNTL1_AGPCLK_VALID 0x80000000 9328c2ecf20Sopenharmony_ci 9338c2ecf20Sopenharmony_ci/* PLL_PWRMGT_CNTL constants */ 9348c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL_SPLL_TURNOFF 0x00000002 9358c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL_PPLL_TURNOFF 0x00000004 9368c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL_P2PLL_TURNOFF 0x00000008 9378c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL_TVPLL_TURNOFF 0x00000010 9388c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL_MOBILE_SU 0x00010000 9398c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL_SU_SCLK_USE_BCLK 0x00020000 9408c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL_SU_MCLK_USE_BCLK 0x00040000 9418c2ecf20Sopenharmony_ci 9428c2ecf20Sopenharmony_ci/* TV_DAC_CNTL constants */ 9438c2ecf20Sopenharmony_ci#define TV_DAC_CNTL_BGSLEEP 0x00000040 9448c2ecf20Sopenharmony_ci#define TV_DAC_CNTL_DETECT 0x00000010 9458c2ecf20Sopenharmony_ci#define TV_DAC_CNTL_BGADJ_MASK 0x000f0000 9468c2ecf20Sopenharmony_ci#define TV_DAC_CNTL_DACADJ_MASK 0x00f00000 9478c2ecf20Sopenharmony_ci#define TV_DAC_CNTL_BGADJ__SHIFT 16 9488c2ecf20Sopenharmony_ci#define TV_DAC_CNTL_DACADJ__SHIFT 20 9498c2ecf20Sopenharmony_ci#define TV_DAC_CNTL_RDACPD 0x01000000 9508c2ecf20Sopenharmony_ci#define TV_DAC_CNTL_GDACPD 0x02000000 9518c2ecf20Sopenharmony_ci#define TV_DAC_CNTL_BDACPD 0x04000000 9528c2ecf20Sopenharmony_ci 9538c2ecf20Sopenharmony_ci/* DISP_MISC_CNTL constants */ 9548c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_GRPH_PP (1 << 0) 9558c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_SUBPIC_PP (1 << 1) 9568c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_OV0_PP (1 << 2) 9578c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_GRPH_SCLK (1 << 4) 9588c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_SUBPIC_SCLK (1 << 5) 9598c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_OV0_SCLK (1 << 6) 9608c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_GRPH2_PP (1 << 12) 9618c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_GRPH2_SCLK (1 << 15) 9628c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_LVDS (1 << 16) 9638c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_TMDS (1 << 17) 9648c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_DIG_TMDS (1 << 18) 9658c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL_SOFT_RESET_TV (1 << 19) 9668c2ecf20Sopenharmony_ci 9678c2ecf20Sopenharmony_ci/* DISP_PWR_MAN constants */ 9688c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_DISP_PWR_MAN_D3_CRTC_EN (1 << 0) 9698c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_DISP2_PWR_MAN_D3_CRTC2_EN (1 << 4) 9708c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_DISP_D3_RST (1 << 16) 9718c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_DISP_D3_REG_RST (1 << 17) 9728c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_DISP_D3_GRPH_RST (1 << 18) 9738c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_DISP_D3_SUBPIC_RST (1 << 19) 9748c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_DISP_D3_OV0_RST (1 << 20) 9758c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_DISP_D1D2_GRPH_RST (1 << 21) 9768c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_DISP_D1D2_SUBPIC_RST (1 << 22) 9778c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_DISP_D1D2_OV0_RST (1 << 23) 9788c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_DIG_TMDS_ENABLE_RST (1 << 24) 9798c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_TV_ENABLE_RST (1 << 25) 9808c2ecf20Sopenharmony_ci#define DISP_PWR_MAN_AUTO_PWRUP_EN (1 << 26) 9818c2ecf20Sopenharmony_ci 9828c2ecf20Sopenharmony_ci/* masks */ 9838c2ecf20Sopenharmony_ci 9848c2ecf20Sopenharmony_ci#define CNFG_MEMSIZE_MASK 0x1f000000 9858c2ecf20Sopenharmony_ci#define MEM_CFG_TYPE 0x40000000 9868c2ecf20Sopenharmony_ci#define DST_OFFSET_MASK 0x003fffff 9878c2ecf20Sopenharmony_ci#define DST_PITCH_MASK 0x3fc00000 9888c2ecf20Sopenharmony_ci#define DEFAULT_TILE_MASK 0xc0000000 9898c2ecf20Sopenharmony_ci#define PPLL_DIV_SEL_MASK 0x00000300 9908c2ecf20Sopenharmony_ci#define PPLL_RESET 0x00000001 9918c2ecf20Sopenharmony_ci#define PPLL_SLEEP 0x00000002 9928c2ecf20Sopenharmony_ci#define PPLL_ATOMIC_UPDATE_EN 0x00010000 9938c2ecf20Sopenharmony_ci#define PPLL_REF_DIV_MASK 0x000003ff 9948c2ecf20Sopenharmony_ci#define PPLL_FB3_DIV_MASK 0x000007ff 9958c2ecf20Sopenharmony_ci#define PPLL_POST3_DIV_MASK 0x00070000 9968c2ecf20Sopenharmony_ci#define PPLL_ATOMIC_UPDATE_R 0x00008000 9978c2ecf20Sopenharmony_ci#define PPLL_ATOMIC_UPDATE_W 0x00008000 9988c2ecf20Sopenharmony_ci#define PPLL_VGA_ATOMIC_UPDATE_EN 0x00020000 9998c2ecf20Sopenharmony_ci#define R300_PPLL_REF_DIV_ACC_MASK (0x3ff << 18) 10008c2ecf20Sopenharmony_ci#define R300_PPLL_REF_DIV_ACC_SHIFT 18 10018c2ecf20Sopenharmony_ci 10028c2ecf20Sopenharmony_ci#define GUI_ACTIVE 0x80000000 10038c2ecf20Sopenharmony_ci 10048c2ecf20Sopenharmony_ci 10058c2ecf20Sopenharmony_ci#define MC_IND_INDEX 0x01F8 10068c2ecf20Sopenharmony_ci#define MC_IND_DATA 0x01FC 10078c2ecf20Sopenharmony_ci 10088c2ecf20Sopenharmony_ci/* PAD_CTLR_STRENGTH */ 10098c2ecf20Sopenharmony_ci#define PAD_MANUAL_OVERRIDE 0x80000000 10108c2ecf20Sopenharmony_ci 10118c2ecf20Sopenharmony_ci// pllCLK_PIN_CNTL 10128c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__OSC_EN_MASK 0x00000001L 10138c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__OSC_EN 0x00000001L 10148c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__XTL_LOW_GAIN_MASK 0x00000004L 10158c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__XTL_LOW_GAIN 0x00000004L 10168c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__DONT_USE_XTALIN_MASK 0x00000010L 10178c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__DONT_USE_XTALIN 0x00000010L 10188c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__SLOW_CLOCK_SOURCE_MASK 0x00000020L 10198c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__SLOW_CLOCK_SOURCE 0x00000020L 10208c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__CG_CLK_TO_OUTPIN_MASK 0x00000800L 10218c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__CG_CLK_TO_OUTPIN 0x00000800L 10228c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__CG_COUNT_UP_TO_OUTPIN_MASK 0x00001000L 10238c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__CG_COUNT_UP_TO_OUTPIN 0x00001000L 10248c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__ACCESS_REGS_IN_SUSPEND_MASK 0x00002000L 10258c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__ACCESS_REGS_IN_SUSPEND 0x00002000L 10268c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__CG_SPARE_MASK 0x00004000L 10278c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__CG_SPARE 0x00004000L 10288c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__SCLK_DYN_START_CNTL_MASK 0x00008000L 10298c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__SCLK_DYN_START_CNTL 0x00008000L 10308c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__CP_CLK_RUNNING_MASK 0x00010000L 10318c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__CP_CLK_RUNNING 0x00010000L 10328c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__CG_SPARE_RD_MASK 0x00060000L 10338c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__XTALIN_ALWAYS_ONb_MASK 0x00080000L 10348c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__XTALIN_ALWAYS_ONb 0x00080000L 10358c2ecf20Sopenharmony_ci#define CLK_PIN_CNTL__PWRSEQ_DELAY_MASK 0xff000000L 10368c2ecf20Sopenharmony_ci 10378c2ecf20Sopenharmony_ci// pllCLK_PWRMGT_CNTL 10388c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF__SHIFT 0x00000000 10398c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF__SHIFT 0x00000001 10408c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF__SHIFT 0x00000002 10418c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF__SHIFT 0x00000003 10428c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MCLK_TURNOFF__SHIFT 0x00000004 10438c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__SCLK_TURNOFF__SHIFT 0x00000005 10448c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__PCLK_TURNOFF__SHIFT 0x00000006 10458c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2CLK_TURNOFF__SHIFT 0x00000007 10468c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_CH_MODE__SHIFT 0x00000008 10478c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__TEST_MODE__SHIFT 0x00000009 10488c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN__SHIFT 0x0000000a 10498c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE__SHIFT 0x0000000c 10508c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__ACTIVE_HILO_LAT__SHIFT 0x0000000d 10518c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT__SHIFT 0x0000000f 10528c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_BUSY__SHIFT 0x00000010 10538c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_INT_CNTL__SHIFT 0x00000011 10548c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_SWITCH__SHIFT 0x00000012 10558c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__DLL_READY__SHIFT 0x00000013 10568c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_PM__SHIFT 0x00000014 10578c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__DYN_STOP_MODE__SHIFT 0x00000015 10588c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__CG_NO1_DEBUG__SHIFT 0x00000018 10598c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF__SHIFT 0x0000001e 10608c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVCLK_TURNOFF__SHIFT 0x0000001f 10618c2ecf20Sopenharmony_ci 10628c2ecf20Sopenharmony_ci// pllP2PLL_CNTL 10638c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_RESET_MASK 0x00000001L 10648c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_RESET 0x00000001L 10658c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_SLEEP_MASK 0x00000002L 10668c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_SLEEP 0x00000002L 10678c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TST_EN_MASK 0x00000004L 10688c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TST_EN 0x00000004L 10698c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_REFCLK_SEL_MASK 0x00000010L 10708c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_REFCLK_SEL 0x00000010L 10718c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_FBCLK_SEL_MASK 0x00000020L 10728c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_FBCLK_SEL 0x00000020L 10738c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TCPOFF_MASK 0x00000040L 10748c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TCPOFF 0x00000040L 10758c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TVCOMAX_MASK 0x00000080L 10768c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_TVCOMAX 0x00000080L 10778c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_PCP_MASK 0x00000700L 10788c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_PVG_MASK 0x00003800L 10798c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_PDC_MASK 0x0000c000L 10808c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_EN_MASK 0x00010000L 10818c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_EN 0x00010000L 10828c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_SYNC_MASK 0x00040000L 10838c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_SYNC 0x00040000L 10848c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_DISABLE_AUTO_RESET_MASK 0x00080000L 10858c2ecf20Sopenharmony_ci#define P2PLL_CNTL__P2PLL_DISABLE_AUTO_RESET 0x00080000L 10868c2ecf20Sopenharmony_ci 10878c2ecf20Sopenharmony_ci// pllPIXCLKS_CNTL 10888c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_SRC_SEL__SHIFT 0x00000000 10898c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_INVERT__SHIFT 0x00000004 10908c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_SRC_INVERT__SHIFT 0x00000005 10918c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_ALWAYS_ONb__SHIFT 0x00000006 10928c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_DAC_ALWAYS_ONb__SHIFT 0x00000007 10938c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_TV_SRC_SEL__SHIFT 0x00000008 10948c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_BLEND_ALWAYS_ONb__SHIFT 0x0000000b 10958c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_GV_ALWAYS_ONb__SHIFT 0x0000000c 10968c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_DIG_TMDS_ALWAYS_ONb__SHIFT 0x0000000d 10978c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_LVDS_ALWAYS_ONb__SHIFT 0x0000000e 10988c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_TMDS_ALWAYS_ONb__SHIFT 0x0000000f 10998c2ecf20Sopenharmony_ci 11008c2ecf20Sopenharmony_ci 11018c2ecf20Sopenharmony_ci// pllPIXCLKS_CNTL 11028c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_SRC_SEL_MASK 0x00000003L 11038c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_INVERT 0x00000010L 11048c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_SRC_INVERT 0x00000020L 11058c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_ALWAYS_ONb 0x00000040L 11068c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIX2CLK_DAC_ALWAYS_ONb 0x00000080L 11078c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_TV_SRC_SEL 0x00000100L 11088c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_BLEND_ALWAYS_ONb 0x00000800L 11098c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_GV_ALWAYS_ONb 0x00001000L 11108c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_DIG_TMDS_ALWAYS_ONb 0x00002000L 11118c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_LVDS_ALWAYS_ONb 0x00004000L 11128c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__PIXCLK_TMDS_ALWAYS_ONb 0x00008000L 11138c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__DISP_TVOUT_PIXCLK_TV_ALWAYS_ONb (1 << 9) 11148c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__R300_DVOCLK_ALWAYS_ONb (1 << 10) 11158c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__R300_PIXCLK_DVO_ALWAYS_ONb (1 << 13) 11168c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__R300_PIXCLK_TRANS_ALWAYS_ONb (1 << 16) 11178c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__R300_PIXCLK_TVO_ALWAYS_ONb (1 << 17) 11188c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__R300_P2G2CLK_ALWAYS_ONb (1 << 18) 11198c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__R300_P2G2CLK_DAC_ALWAYS_ONb (1 << 19) 11208c2ecf20Sopenharmony_ci#define PIXCLKS_CNTL__R300_DISP_DAC_PIXCLK_DAC2_BLANK_OFF (1 << 23) 11218c2ecf20Sopenharmony_ci 11228c2ecf20Sopenharmony_ci 11238c2ecf20Sopenharmony_ci// pllP2PLL_DIV_0 11248c2ecf20Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_FB_DIV_MASK 0x000007ffL 11258c2ecf20Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_W_MASK 0x00008000L 11268c2ecf20Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_W 0x00008000L 11278c2ecf20Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_R_MASK 0x00008000L 11288c2ecf20Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_R 0x00008000L 11298c2ecf20Sopenharmony_ci#define P2PLL_DIV_0__P2PLL_POST_DIV_MASK 0x00070000L 11308c2ecf20Sopenharmony_ci 11318c2ecf20Sopenharmony_ci// pllSCLK_CNTL 11328c2ecf20Sopenharmony_ci#define SCLK_CNTL__SCLK_SRC_SEL_MASK 0x00000007L 11338c2ecf20Sopenharmony_ci#define SCLK_CNTL__CP_MAX_DYN_STOP_LAT 0x00000008L 11348c2ecf20Sopenharmony_ci#define SCLK_CNTL__HDP_MAX_DYN_STOP_LAT 0x00000010L 11358c2ecf20Sopenharmony_ci#define SCLK_CNTL__TV_MAX_DYN_STOP_LAT 0x00000020L 11368c2ecf20Sopenharmony_ci#define SCLK_CNTL__E2_MAX_DYN_STOP_LAT 0x00000040L 11378c2ecf20Sopenharmony_ci#define SCLK_CNTL__SE_MAX_DYN_STOP_LAT 0x00000080L 11388c2ecf20Sopenharmony_ci#define SCLK_CNTL__IDCT_MAX_DYN_STOP_LAT 0x00000100L 11398c2ecf20Sopenharmony_ci#define SCLK_CNTL__VIP_MAX_DYN_STOP_LAT 0x00000200L 11408c2ecf20Sopenharmony_ci#define SCLK_CNTL__RE_MAX_DYN_STOP_LAT 0x00000400L 11418c2ecf20Sopenharmony_ci#define SCLK_CNTL__PB_MAX_DYN_STOP_LAT 0x00000800L 11428c2ecf20Sopenharmony_ci#define SCLK_CNTL__TAM_MAX_DYN_STOP_LAT 0x00001000L 11438c2ecf20Sopenharmony_ci#define SCLK_CNTL__TDM_MAX_DYN_STOP_LAT 0x00002000L 11448c2ecf20Sopenharmony_ci#define SCLK_CNTL__RB_MAX_DYN_STOP_LAT 0x00004000L 11458c2ecf20Sopenharmony_ci#define SCLK_CNTL__DYN_STOP_LAT_MASK 0x00007ff8 11468c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_DISP2 0x00008000L 11478c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_CP 0x00010000L 11488c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_HDP 0x00020000L 11498c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_DISP1 0x00040000L 11508c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_TOP 0x00080000L 11518c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_E2 0x00100000L 11528c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_SE 0x00200000L 11538c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_IDCT 0x00400000L 11548c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_VIP 0x00800000L 11558c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_RE 0x01000000L 11568c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_PB 0x02000000L 11578c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_TAM 0x04000000L 11588c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_TDM 0x08000000L 11598c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_RB 0x10000000L 11608c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_TV_SCLK 0x20000000L 11618c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_SUBPIC 0x40000000L 11628c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCE_OV0 0x80000000L 11638c2ecf20Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_VAP (1<<21) 11648c2ecf20Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_SR (1<<25) 11658c2ecf20Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_PX (1<<26) 11668c2ecf20Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_TX (1<<27) 11678c2ecf20Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_US (1<<28) 11688c2ecf20Sopenharmony_ci#define SCLK_CNTL__R300_FORCE_SU (1<<30) 11698c2ecf20Sopenharmony_ci#define SCLK_CNTL__FORCEON_MASK 0xffff8000L 11708c2ecf20Sopenharmony_ci 11718c2ecf20Sopenharmony_ci// pllSCLK_CNTL2 11728c2ecf20Sopenharmony_ci#define SCLK_CNTL2__R300_TCL_MAX_DYN_STOP_LAT (1<<10) 11738c2ecf20Sopenharmony_ci#define SCLK_CNTL2__R300_GA_MAX_DYN_STOP_LAT (1<<11) 11748c2ecf20Sopenharmony_ci#define SCLK_CNTL2__R300_CBA_MAX_DYN_STOP_LAT (1<<12) 11758c2ecf20Sopenharmony_ci#define SCLK_CNTL2__R300_FORCE_TCL (1<<13) 11768c2ecf20Sopenharmony_ci#define SCLK_CNTL2__R300_FORCE_CBA (1<<14) 11778c2ecf20Sopenharmony_ci#define SCLK_CNTL2__R300_FORCE_GA (1<<15) 11788c2ecf20Sopenharmony_ci 11798c2ecf20Sopenharmony_ci// SCLK_MORE_CNTL 11808c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__DISPREGS_MAX_DYN_STOP_LAT 0x00000001L 11818c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__MC_GUI_MAX_DYN_STOP_LAT 0x00000002L 11828c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__MC_HOST_MAX_DYN_STOP_LAT 0x00000004L 11838c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__FORCE_DISPREGS 0x00000100L 11848c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__FORCE_MC_GUI 0x00000200L 11858c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__FORCE_MC_HOST 0x00000400L 11868c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__STOP_SCLK_EN 0x00001000L 11878c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__STOP_SCLK_A 0x00002000L 11888c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__STOP_SCLK_B 0x00004000L 11898c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__STOP_SCLK_C 0x00008000L 11908c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__HALF_SPEED_SCLK 0x00010000L 11918c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__IO_CG_VOLTAGE_DROP 0x00020000L 11928c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__TVFB_SOFT_RESET 0x00040000L 11938c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__VOLTAGE_DROP_SYNC 0x00080000L 11948c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__IDLE_DELAY_HALF_SCLK 0x00400000L 11958c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__AGP_BUSY_HALF_SCLK 0x00800000L 11968c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__CG_SPARE_RD_C_MASK 0xff000000L 11978c2ecf20Sopenharmony_ci#define SCLK_MORE_CNTL__FORCEON 0x00000700L 11988c2ecf20Sopenharmony_ci 11998c2ecf20Sopenharmony_ci// MCLK_CNTL 12008c2ecf20Sopenharmony_ci#define MCLK_CNTL__MCLKA_SRC_SEL_MASK 0x00000007L 12018c2ecf20Sopenharmony_ci#define MCLK_CNTL__YCLKA_SRC_SEL_MASK 0x00000070L 12028c2ecf20Sopenharmony_ci#define MCLK_CNTL__MCLKB_SRC_SEL_MASK 0x00000700L 12038c2ecf20Sopenharmony_ci#define MCLK_CNTL__YCLKB_SRC_SEL_MASK 0x00007000L 12048c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_MCLKA_MASK 0x00010000L 12058c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_MCLKA 0x00010000L 12068c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_MCLKB_MASK 0x00020000L 12078c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_MCLKB 0x00020000L 12088c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_YCLKA_MASK 0x00040000L 12098c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_YCLKA 0x00040000L 12108c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_YCLKB_MASK 0x00080000L 12118c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_YCLKB 0x00080000L 12128c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_MC_MASK 0x00100000L 12138c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_MC 0x00100000L 12148c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_AIC_MASK 0x00200000L 12158c2ecf20Sopenharmony_ci#define MCLK_CNTL__FORCE_AIC 0x00200000L 12168c2ecf20Sopenharmony_ci#define MCLK_CNTL__MRDCKA0_SOUTSEL_MASK 0x03000000L 12178c2ecf20Sopenharmony_ci#define MCLK_CNTL__MRDCKA1_SOUTSEL_MASK 0x0c000000L 12188c2ecf20Sopenharmony_ci#define MCLK_CNTL__MRDCKB0_SOUTSEL_MASK 0x30000000L 12198c2ecf20Sopenharmony_ci#define MCLK_CNTL__MRDCKB1_SOUTSEL_MASK 0xc0000000L 12208c2ecf20Sopenharmony_ci#define MCLK_CNTL__R300_DISABLE_MC_MCLKA (1 << 21) 12218c2ecf20Sopenharmony_ci#define MCLK_CNTL__R300_DISABLE_MC_MCLKB (1 << 21) 12228c2ecf20Sopenharmony_ci 12238c2ecf20Sopenharmony_ci// MCLK_MISC 12248c2ecf20Sopenharmony_ci#define MCLK_MISC__SCLK_SOURCED_FROM_MPLL_SEL_MASK 0x00000003L 12258c2ecf20Sopenharmony_ci#define MCLK_MISC__MCLK_FROM_SPLL_DIV_SEL_MASK 0x00000004L 12268c2ecf20Sopenharmony_ci#define MCLK_MISC__MCLK_FROM_SPLL_DIV_SEL 0x00000004L 12278c2ecf20Sopenharmony_ci#define MCLK_MISC__ENABLE_SCLK_FROM_MPLL_MASK 0x00000008L 12288c2ecf20Sopenharmony_ci#define MCLK_MISC__ENABLE_SCLK_FROM_MPLL 0x00000008L 12298c2ecf20Sopenharmony_ci#define MCLK_MISC__MPLL_MODEA_MODEC_HW_SEL_EN_MASK 0x00000010L 12308c2ecf20Sopenharmony_ci#define MCLK_MISC__MPLL_MODEA_MODEC_HW_SEL_EN 0x00000010L 12318c2ecf20Sopenharmony_ci#define MCLK_MISC__DLL_READY_LAT_MASK 0x00000100L 12328c2ecf20Sopenharmony_ci#define MCLK_MISC__DLL_READY_LAT 0x00000100L 12338c2ecf20Sopenharmony_ci#define MCLK_MISC__MC_MCLK_MAX_DYN_STOP_LAT_MASK 0x00001000L 12348c2ecf20Sopenharmony_ci#define MCLK_MISC__MC_MCLK_MAX_DYN_STOP_LAT 0x00001000L 12358c2ecf20Sopenharmony_ci#define MCLK_MISC__IO_MCLK_MAX_DYN_STOP_LAT_MASK 0x00002000L 12368c2ecf20Sopenharmony_ci#define MCLK_MISC__IO_MCLK_MAX_DYN_STOP_LAT 0x00002000L 12378c2ecf20Sopenharmony_ci#define MCLK_MISC__MC_MCLK_DYN_ENABLE_MASK 0x00004000L 12388c2ecf20Sopenharmony_ci#define MCLK_MISC__MC_MCLK_DYN_ENABLE 0x00004000L 12398c2ecf20Sopenharmony_ci#define MCLK_MISC__IO_MCLK_DYN_ENABLE_MASK 0x00008000L 12408c2ecf20Sopenharmony_ci#define MCLK_MISC__IO_MCLK_DYN_ENABLE 0x00008000L 12418c2ecf20Sopenharmony_ci#define MCLK_MISC__CGM_CLK_TO_OUTPIN_MASK 0x00010000L 12428c2ecf20Sopenharmony_ci#define MCLK_MISC__CGM_CLK_TO_OUTPIN 0x00010000L 12438c2ecf20Sopenharmony_ci#define MCLK_MISC__CLK_OR_COUNT_SEL_MASK 0x00020000L 12448c2ecf20Sopenharmony_ci#define MCLK_MISC__CLK_OR_COUNT_SEL 0x00020000L 12458c2ecf20Sopenharmony_ci#define MCLK_MISC__EN_MCLK_TRISTATE_IN_SUSPEND_MASK 0x00040000L 12468c2ecf20Sopenharmony_ci#define MCLK_MISC__EN_MCLK_TRISTATE_IN_SUSPEND 0x00040000L 12478c2ecf20Sopenharmony_ci#define MCLK_MISC__CGM_SPARE_RD_MASK 0x00300000L 12488c2ecf20Sopenharmony_ci#define MCLK_MISC__CGM_SPARE_A_RD_MASK 0x00c00000L 12498c2ecf20Sopenharmony_ci#define MCLK_MISC__TCLK_TO_YCLKB_EN_MASK 0x01000000L 12508c2ecf20Sopenharmony_ci#define MCLK_MISC__TCLK_TO_YCLKB_EN 0x01000000L 12518c2ecf20Sopenharmony_ci#define MCLK_MISC__CGM_SPARE_A_MASK 0x0e000000L 12528c2ecf20Sopenharmony_ci 12538c2ecf20Sopenharmony_ci// VCLK_ECP_CNTL 12548c2ecf20Sopenharmony_ci#define VCLK_ECP_CNTL__VCLK_SRC_SEL_MASK 0x00000003L 12558c2ecf20Sopenharmony_ci#define VCLK_ECP_CNTL__VCLK_INVERT 0x00000010L 12568c2ecf20Sopenharmony_ci#define VCLK_ECP_CNTL__PIXCLK_SRC_INVERT 0x00000020L 12578c2ecf20Sopenharmony_ci#define VCLK_ECP_CNTL__PIXCLK_ALWAYS_ONb 0x00000040L 12588c2ecf20Sopenharmony_ci#define VCLK_ECP_CNTL__PIXCLK_DAC_ALWAYS_ONb 0x00000080L 12598c2ecf20Sopenharmony_ci#define VCLK_ECP_CNTL__ECP_DIV_MASK 0x00000300L 12608c2ecf20Sopenharmony_ci#define VCLK_ECP_CNTL__ECP_FORCE_ON 0x00040000L 12618c2ecf20Sopenharmony_ci#define VCLK_ECP_CNTL__SUBCLK_FORCE_ON 0x00080000L 12628c2ecf20Sopenharmony_ci#define VCLK_ECP_CNTL__R300_DISP_DAC_PIXCLK_DAC_BLANK_OFF (1<<23) 12638c2ecf20Sopenharmony_ci 12648c2ecf20Sopenharmony_ci// PLL_PWRMGT_CNTL 12658c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__MPLL_TURNOFF_MASK 0x00000001L 12668c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__MPLL_TURNOFF 0x00000001L 12678c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__SPLL_TURNOFF_MASK 0x00000002L 12688c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__SPLL_TURNOFF 0x00000002L 12698c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__PPLL_TURNOFF_MASK 0x00000004L 12708c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__PPLL_TURNOFF 0x00000004L 12718c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__P2PLL_TURNOFF_MASK 0x00000008L 12728c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__P2PLL_TURNOFF 0x00000008L 12738c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__TVPLL_TURNOFF_MASK 0x00000010L 12748c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__TVPLL_TURNOFF 0x00000010L 12758c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__AGPCLK_DYN_STOP_LAT_MASK 0x000001e0L 12768c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__APM_POWER_STATE_MASK 0x00000600L 12778c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__APM_PWRSTATE_RD_MASK 0x00001800L 12788c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__PM_MODE_SEL_MASK 0x00002000L 12798c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__PM_MODE_SEL 0x00002000L 12808c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__EN_PWRSEQ_DONE_COND_MASK 0x00004000L 12818c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__EN_PWRSEQ_DONE_COND 0x00004000L 12828c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__EN_DISP_PARKED_COND_MASK 0x00008000L 12838c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__EN_DISP_PARKED_COND 0x00008000L 12848c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__MOBILE_SU_MASK 0x00010000L 12858c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__MOBILE_SU 0x00010000L 12868c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_SCLK_USE_BCLK_MASK 0x00020000L 12878c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_SCLK_USE_BCLK 0x00020000L 12888c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_MCLK_USE_BCLK_MASK 0x00040000L 12898c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_MCLK_USE_BCLK 0x00040000L 12908c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_SUSTAIN_DISABLE_MASK 0x00080000L 12918c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__SU_SUSTAIN_DISABLE 0x00080000L 12928c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__TCL_BYPASS_DISABLE_MASK 0x00100000L 12938c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__TCL_BYPASS_DISABLE 0x00100000L 12948c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__TCL_CLOCK_CTIVE_RD_MASK 0x00200000L 12958c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__TCL_CLOCK_ACTIVE_RD 0x00200000L 12968c2ecf20Sopenharmony_ci#define PLL_PWRMGT_CNTL__CG_NO2_DEBUG_MASK 0xff000000L 12978c2ecf20Sopenharmony_ci 12988c2ecf20Sopenharmony_ci// CLK_PWRMGT_CNTL 12998c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF_MASK 0x00000001L 13008c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF 0x00000001L 13018c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF_MASK 0x00000002L 13028c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF 0x00000002L 13038c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF_MASK 0x00000004L 13048c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF 0x00000004L 13058c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF_MASK 0x00000008L 13068c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF 0x00000008L 13078c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MCLK_TURNOFF_MASK 0x00000010L 13088c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MCLK_TURNOFF 0x00000010L 13098c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__SCLK_TURNOFF_MASK 0x00000020L 13108c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__SCLK_TURNOFF 0x00000020L 13118c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__PCLK_TURNOFF_MASK 0x00000040L 13128c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__PCLK_TURNOFF 0x00000040L 13138c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2CLK_TURNOFF_MASK 0x00000080L 13148c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__P2CLK_TURNOFF 0x00000080L 13158c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_CH_MODE_MASK 0x00000100L 13168c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_CH_MODE 0x00000100L 13178c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__TEST_MODE_MASK 0x00000200L 13188c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__TEST_MODE 0x00000200L 13198c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN_MASK 0x00000400L 13208c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN 0x00000400L 13218c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE_MASK 0x00001000L 13228c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE 0x00001000L 13238c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__ACTIVE_HILO_LAT_MASK 0x00006000L 13248c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT_MASK 0x00008000L 13258c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT 0x00008000L 13268c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_BUSY_MASK 0x00010000L 13278c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_BUSY 0x00010000L 13288c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_INT_CNTL_MASK 0x00020000L 13298c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_INT_CNTL 0x00020000L 13308c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_SWITCH_MASK 0x00040000L 13318c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__MC_SWITCH 0x00040000L 13328c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__DLL_READY_MASK 0x00080000L 13338c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__DLL_READY 0x00080000L 13348c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_PM_MASK 0x00100000L 13358c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__DISP_PM 0x00100000L 13368c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__DYN_STOP_MODE_MASK 0x00e00000L 13378c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__CG_NO1_DEBUG_MASK 0x3f000000L 13388c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF_MASK 0x40000000L 13398c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF 0x40000000L 13408c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVCLK_TURNOFF_MASK 0x80000000L 13418c2ecf20Sopenharmony_ci#define CLK_PWRMGT_CNTL__TVCLK_TURNOFF 0x80000000L 13428c2ecf20Sopenharmony_ci 13438c2ecf20Sopenharmony_ci// BUS_CNTL1 13448c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_IO_DISABLE_MASK 0x00000001L 13458c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_IO_DISABLE 0x00000001L 13468c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_MEM_DISABLE_MASK 0x00000002L 13478c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_MEM_DISABLE 0x00000002L 13488c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_BM_DISABLE_MASK 0x00000004L 13498c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_BM_DISABLE 0x00000004L 13508c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_INT_DISABLE_MASK 0x00000008L 13518c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_INT_DISABLE 0x00000008L 13528c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE_MASK 0x00000020L 13538c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE 0x00000020L 13548c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS_MASK 0x00000100L 13558c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS 0x00000100L 13568c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS_MASK 0x00000200L 13578c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS 0x00000200L 13588c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS_MASK 0x00000400L 13598c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS 0x00000400L 13608c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS_MASK 0x00000800L 13618c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS 0x00000800L 13628c2ecf20Sopenharmony_ci#define BUS_CNTL1__MOBILE_PLATFORM_SEL_MASK 0x0c000000L 13638c2ecf20Sopenharmony_ci#define BUS_CNTL1__SEND_SBA_LATENCY_MASK 0x70000000L 13648c2ecf20Sopenharmony_ci#define BUS_CNTL1__AGPCLK_VALID_MASK 0x80000000L 13658c2ecf20Sopenharmony_ci#define BUS_CNTL1__AGPCLK_VALID 0x80000000L 13668c2ecf20Sopenharmony_ci 13678c2ecf20Sopenharmony_ci// BUS_CNTL1 13688c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_IO_DISABLE__SHIFT 0x00000000 13698c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_MEM_DISABLE__SHIFT 0x00000001 13708c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_BM_DISABLE__SHIFT 0x00000002 13718c2ecf20Sopenharmony_ci#define BUS_CNTL1__PMI_INT_DISABLE__SHIFT 0x00000003 13728c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE__SHIFT 0x00000005 13738c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS__SHIFT 0x00000008 13748c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS__SHIFT 0x00000009 13758c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS__SHIFT 0x0000000a 13768c2ecf20Sopenharmony_ci#define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS__SHIFT 0x0000000b 13778c2ecf20Sopenharmony_ci#define BUS_CNTL1__MOBILE_PLATFORM_SEL__SHIFT 0x0000001a 13788c2ecf20Sopenharmony_ci#define BUS_CNTL1__SEND_SBA_LATENCY__SHIFT 0x0000001c 13798c2ecf20Sopenharmony_ci#define BUS_CNTL1__AGPCLK_VALID__SHIFT 0x0000001f 13808c2ecf20Sopenharmony_ci 13818c2ecf20Sopenharmony_ci// CRTC_OFFSET_CNTL 13828c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_LINE_MASK 0x0000000fL 13838c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_LINE_RIGHT_MASK 0x000000f0L 13848c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_EN_RIGHT_MASK 0x00004000L 13858c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_EN_RIGHT 0x00004000L 13868c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_EN_MASK 0x00008000L 13878c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_TILE_EN 0x00008000L 13888c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_OFFSET_FLIP_CNTL_MASK 0x00010000L 13898c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_OFFSET_FLIP_CNTL 0x00010000L 13908c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_OFFSET_EN_MASK 0x00020000L 13918c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_OFFSET_EN 0x00020000L 13928c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_EN_MASK 0x000c0000L 13938c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_OUT_EN_MASK 0x00100000L 13948c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_OUT_EN 0x00100000L 13958c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_MASK 0x00200000L 13968c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC 0x00200000L 13978c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_LEFT_EN_MASK 0x10000000L 13988c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_LEFT_EN 0x10000000L 13998c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_RIGHT_EN_MASK 0x20000000L 14008c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_RIGHT_EN 0x20000000L 14018c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_MASK 0x40000000L 14028c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET 0x40000000L 14038c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_OFFSET_LOCK_MASK 0x80000000L 14048c2ecf20Sopenharmony_ci#define CRTC_OFFSET_CNTL__CRTC_OFFSET_LOCK 0x80000000L 14058c2ecf20Sopenharmony_ci 14068c2ecf20Sopenharmony_ci// CRTC_GEN_CNTL 14078c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_DBL_SCAN_EN_MASK 0x00000001L 14088c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_DBL_SCAN_EN 0x00000001L 14098c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_INTERLACE_EN_MASK 0x00000002L 14108c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_INTERLACE_EN 0x00000002L 14118c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_C_SYNC_EN_MASK 0x00000010L 14128c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_C_SYNC_EN 0x00000010L 14138c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_PIX_WIDTH_MASK 0x00000f00L 14148c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_ICON_EN_MASK 0x00008000L 14158c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_ICON_EN 0x00008000L 14168c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_CUR_EN_MASK 0x00010000L 14178c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_CUR_EN 0x00010000L 14188c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_VSTAT_MODE_MASK 0x00060000L 14198c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_CUR_MODE_MASK 0x00700000L 14208c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_EXT_DISP_EN_MASK 0x01000000L 14218c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_EXT_DISP_EN 0x01000000L 14228c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_EN_MASK 0x02000000L 14238c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_EN 0x02000000L 14248c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_DISP_REQ_EN_B_MASK 0x04000000L 14258c2ecf20Sopenharmony_ci#define CRTC_GEN_CNTL__CRTC_DISP_REQ_EN_B 0x04000000L 14268c2ecf20Sopenharmony_ci 14278c2ecf20Sopenharmony_ci// CRTC2_GEN_CNTL 14288c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DBL_SCAN_EN_MASK 0x00000001L 14298c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DBL_SCAN_EN 0x00000001L 14308c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_INTERLACE_EN_MASK 0x00000002L 14318c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_INTERLACE_EN 0x00000002L 14328c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_SYNC_TRISTATE_MASK 0x00000010L 14338c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_SYNC_TRISTATE 0x00000010L 14348c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_HSYNC_TRISTATE_MASK 0x00000020L 14358c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_HSYNC_TRISTATE 0x00000020L 14368c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_VSYNC_TRISTATE_MASK 0x00000040L 14378c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_VSYNC_TRISTATE 0x00000040L 14388c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRT2_ON_MASK 0x00000080L 14398c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRT2_ON 0x00000080L 14408c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_PIX_WIDTH_MASK 0x00000f00L 14418c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_ICON_EN_MASK 0x00008000L 14428c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_ICON_EN 0x00008000L 14438c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_CUR_EN_MASK 0x00010000L 14448c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_CUR_EN 0x00010000L 14458c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_CUR_MODE_MASK 0x00700000L 14468c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DISPLAY_DIS_MASK 0x00800000L 14478c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DISPLAY_DIS 0x00800000L 14488c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_EN_MASK 0x02000000L 14498c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_EN 0x02000000L 14508c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DISP_REQ_EN_B_MASK 0x04000000L 14518c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_DISP_REQ_EN_B 0x04000000L 14528c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_C_SYNC_EN_MASK 0x08000000L 14538c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_C_SYNC_EN 0x08000000L 14548c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_HSYNC_DIS_MASK 0x10000000L 14558c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_HSYNC_DIS 0x10000000L 14568c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_VSYNC_DIS_MASK 0x20000000L 14578c2ecf20Sopenharmony_ci#define CRTC2_GEN_CNTL__CRTC2_VSYNC_DIS 0x20000000L 14588c2ecf20Sopenharmony_ci 14598c2ecf20Sopenharmony_ci// AGP_CNTL 14608c2ecf20Sopenharmony_ci#define AGP_CNTL__MAX_IDLE_CLK_MASK 0x000000ffL 14618c2ecf20Sopenharmony_ci#define AGP_CNTL__HOLD_RD_FIFO_MASK 0x00000100L 14628c2ecf20Sopenharmony_ci#define AGP_CNTL__HOLD_RD_FIFO 0x00000100L 14638c2ecf20Sopenharmony_ci#define AGP_CNTL__HOLD_RQ_FIFO_MASK 0x00000200L 14648c2ecf20Sopenharmony_ci#define AGP_CNTL__HOLD_RQ_FIFO 0x00000200L 14658c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_2X_STBB_MASK 0x00000400L 14668c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_2X_STBB 0x00000400L 14678c2ecf20Sopenharmony_ci#define AGP_CNTL__FORCE_FULL_SBA_MASK 0x00000800L 14688c2ecf20Sopenharmony_ci#define AGP_CNTL__FORCE_FULL_SBA 0x00000800L 14698c2ecf20Sopenharmony_ci#define AGP_CNTL__SBA_DIS_MASK 0x00001000L 14708c2ecf20Sopenharmony_ci#define AGP_CNTL__SBA_DIS 0x00001000L 14718c2ecf20Sopenharmony_ci#define AGP_CNTL__AGP_REV_ID_MASK 0x00002000L 14728c2ecf20Sopenharmony_ci#define AGP_CNTL__AGP_REV_ID 0x00002000L 14738c2ecf20Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP4X_MASK 0x00004000L 14748c2ecf20Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP4X 0x00004000L 14758c2ecf20Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP2X4X_MASK 0x00008000L 14768c2ecf20Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP2X4X 0x00008000L 14778c2ecf20Sopenharmony_ci#define AGP_CNTL__FORCE_INT_VREF_MASK 0x00010000L 14788c2ecf20Sopenharmony_ci#define AGP_CNTL__FORCE_INT_VREF 0x00010000L 14798c2ecf20Sopenharmony_ci#define AGP_CNTL__PENDING_SLOTS_VAL_MASK 0x00060000L 14808c2ecf20Sopenharmony_ci#define AGP_CNTL__PENDING_SLOTS_SEL_MASK 0x00080000L 14818c2ecf20Sopenharmony_ci#define AGP_CNTL__PENDING_SLOTS_SEL 0x00080000L 14828c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_EXTENDED_AD_STB_2X_MASK 0x00100000L 14838c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_EXTENDED_AD_STB_2X 0x00100000L 14848c2ecf20Sopenharmony_ci#define AGP_CNTL__DIS_QUEUED_GNT_FIX_MASK 0x00200000L 14858c2ecf20Sopenharmony_ci#define AGP_CNTL__DIS_QUEUED_GNT_FIX 0x00200000L 14868c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_RDATA2X4X_MULTIRESET_MASK 0x00400000L 14878c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_RDATA2X4X_MULTIRESET 0x00400000L 14888c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_RBFCALM_MASK 0x00800000L 14898c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_RBFCALM 0x00800000L 14908c2ecf20Sopenharmony_ci#define AGP_CNTL__FORCE_EXT_VREF_MASK 0x01000000L 14918c2ecf20Sopenharmony_ci#define AGP_CNTL__FORCE_EXT_VREF 0x01000000L 14928c2ecf20Sopenharmony_ci#define AGP_CNTL__DIS_RBF_MASK 0x02000000L 14938c2ecf20Sopenharmony_ci#define AGP_CNTL__DIS_RBF 0x02000000L 14948c2ecf20Sopenharmony_ci#define AGP_CNTL__DELAY_FIRST_SBA_EN_MASK 0x04000000L 14958c2ecf20Sopenharmony_ci#define AGP_CNTL__DELAY_FIRST_SBA_EN 0x04000000L 14968c2ecf20Sopenharmony_ci#define AGP_CNTL__DELAY_FIRST_SBA_VAL_MASK 0x38000000L 14978c2ecf20Sopenharmony_ci#define AGP_CNTL__AGP_MISC_MASK 0xc0000000L 14988c2ecf20Sopenharmony_ci 14998c2ecf20Sopenharmony_ci// AGP_CNTL 15008c2ecf20Sopenharmony_ci#define AGP_CNTL__MAX_IDLE_CLK__SHIFT 0x00000000 15018c2ecf20Sopenharmony_ci#define AGP_CNTL__HOLD_RD_FIFO__SHIFT 0x00000008 15028c2ecf20Sopenharmony_ci#define AGP_CNTL__HOLD_RQ_FIFO__SHIFT 0x00000009 15038c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_2X_STBB__SHIFT 0x0000000a 15048c2ecf20Sopenharmony_ci#define AGP_CNTL__FORCE_FULL_SBA__SHIFT 0x0000000b 15058c2ecf20Sopenharmony_ci#define AGP_CNTL__SBA_DIS__SHIFT 0x0000000c 15068c2ecf20Sopenharmony_ci#define AGP_CNTL__AGP_REV_ID__SHIFT 0x0000000d 15078c2ecf20Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP4X__SHIFT 0x0000000e 15088c2ecf20Sopenharmony_ci#define AGP_CNTL__REG_CRIPPLE_AGP2X4X__SHIFT 0x0000000f 15098c2ecf20Sopenharmony_ci#define AGP_CNTL__FORCE_INT_VREF__SHIFT 0x00000010 15108c2ecf20Sopenharmony_ci#define AGP_CNTL__PENDING_SLOTS_VAL__SHIFT 0x00000011 15118c2ecf20Sopenharmony_ci#define AGP_CNTL__PENDING_SLOTS_SEL__SHIFT 0x00000013 15128c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_EXTENDED_AD_STB_2X__SHIFT 0x00000014 15138c2ecf20Sopenharmony_ci#define AGP_CNTL__DIS_QUEUED_GNT_FIX__SHIFT 0x00000015 15148c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_RDATA2X4X_MULTIRESET__SHIFT 0x00000016 15158c2ecf20Sopenharmony_ci#define AGP_CNTL__EN_RBFCALM__SHIFT 0x00000017 15168c2ecf20Sopenharmony_ci#define AGP_CNTL__FORCE_EXT_VREF__SHIFT 0x00000018 15178c2ecf20Sopenharmony_ci#define AGP_CNTL__DIS_RBF__SHIFT 0x00000019 15188c2ecf20Sopenharmony_ci#define AGP_CNTL__DELAY_FIRST_SBA_EN__SHIFT 0x0000001a 15198c2ecf20Sopenharmony_ci#define AGP_CNTL__DELAY_FIRST_SBA_VAL__SHIFT 0x0000001b 15208c2ecf20Sopenharmony_ci#define AGP_CNTL__AGP_MISC__SHIFT 0x0000001e 15218c2ecf20Sopenharmony_ci 15228c2ecf20Sopenharmony_ci// DISP_MISC_CNTL 15238c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH_PP_MASK 0x00000001L 15248c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH_PP 0x00000001L 15258c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_PP_MASK 0x00000002L 15268c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_PP 0x00000002L 15278c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_OV0_PP_MASK 0x00000004L 15288c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_OV0_PP 0x00000004L 15298c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH_SCLK_MASK 0x00000010L 15308c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH_SCLK 0x00000010L 15318c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_SCLK_MASK 0x00000020L 15328c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_SCLK 0x00000020L 15338c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_OV0_SCLK_MASK 0x00000040L 15348c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_OV0_SCLK 0x00000040L 15358c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SYNC_STRENGTH_MASK 0x00000300L 15368c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SYNC_PAD_FLOP_EN_MASK 0x00000400L 15378c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SYNC_PAD_FLOP_EN 0x00000400L 15388c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH2_PP_MASK 0x00001000L 15398c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH2_PP 0x00001000L 15408c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH2_SCLK_MASK 0x00008000L 15418c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_GRPH2_SCLK 0x00008000L 15428c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_LVDS_MASK 0x00010000L 15438c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_LVDS 0x00010000L 15448c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_TMDS_MASK 0x00020000L 15458c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_TMDS 0x00020000L 15468c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_DIG_TMDS_MASK 0x00040000L 15478c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_DIG_TMDS 0x00040000L 15488c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_TV_MASK 0x00080000L 15498c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__SOFT_RESET_TV 0x00080000L 15508c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__PALETTE2_MEM_RD_MARGIN_MASK 0x00f00000L 15518c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__PALETTE_MEM_RD_MARGIN_MASK 0x0f000000L 15528c2ecf20Sopenharmony_ci#define DISP_MISC_CNTL__RMX_BUF_MEM_RD_MARGIN_MASK 0xf0000000L 15538c2ecf20Sopenharmony_ci 15548c2ecf20Sopenharmony_ci// DISP_PWR_MAN 15558c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_PWR_MAN_D3_CRTC_EN_MASK 0x00000001L 15568c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_PWR_MAN_D3_CRTC_EN 0x00000001L 15578c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP2_PWR_MAN_D3_CRTC2_EN_MASK 0x00000010L 15588c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP2_PWR_MAN_D3_CRTC2_EN 0x00000010L 15598c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_PWR_MAN_DPMS_MASK 0x00000300L 15608c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_RST_MASK 0x00010000L 15618c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_RST 0x00010000L 15628c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_REG_RST_MASK 0x00020000L 15638c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_REG_RST 0x00020000L 15648c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_GRPH_RST_MASK 0x00040000L 15658c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_GRPH_RST 0x00040000L 15668c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_SUBPIC_RST_MASK 0x00080000L 15678c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_SUBPIC_RST 0x00080000L 15688c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_OV0_RST_MASK 0x00100000L 15698c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D3_OV0_RST 0x00100000L 15708c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_GRPH_RST_MASK 0x00200000L 15718c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_GRPH_RST 0x00200000L 15728c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_SUBPIC_RST_MASK 0x00400000L 15738c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_SUBPIC_RST 0x00400000L 15748c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_OV0_RST_MASK 0x00800000L 15758c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DISP_D1D2_OV0_RST 0x00800000L 15768c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DIG_TMDS_ENABLE_RST_MASK 0x01000000L 15778c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__DIG_TMDS_ENABLE_RST 0x01000000L 15788c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__TV_ENABLE_RST_MASK 0x02000000L 15798c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__TV_ENABLE_RST 0x02000000L 15808c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__AUTO_PWRUP_EN_MASK 0x04000000L 15818c2ecf20Sopenharmony_ci#define DISP_PWR_MAN__AUTO_PWRUP_EN 0x04000000L 15828c2ecf20Sopenharmony_ci 15838c2ecf20Sopenharmony_ci// MC_IND_INDEX 15848c2ecf20Sopenharmony_ci#define MC_IND_INDEX__MC_IND_ADDR_MASK 0x0000001fL 15858c2ecf20Sopenharmony_ci#define MC_IND_INDEX__MC_IND_WR_EN_MASK 0x00000100L 15868c2ecf20Sopenharmony_ci#define MC_IND_INDEX__MC_IND_WR_EN 0x00000100L 15878c2ecf20Sopenharmony_ci 15888c2ecf20Sopenharmony_ci// MC_IND_DATA 15898c2ecf20Sopenharmony_ci#define MC_IND_DATA__MC_IND_DATA_MASK 0xffffffffL 15908c2ecf20Sopenharmony_ci 15918c2ecf20Sopenharmony_ci// MC_CHP_IO_CNTL_A1 15928c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA__SHIFT 0x00000000 15938c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA__SHIFT 0x00000001 15948c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA__SHIFT 0x00000002 15958c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA__SHIFT 0x00000003 15968c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA__SHIFT 0x00000004 15978c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA__SHIFT 0x00000005 15988c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA__SHIFT 0x00000006 15998c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA__SHIFT 0x00000007 16008c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA__SHIFT 0x00000008 16018c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA__SHIFT 0x00000009 16028c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA__SHIFT 0x0000000a 16038c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_IO_MODEA__SHIFT 0x0000000c 16048c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_CKA__SHIFT 0x0000000e 16058c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_AA__SHIFT 0x00000010 16068c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_DQMA__SHIFT 0x00000012 16078c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_DQSA__SHIFT 0x00000014 16088c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA__SHIFT 0x00000016 16098c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA__SHIFT 0x00000017 16108c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_ENA__SHIFT 0x00000018 16118c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CLK_SELA__SHIFT 0x0000001a 16128c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA__SHIFT 0x0000001c 16138c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A__SHIFT 0x0000001e 16148c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A__SHIFT 0x0000001f 16158c2ecf20Sopenharmony_ci 16168c2ecf20Sopenharmony_ci// MC_CHP_IO_CNTL_B1 16178c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB__SHIFT 0x00000000 16188c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB__SHIFT 0x00000001 16198c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB__SHIFT 0x00000002 16208c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB__SHIFT 0x00000003 16218c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB__SHIFT 0x00000004 16228c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB__SHIFT 0x00000005 16238c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB__SHIFT 0x00000006 16248c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB__SHIFT 0x00000007 16258c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB__SHIFT 0x00000008 16268c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB__SHIFT 0x00000009 16278c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB__SHIFT 0x0000000a 16288c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_IO_MODEB__SHIFT 0x0000000c 16298c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_CKB__SHIFT 0x0000000e 16308c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_AB__SHIFT 0x00000010 16318c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_DQMB__SHIFT 0x00000012 16328c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_DQSB__SHIFT 0x00000014 16338c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB__SHIFT 0x00000016 16348c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB__SHIFT 0x00000017 16358c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_ENB__SHIFT 0x00000018 16368c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CLK_SELB__SHIFT 0x0000001a 16378c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB__SHIFT 0x0000001c 16388c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B__SHIFT 0x0000001e 16398c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B__SHIFT 0x0000001f 16408c2ecf20Sopenharmony_ci 16418c2ecf20Sopenharmony_ci// MC_CHP_IO_CNTL_A1 16428c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA_MASK 0x00000001L 16438c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA 0x00000001L 16448c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA_MASK 0x00000002L 16458c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA 0x00000002L 16468c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA_MASK 0x00000004L 16478c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA 0x00000004L 16488c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA_MASK 0x00000008L 16498c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA 0x00000008L 16508c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA_MASK 0x00000010L 16518c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA 0x00000010L 16528c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA_MASK 0x00000020L 16538c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA 0x00000020L 16548c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA_MASK 0x00000040L 16558c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA 0x00000040L 16568c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA_MASK 0x00000080L 16578c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA 0x00000080L 16588c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA_MASK 0x00000100L 16598c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA 0x00000100L 16608c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA_MASK 0x00000200L 16618c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA 0x00000200L 16628c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA_MASK 0x00000400L 16638c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA 0x00000400L 16648c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_IO_MODEA_MASK 0x00003000L 16658c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_CKA_MASK 0x0000c000L 16668c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_AA_MASK 0x00030000L 16678c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_DQMA_MASK 0x000c0000L 16688c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_REC_DQSA_MASK 0x00300000L 16698c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA_MASK 0x00400000L 16708c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA 0x00400000L 16718c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA_MASK 0x00800000L 16728c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA 0x00800000L 16738c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_SYNC_ENA_MASK 0x03000000L 16748c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CLK_SELA_MASK 0x0c000000L 16758c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA_MASK 0x10000000L 16768c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA 0x10000000L 16778c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A_MASK 0x40000000L 16788c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A 0x40000000L 16798c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A_MASK 0x80000000L 16808c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A 0x80000000L 16818c2ecf20Sopenharmony_ci 16828c2ecf20Sopenharmony_ci// MC_CHP_IO_CNTL_B1 16838c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB_MASK 0x00000001L 16848c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB 0x00000001L 16858c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB_MASK 0x00000002L 16868c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB 0x00000002L 16878c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB_MASK 0x00000004L 16888c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB 0x00000004L 16898c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB_MASK 0x00000008L 16908c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB 0x00000008L 16918c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB_MASK 0x00000010L 16928c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB 0x00000010L 16938c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB_MASK 0x00000020L 16948c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB 0x00000020L 16958c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB_MASK 0x00000040L 16968c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB 0x00000040L 16978c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB_MASK 0x00000080L 16988c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB 0x00000080L 16998c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB_MASK 0x00000100L 17008c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB 0x00000100L 17018c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB_MASK 0x00000200L 17028c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB 0x00000200L 17038c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB_MASK 0x00000400L 17048c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB 0x00000400L 17058c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_IO_MODEB_MASK 0x00003000L 17068c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_CKB_MASK 0x0000c000L 17078c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_AB_MASK 0x00030000L 17088c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_DQMB_MASK 0x000c0000L 17098c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_REC_DQSB_MASK 0x00300000L 17108c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB_MASK 0x00400000L 17118c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB 0x00400000L 17128c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB_MASK 0x00800000L 17138c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB 0x00800000L 17148c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_SYNC_ENB_MASK 0x03000000L 17158c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CLK_SELB_MASK 0x0c000000L 17168c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB_MASK 0x10000000L 17178c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB 0x10000000L 17188c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B_MASK 0x40000000L 17198c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B 0x40000000L 17208c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B_MASK 0x80000000L 17218c2ecf20Sopenharmony_ci#define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B 0x80000000L 17228c2ecf20Sopenharmony_ci 17238c2ecf20Sopenharmony_ci// MEM_SDRAM_MODE_REG 17248c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_MODE_REG_MASK 0x00007fffL 17258c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_WR_LATENCY_MASK 0x000f0000L 17268c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CAS_LATENCY_MASK 0x00700000L 17278c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY_MASK 0x00800000L 17288c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY 0x00800000L 17298c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY_MASK 0x01000000L 17308c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY 0x01000000L 17318c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD_MASK 0x02000000L 17328c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD 0x02000000L 17338c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA_MASK 0x04000000L 17348c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA 0x04000000L 17358c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR_MASK 0x08000000L 17368c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR 0x08000000L 17378c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE_MASK 0x10000000L 17388c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE 0x10000000L 17398c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_DDR_DLL_MASK 0x20000000L 17408c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_DDR_DLL 0x20000000L 17418c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE_MASK 0x40000000L 17428c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE 0x40000000L 17438c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET_MASK 0x80000000L 17448c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET 0x80000000L 17458c2ecf20Sopenharmony_ci 17468c2ecf20Sopenharmony_ci// MEM_SDRAM_MODE_REG 17478c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_MODE_REG__SHIFT 0x00000000 17488c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_WR_LATENCY__SHIFT 0x00000010 17498c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CAS_LATENCY__SHIFT 0x00000014 17508c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY__SHIFT 0x00000017 17518c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY__SHIFT 0x00000018 17528c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD__SHIFT 0x00000019 17538c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA__SHIFT 0x0000001a 17548c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR__SHIFT 0x0000001b 17558c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE__SHIFT 0x0000001c 17568c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_DDR_DLL__SHIFT 0x0000001d 17578c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE__SHIFT 0x0000001e 17588c2ecf20Sopenharmony_ci#define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET__SHIFT 0x0000001f 17598c2ecf20Sopenharmony_ci 17608c2ecf20Sopenharmony_ci// MEM_REFRESH_CNTL 17618c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_REFRESH_RATE_MASK 0x000000ffL 17628c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_REFRESH_DIS_MASK 0x00000100L 17638c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_REFRESH_DIS 0x00000100L 17648c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_DYNAMIC_CKE_MASK 0x00000200L 17658c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_DYNAMIC_CKE 0x00000200L 17668c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_TRFC_MASK 0x0000f000L 17678c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA0_ENABLE_MASK 0x00010000L 17688c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA0_ENABLE 0x00010000L 17698c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA0b_ENABLE_MASK 0x00020000L 17708c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA0b_ENABLE 0x00020000L 17718c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA1_ENABLE_MASK 0x00040000L 17728c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA1_ENABLE 0x00040000L 17738c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA1b_ENABLE_MASK 0x00080000L 17748c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKA1b_ENABLE 0x00080000L 17758c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKAFB_ENABLE_MASK 0x00100000L 17768c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKAFB_ENABLE 0x00100000L 17778c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__DLL_FB_SLCT_CKA_MASK 0x00c00000L 17788c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB0_ENABLE_MASK 0x01000000L 17798c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB0_ENABLE 0x01000000L 17808c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB0b_ENABLE_MASK 0x02000000L 17818c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB0b_ENABLE 0x02000000L 17828c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB1_ENABLE_MASK 0x04000000L 17838c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB1_ENABLE 0x04000000L 17848c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB1b_ENABLE_MASK 0x08000000L 17858c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKB1b_ENABLE 0x08000000L 17868c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKBFB_ENABLE_MASK 0x10000000L 17878c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__MEM_CLKBFB_ENABLE 0x10000000L 17888c2ecf20Sopenharmony_ci#define MEM_REFRESH_CNTL__DLL_FB_SLCT_CKB_MASK 0xc0000000L 17898c2ecf20Sopenharmony_ci 17908c2ecf20Sopenharmony_ci// MC_STATUS 17918c2ecf20Sopenharmony_ci#define MC_STATUS__MEM_PWRUP_COMPL_A_MASK 0x00000001L 17928c2ecf20Sopenharmony_ci#define MC_STATUS__MEM_PWRUP_COMPL_A 0x00000001L 17938c2ecf20Sopenharmony_ci#define MC_STATUS__MEM_PWRUP_COMPL_B_MASK 0x00000002L 17948c2ecf20Sopenharmony_ci#define MC_STATUS__MEM_PWRUP_COMPL_B 0x00000002L 17958c2ecf20Sopenharmony_ci#define MC_STATUS__MC_IDLE_MASK 0x00000004L 17968c2ecf20Sopenharmony_ci#define MC_STATUS__MC_IDLE 0x00000004L 17978c2ecf20Sopenharmony_ci#define MC_STATUS__IMP_N_VALUE_R_BACK_MASK 0x00000078L 17988c2ecf20Sopenharmony_ci#define MC_STATUS__IMP_P_VALUE_R_BACK_MASK 0x00000780L 17998c2ecf20Sopenharmony_ci#define MC_STATUS__TEST_OUT_R_BACK_MASK 0x00000800L 18008c2ecf20Sopenharmony_ci#define MC_STATUS__TEST_OUT_R_BACK 0x00000800L 18018c2ecf20Sopenharmony_ci#define MC_STATUS__DUMMY_OUT_R_BACK_MASK 0x00001000L 18028c2ecf20Sopenharmony_ci#define MC_STATUS__DUMMY_OUT_R_BACK 0x00001000L 18038c2ecf20Sopenharmony_ci#define MC_STATUS__IMP_N_VALUE_A_R_BACK_MASK 0x0001e000L 18048c2ecf20Sopenharmony_ci#define MC_STATUS__IMP_P_VALUE_A_R_BACK_MASK 0x001e0000L 18058c2ecf20Sopenharmony_ci#define MC_STATUS__IMP_N_VALUE_CK_R_BACK_MASK 0x01e00000L 18068c2ecf20Sopenharmony_ci#define MC_STATUS__IMP_P_VALUE_CK_R_BACK_MASK 0x1e000000L 18078c2ecf20Sopenharmony_ci 18088c2ecf20Sopenharmony_ci// MDLL_CKO 18098c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOA_SLEEP_MASK 0x00000001L 18108c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOA_SLEEP 0x00000001L 18118c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOA_RESET_MASK 0x00000002L 18128c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOA_RESET 0x00000002L 18138c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOA_RANGE_MASK 0x0000000cL 18148c2ecf20Sopenharmony_ci#define MDLL_CKO__ERSTA_SOUTSEL_MASK 0x00000030L 18158c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOA_FB_SEL_MASK 0x000000c0L 18168c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOA_REF_SKEW_MASK 0x00000700L 18178c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOA_FB_SKEW_MASK 0x00007000L 18188c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOA_BP_SEL_MASK 0x00008000L 18198c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOA_BP_SEL 0x00008000L 18208c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOB_SLEEP_MASK 0x00010000L 18218c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOB_SLEEP 0x00010000L 18228c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOB_RESET_MASK 0x00020000L 18238c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOB_RESET 0x00020000L 18248c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOB_RANGE_MASK 0x000c0000L 18258c2ecf20Sopenharmony_ci#define MDLL_CKO__ERSTB_SOUTSEL_MASK 0x00300000L 18268c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOB_FB_SEL_MASK 0x00c00000L 18278c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOB_REF_SKEW_MASK 0x07000000L 18288c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOB_FB_SKEW_MASK 0x70000000L 18298c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOB_BP_SEL_MASK 0x80000000L 18308c2ecf20Sopenharmony_ci#define MDLL_CKO__MCKOB_BP_SEL 0x80000000L 18318c2ecf20Sopenharmony_ci 18328c2ecf20Sopenharmony_ci// MDLL_RDCKA 18338c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_SLEEP_MASK 0x00000001L 18348c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_SLEEP 0x00000001L 18358c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_RESET_MASK 0x00000002L 18368c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_RESET 0x00000002L 18378c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_RANGE_MASK 0x0000000cL 18388c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_REF_SEL_MASK 0x00000030L 18398c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_FB_SEL_MASK 0x000000c0L 18408c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_REF_SKEW_MASK 0x00000700L 18418c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_SINSEL_MASK 0x00000800L 18428c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_SINSEL 0x00000800L 18438c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_FB_SKEW_MASK 0x00007000L 18448c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_BP_SEL_MASK 0x00008000L 18458c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA0_BP_SEL 0x00008000L 18468c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_SLEEP_MASK 0x00010000L 18478c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_SLEEP 0x00010000L 18488c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_RESET_MASK 0x00020000L 18498c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_RESET 0x00020000L 18508c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_RANGE_MASK 0x000c0000L 18518c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_REF_SEL_MASK 0x00300000L 18528c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_FB_SEL_MASK 0x00c00000L 18538c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_REF_SKEW_MASK 0x07000000L 18548c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_SINSEL_MASK 0x08000000L 18558c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_SINSEL 0x08000000L 18568c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_FB_SKEW_MASK 0x70000000L 18578c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_BP_SEL_MASK 0x80000000L 18588c2ecf20Sopenharmony_ci#define MDLL_RDCKA__MRDCKA1_BP_SEL 0x80000000L 18598c2ecf20Sopenharmony_ci 18608c2ecf20Sopenharmony_ci// MDLL_RDCKB 18618c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_SLEEP_MASK 0x00000001L 18628c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_SLEEP 0x00000001L 18638c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_RESET_MASK 0x00000002L 18648c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_RESET 0x00000002L 18658c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_RANGE_MASK 0x0000000cL 18668c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_REF_SEL_MASK 0x00000030L 18678c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_FB_SEL_MASK 0x000000c0L 18688c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_REF_SKEW_MASK 0x00000700L 18698c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_SINSEL_MASK 0x00000800L 18708c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_SINSEL 0x00000800L 18718c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_FB_SKEW_MASK 0x00007000L 18728c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_BP_SEL_MASK 0x00008000L 18738c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB0_BP_SEL 0x00008000L 18748c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_SLEEP_MASK 0x00010000L 18758c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_SLEEP 0x00010000L 18768c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_RESET_MASK 0x00020000L 18778c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_RESET 0x00020000L 18788c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_RANGE_MASK 0x000c0000L 18798c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_REF_SEL_MASK 0x00300000L 18808c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_FB_SEL_MASK 0x00c00000L 18818c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_REF_SKEW_MASK 0x07000000L 18828c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_SINSEL_MASK 0x08000000L 18838c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_SINSEL 0x08000000L 18848c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_FB_SKEW_MASK 0x70000000L 18858c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_BP_SEL_MASK 0x80000000L 18868c2ecf20Sopenharmony_ci#define MDLL_RDCKB__MRDCKB1_BP_SEL 0x80000000L 18878c2ecf20Sopenharmony_ci 18888c2ecf20Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKA_SLEEP 0x00000001L 18898c2ecf20Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKA_RESET 0x00000002L 18908c2ecf20Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKB_SLEEP 0x00000004L 18918c2ecf20Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKB_RESET 0x00000008L 18928c2ecf20Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKC_SLEEP 0x00000010L 18938c2ecf20Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKC_RESET 0x00000020L 18948c2ecf20Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKD_SLEEP 0x00000040L 18958c2ecf20Sopenharmony_ci#define MDLL_R300_RDCK__MRDCKD_RESET 0x00000080L 18968c2ecf20Sopenharmony_ci 18978c2ecf20Sopenharmony_ci#define pllCLK_PIN_CNTL 0x0001 18988c2ecf20Sopenharmony_ci#define pllPPLL_CNTL 0x0002 18998c2ecf20Sopenharmony_ci#define pllPPLL_REF_DIV 0x0003 19008c2ecf20Sopenharmony_ci#define pllPPLL_DIV_0 0x0004 19018c2ecf20Sopenharmony_ci#define pllPPLL_DIV_1 0x0005 19028c2ecf20Sopenharmony_ci#define pllPPLL_DIV_2 0x0006 19038c2ecf20Sopenharmony_ci#define pllPPLL_DIV_3 0x0007 19048c2ecf20Sopenharmony_ci#define pllVCLK_ECP_CNTL 0x0008 19058c2ecf20Sopenharmony_ci#define pllHTOTAL_CNTL 0x0009 19068c2ecf20Sopenharmony_ci#define pllM_SPLL_REF_FB_DIV 0x000A 19078c2ecf20Sopenharmony_ci#define pllAGP_PLL_CNTL 0x000B 19088c2ecf20Sopenharmony_ci#define pllSPLL_CNTL 0x000C 19098c2ecf20Sopenharmony_ci#define pllSCLK_CNTL 0x000D 19108c2ecf20Sopenharmony_ci#define pllMPLL_CNTL 0x000E 19118c2ecf20Sopenharmony_ci#define pllMDLL_CKO 0x000F 19128c2ecf20Sopenharmony_ci#define pllMDLL_RDCKA 0x0010 19138c2ecf20Sopenharmony_ci#define pllMDLL_RDCKB 0x0011 19148c2ecf20Sopenharmony_ci#define pllMCLK_CNTL 0x0012 19158c2ecf20Sopenharmony_ci#define pllPLL_TEST_CNTL 0x0013 19168c2ecf20Sopenharmony_ci#define pllCLK_PWRMGT_CNTL 0x0014 19178c2ecf20Sopenharmony_ci#define pllPLL_PWRMGT_CNTL 0x0015 19188c2ecf20Sopenharmony_ci#define pllCG_TEST_MACRO_RW_WRITE 0x0016 19198c2ecf20Sopenharmony_ci#define pllCG_TEST_MACRO_RW_READ 0x0017 19208c2ecf20Sopenharmony_ci#define pllCG_TEST_MACRO_RW_DATA 0x0018 19218c2ecf20Sopenharmony_ci#define pllCG_TEST_MACRO_RW_CNTL 0x0019 19228c2ecf20Sopenharmony_ci#define pllDISP_TEST_MACRO_RW_WRITE 0x001A 19238c2ecf20Sopenharmony_ci#define pllDISP_TEST_MACRO_RW_READ 0x001B 19248c2ecf20Sopenharmony_ci#define pllDISP_TEST_MACRO_RW_DATA 0x001C 19258c2ecf20Sopenharmony_ci#define pllDISP_TEST_MACRO_RW_CNTL 0x001D 19268c2ecf20Sopenharmony_ci#define pllSCLK_CNTL2 0x001E 19278c2ecf20Sopenharmony_ci#define pllMCLK_MISC 0x001F 19288c2ecf20Sopenharmony_ci#define pllTV_PLL_FINE_CNTL 0x0020 19298c2ecf20Sopenharmony_ci#define pllTV_PLL_CNTL 0x0021 19308c2ecf20Sopenharmony_ci#define pllTV_PLL_CNTL1 0x0022 19318c2ecf20Sopenharmony_ci#define pllTV_DTO_INCREMENTS 0x0023 19328c2ecf20Sopenharmony_ci#define pllSPLL_AUX_CNTL 0x0024 19338c2ecf20Sopenharmony_ci#define pllMPLL_AUX_CNTL 0x0025 19348c2ecf20Sopenharmony_ci#define pllP2PLL_CNTL 0x002A 19358c2ecf20Sopenharmony_ci#define pllP2PLL_REF_DIV 0x002B 19368c2ecf20Sopenharmony_ci#define pllP2PLL_DIV_0 0x002C 19378c2ecf20Sopenharmony_ci#define pllPIXCLKS_CNTL 0x002D 19388c2ecf20Sopenharmony_ci#define pllHTOTAL2_CNTL 0x002E 19398c2ecf20Sopenharmony_ci#define pllSSPLL_CNTL 0x0030 19408c2ecf20Sopenharmony_ci#define pllSSPLL_REF_DIV 0x0031 19418c2ecf20Sopenharmony_ci#define pllSSPLL_DIV_0 0x0032 19428c2ecf20Sopenharmony_ci#define pllSS_INT_CNTL 0x0033 19438c2ecf20Sopenharmony_ci#define pllSS_TST_CNTL 0x0034 19448c2ecf20Sopenharmony_ci#define pllSCLK_MORE_CNTL 0x0035 19458c2ecf20Sopenharmony_ci 19468c2ecf20Sopenharmony_ci#define ixMC_PERF_CNTL 0x0000 19478c2ecf20Sopenharmony_ci#define ixMC_PERF_SEL 0x0001 19488c2ecf20Sopenharmony_ci#define ixMC_PERF_REGION_0 0x0002 19498c2ecf20Sopenharmony_ci#define ixMC_PERF_REGION_1 0x0003 19508c2ecf20Sopenharmony_ci#define ixMC_PERF_COUNT_0 0x0004 19518c2ecf20Sopenharmony_ci#define ixMC_PERF_COUNT_1 0x0005 19528c2ecf20Sopenharmony_ci#define ixMC_PERF_COUNT_2 0x0006 19538c2ecf20Sopenharmony_ci#define ixMC_PERF_COUNT_3 0x0007 19548c2ecf20Sopenharmony_ci#define ixMC_PERF_COUNT_MEMCH_A 0x0008 19558c2ecf20Sopenharmony_ci#define ixMC_PERF_COUNT_MEMCH_B 0x0009 19568c2ecf20Sopenharmony_ci#define ixMC_IMP_CNTL 0x000A 19578c2ecf20Sopenharmony_ci#define ixMC_CHP_IO_CNTL_A0 0x000B 19588c2ecf20Sopenharmony_ci#define ixMC_CHP_IO_CNTL_A1 0x000C 19598c2ecf20Sopenharmony_ci#define ixMC_CHP_IO_CNTL_B0 0x000D 19608c2ecf20Sopenharmony_ci#define ixMC_CHP_IO_CNTL_B1 0x000E 19618c2ecf20Sopenharmony_ci#define ixMC_IMP_CNTL_0 0x000F 19628c2ecf20Sopenharmony_ci#define ixTC_MISMATCH_1 0x0010 19638c2ecf20Sopenharmony_ci#define ixTC_MISMATCH_2 0x0011 19648c2ecf20Sopenharmony_ci#define ixMC_BIST_CTRL 0x0012 19658c2ecf20Sopenharmony_ci#define ixREG_COLLAR_WRITE 0x0013 19668c2ecf20Sopenharmony_ci#define ixREG_COLLAR_READ 0x0014 19678c2ecf20Sopenharmony_ci#define ixR300_MC_IMP_CNTL 0x0018 19688c2ecf20Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_A0 0x0019 19698c2ecf20Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_A1 0x001a 19708c2ecf20Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_B0 0x001b 19718c2ecf20Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_B1 0x001c 19728c2ecf20Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_C0 0x001d 19738c2ecf20Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_C1 0x001e 19748c2ecf20Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_D0 0x001f 19758c2ecf20Sopenharmony_ci#define ixR300_MC_CHP_IO_CNTL_D1 0x0020 19768c2ecf20Sopenharmony_ci#define ixR300_MC_IMP_CNTL_0 0x0021 19778c2ecf20Sopenharmony_ci#define ixR300_MC_ELPIDA_CNTL 0x0022 19788c2ecf20Sopenharmony_ci#define ixR300_MC_CHP_IO_OE_CNTL_CD 0x0023 19798c2ecf20Sopenharmony_ci#define ixR300_MC_READ_CNTL_CD 0x0024 19808c2ecf20Sopenharmony_ci#define ixR300_MC_MC_INIT_WR_LAT_TIMER 0x0025 19818c2ecf20Sopenharmony_ci#define ixR300_MC_DEBUG_CNTL 0x0026 19828c2ecf20Sopenharmony_ci#define ixR300_MC_BIST_CNTL_0 0x0028 19838c2ecf20Sopenharmony_ci#define ixR300_MC_BIST_CNTL_1 0x0029 19848c2ecf20Sopenharmony_ci#define ixR300_MC_BIST_CNTL_2 0x002a 19858c2ecf20Sopenharmony_ci#define ixR300_MC_BIST_CNTL_3 0x002b 19868c2ecf20Sopenharmony_ci#define ixR300_MC_BIST_CNTL_4 0x002c 19878c2ecf20Sopenharmony_ci#define ixR300_MC_BIST_CNTL_5 0x002d 19888c2ecf20Sopenharmony_ci#define ixR300_MC_IMP_STATUS 0x002e 19898c2ecf20Sopenharmony_ci#define ixR300_MC_DLL_CNTL 0x002f 19908c2ecf20Sopenharmony_ci#define NB_TOM 0x15C 19918c2ecf20Sopenharmony_ci 19928c2ecf20Sopenharmony_ci 19938c2ecf20Sopenharmony_ci#endif /* _RADEON_H */ 19948c2ecf20Sopenharmony_ci 1995