1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 21da177e4SLinus Torvalds #ifndef _RADEON_H 31da177e4SLinus Torvalds #define _RADEON_H 41da177e4SLinus Torvalds 51da177e4SLinus Torvalds 61da177e4SLinus Torvalds #define RADEON_REGSIZE 0x4000 71da177e4SLinus Torvalds 81da177e4SLinus Torvalds 91da177e4SLinus Torvalds #define MM_INDEX 0x0000 101da177e4SLinus Torvalds #define MM_DATA 0x0004 111da177e4SLinus Torvalds #define BUS_CNTL 0x0030 121da177e4SLinus Torvalds #define HI_STAT 0x004C 131da177e4SLinus Torvalds #define BUS_CNTL1 0x0034 141da177e4SLinus Torvalds #define I2C_CNTL_1 0x0094 15fe86175bSRandy Dunlap #define CNFG_CNTL 0x00E0 16fe86175bSRandy Dunlap #define CNFG_MEMSIZE 0x00F8 17fe86175bSRandy Dunlap #define CNFG_APER_0_BASE 0x0100 18fe86175bSRandy Dunlap #define CNFG_APER_1_BASE 0x0104 19fe86175bSRandy Dunlap #define CNFG_APER_SIZE 0x0108 20fe86175bSRandy Dunlap #define CNFG_REG_1_BASE 0x010C 21fe86175bSRandy Dunlap #define CNFG_REG_APER_SIZE 0x0110 221da177e4SLinus Torvalds #define PAD_AGPINPUT_DELAY 0x0164 231da177e4SLinus Torvalds #define PAD_CTLR_STRENGTH 0x0168 241da177e4SLinus Torvalds #define PAD_CTLR_UPDATE 0x016C 251da177e4SLinus Torvalds #define PAD_CTLR_MISC 0x0aa0 261da177e4SLinus Torvalds #define AGP_CNTL 0x0174 271da177e4SLinus Torvalds #define BM_STATUS 0x0160 281da177e4SLinus Torvalds #define CAP0_TRIG_CNTL 0x0950 291da177e4SLinus Torvalds #define CAP1_TRIG_CNTL 0x09c0 301da177e4SLinus Torvalds #define VIPH_CONTROL 0x0C40 311da177e4SLinus Torvalds #define VENDOR_ID 0x0F00 321da177e4SLinus Torvalds #define DEVICE_ID 0x0F02 331da177e4SLinus Torvalds #define COMMAND 0x0F04 341da177e4SLinus Torvalds #define STATUS 0x0F06 351da177e4SLinus Torvalds #define REVISION_ID 0x0F08 361da177e4SLinus Torvalds #define REGPROG_INF 0x0F09 371da177e4SLinus Torvalds #define SUB_CLASS 0x0F0A 381da177e4SLinus Torvalds #define BASE_CODE 0x0F0B 391da177e4SLinus Torvalds #define CACHE_LINE 0x0F0C 401da177e4SLinus Torvalds #define LATENCY 0x0F0D 411da177e4SLinus Torvalds #define HEADER 0x0F0E 421da177e4SLinus Torvalds #define BIST 0x0F0F 431da177e4SLinus Torvalds #define REG_MEM_BASE 0x0F10 441da177e4SLinus Torvalds #define REG_IO_BASE 0x0F14 451da177e4SLinus Torvalds #define REG_REG_BASE 0x0F18 461da177e4SLinus Torvalds #define ADAPTER_ID 0x0F2C 471da177e4SLinus Torvalds #define BIOS_ROM 0x0F30 481da177e4SLinus Torvalds #define CAPABILITIES_PTR 0x0F34 491da177e4SLinus Torvalds #define INTERRUPT_LINE 0x0F3C 501da177e4SLinus Torvalds #define INTERRUPT_PIN 0x0F3D 511da177e4SLinus Torvalds #define MIN_GRANT 0x0F3E 521da177e4SLinus Torvalds #define MAX_LATENCY 0x0F3F 531da177e4SLinus Torvalds #define ADAPTER_ID_W 0x0F4C 541da177e4SLinus Torvalds #define PMI_CAP_ID 0x0F50 551da177e4SLinus Torvalds #define PMI_NXT_CAP_PTR 0x0F51 561da177e4SLinus Torvalds #define PMI_PMC_REG 0x0F52 571da177e4SLinus Torvalds #define PM_STATUS 0x0F54 581da177e4SLinus Torvalds #define PMI_DATA 0x0F57 591da177e4SLinus Torvalds #define AGP_CAP_ID 0x0F58 601da177e4SLinus Torvalds #define AGP_STATUS 0x0F5C 611da177e4SLinus Torvalds #define AGP_COMMAND 0x0F60 621da177e4SLinus Torvalds #define AIC_CTRL 0x01D0 631da177e4SLinus Torvalds #define AIC_STAT 0x01D4 641da177e4SLinus Torvalds #define AIC_PT_BASE 0x01D8 651da177e4SLinus Torvalds #define AIC_LO_ADDR 0x01DC 661da177e4SLinus Torvalds #define AIC_HI_ADDR 0x01E0 671da177e4SLinus Torvalds #define AIC_TLB_ADDR 0x01E4 681da177e4SLinus Torvalds #define AIC_TLB_DATA 0x01E8 691da177e4SLinus Torvalds #define DAC_CNTL 0x0058 701da177e4SLinus Torvalds #define DAC_CNTL2 0x007c 711da177e4SLinus Torvalds #define CRTC_GEN_CNTL 0x0050 721da177e4SLinus Torvalds #define MEM_CNTL 0x0140 731da177e4SLinus Torvalds #define MC_CNTL 0x0140 741da177e4SLinus Torvalds #define EXT_MEM_CNTL 0x0144 751da177e4SLinus Torvalds #define MC_TIMING_CNTL 0x0144 761da177e4SLinus Torvalds #define MC_AGP_LOCATION 0x014C 771da177e4SLinus Torvalds #define MEM_IO_CNTL_A0 0x0178 781da177e4SLinus Torvalds #define MEM_REFRESH_CNTL 0x0178 791da177e4SLinus Torvalds #define MEM_INIT_LATENCY_TIMER 0x0154 801da177e4SLinus Torvalds #define MC_INIT_GFX_LAT_TIMER 0x0154 811da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG 0x0158 821da177e4SLinus Torvalds #define AGP_BASE 0x0170 831da177e4SLinus Torvalds #define MEM_IO_CNTL_A1 0x017C 841da177e4SLinus Torvalds #define MC_READ_CNTL_AB 0x017C 851da177e4SLinus Torvalds #define MEM_IO_CNTL_B0 0x0180 861da177e4SLinus Torvalds #define MC_INIT_MISC_LAT_TIMER 0x0180 871da177e4SLinus Torvalds #define MEM_IO_CNTL_B1 0x0184 881da177e4SLinus Torvalds #define MC_IOPAD_CNTL 0x0184 891da177e4SLinus Torvalds #define MC_DEBUG 0x0188 901da177e4SLinus Torvalds #define MC_STATUS 0x0150 911da177e4SLinus Torvalds #define MEM_IO_OE_CNTL 0x018C 921da177e4SLinus Torvalds #define MC_CHIP_IO_OE_CNTL_AB 0x018C 931da177e4SLinus Torvalds #define MC_FB_LOCATION 0x0148 941da177e4SLinus Torvalds #define HOST_PATH_CNTL 0x0130 951da177e4SLinus Torvalds #define MEM_VGA_WP_SEL 0x0038 961da177e4SLinus Torvalds #define MEM_VGA_RP_SEL 0x003C 971da177e4SLinus Torvalds #define HDP_DEBUG 0x0138 981da177e4SLinus Torvalds #define SW_SEMAPHORE 0x013C 991da177e4SLinus Torvalds #define CRTC2_GEN_CNTL 0x03f8 1001da177e4SLinus Torvalds #define CRTC2_DISPLAY_BASE_ADDR 0x033c 1011da177e4SLinus Torvalds #define SURFACE_CNTL 0x0B00 1021da177e4SLinus Torvalds #define SURFACE0_LOWER_BOUND 0x0B04 1031da177e4SLinus Torvalds #define SURFACE1_LOWER_BOUND 0x0B14 1041da177e4SLinus Torvalds #define SURFACE2_LOWER_BOUND 0x0B24 1051da177e4SLinus Torvalds #define SURFACE3_LOWER_BOUND 0x0B34 1061da177e4SLinus Torvalds #define SURFACE4_LOWER_BOUND 0x0B44 1071da177e4SLinus Torvalds #define SURFACE5_LOWER_BOUND 0x0B54 1081da177e4SLinus Torvalds #define SURFACE6_LOWER_BOUND 0x0B64 1091da177e4SLinus Torvalds #define SURFACE7_LOWER_BOUND 0x0B74 1101da177e4SLinus Torvalds #define SURFACE0_UPPER_BOUND 0x0B08 1111da177e4SLinus Torvalds #define SURFACE1_UPPER_BOUND 0x0B18 1121da177e4SLinus Torvalds #define SURFACE2_UPPER_BOUND 0x0B28 1131da177e4SLinus Torvalds #define SURFACE3_UPPER_BOUND 0x0B38 1141da177e4SLinus Torvalds #define SURFACE4_UPPER_BOUND 0x0B48 1151da177e4SLinus Torvalds #define SURFACE5_UPPER_BOUND 0x0B58 1161da177e4SLinus Torvalds #define SURFACE6_UPPER_BOUND 0x0B68 1171da177e4SLinus Torvalds #define SURFACE7_UPPER_BOUND 0x0B78 1181da177e4SLinus Torvalds #define SURFACE0_INFO 0x0B0C 1191da177e4SLinus Torvalds #define SURFACE1_INFO 0x0B1C 1201da177e4SLinus Torvalds #define SURFACE2_INFO 0x0B2C 1211da177e4SLinus Torvalds #define SURFACE3_INFO 0x0B3C 1221da177e4SLinus Torvalds #define SURFACE4_INFO 0x0B4C 1231da177e4SLinus Torvalds #define SURFACE5_INFO 0x0B5C 1241da177e4SLinus Torvalds #define SURFACE6_INFO 0x0B6C 1251da177e4SLinus Torvalds #define SURFACE7_INFO 0x0B7C 1261da177e4SLinus Torvalds #define SURFACE_ACCESS_FLAGS 0x0BF8 1271da177e4SLinus Torvalds #define SURFACE_ACCESS_CLR 0x0BFC 1281da177e4SLinus Torvalds #define GEN_INT_CNTL 0x0040 1291da177e4SLinus Torvalds #define GEN_INT_STATUS 0x0044 1301da177e4SLinus Torvalds #define CRTC_EXT_CNTL 0x0054 1311da177e4SLinus Torvalds #define RB3D_CNTL 0x1C3C 1321da177e4SLinus Torvalds #define WAIT_UNTIL 0x1720 1331da177e4SLinus Torvalds #define ISYNC_CNTL 0x1724 1341da177e4SLinus Torvalds #define RBBM_GUICNTL 0x172C 1351da177e4SLinus Torvalds #define RBBM_STATUS 0x0E40 1361da177e4SLinus Torvalds #define RBBM_STATUS_alt_1 0x1740 1371da177e4SLinus Torvalds #define RBBM_CNTL 0x00EC 1381da177e4SLinus Torvalds #define RBBM_CNTL_alt_1 0x0E44 1391da177e4SLinus Torvalds #define RBBM_SOFT_RESET 0x00F0 1401da177e4SLinus Torvalds #define RBBM_SOFT_RESET_alt_1 0x0E48 1411da177e4SLinus Torvalds #define NQWAIT_UNTIL 0x0E50 1421da177e4SLinus Torvalds #define RBBM_DEBUG 0x0E6C 1431da177e4SLinus Torvalds #define RBBM_CMDFIFO_ADDR 0x0E70 1441da177e4SLinus Torvalds #define RBBM_CMDFIFO_DATAL 0x0E74 1451da177e4SLinus Torvalds #define RBBM_CMDFIFO_DATAH 0x0E78 1461da177e4SLinus Torvalds #define RBBM_CMDFIFO_STAT 0x0E7C 1471da177e4SLinus Torvalds #define CRTC_STATUS 0x005C 1481da177e4SLinus Torvalds #define GPIO_VGA_DDC 0x0060 1491da177e4SLinus Torvalds #define GPIO_DVI_DDC 0x0064 1501da177e4SLinus Torvalds #define GPIO_MONID 0x0068 1511da177e4SLinus Torvalds #define GPIO_CRT2_DDC 0x006c 1521da177e4SLinus Torvalds #define PALETTE_INDEX 0x00B0 1531da177e4SLinus Torvalds #define PALETTE_DATA 0x00B4 1541da177e4SLinus Torvalds #define PALETTE_30_DATA 0x00B8 1551da177e4SLinus Torvalds #define CRTC_H_TOTAL_DISP 0x0200 1561da177e4SLinus Torvalds #define CRTC_H_SYNC_STRT_WID 0x0204 1571da177e4SLinus Torvalds #define CRTC_V_TOTAL_DISP 0x0208 1581da177e4SLinus Torvalds #define CRTC_V_SYNC_STRT_WID 0x020C 1591da177e4SLinus Torvalds #define CRTC_VLINE_CRNT_VLINE 0x0210 1601da177e4SLinus Torvalds #define CRTC_CRNT_FRAME 0x0214 1611da177e4SLinus Torvalds #define CRTC_GUI_TRIG_VLINE 0x0218 1621da177e4SLinus Torvalds #define CRTC_DEBUG 0x021C 1631da177e4SLinus Torvalds #define CRTC_OFFSET_RIGHT 0x0220 1641da177e4SLinus Torvalds #define CRTC_OFFSET 0x0224 1651da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL 0x0228 1661da177e4SLinus Torvalds #define CRTC_PITCH 0x022C 1671da177e4SLinus Torvalds #define OVR_CLR 0x0230 1681da177e4SLinus Torvalds #define OVR_WID_LEFT_RIGHT 0x0234 1691da177e4SLinus Torvalds #define OVR_WID_TOP_BOTTOM 0x0238 1701da177e4SLinus Torvalds #define DISPLAY_BASE_ADDR 0x023C 1711da177e4SLinus Torvalds #define SNAPSHOT_VH_COUNTS 0x0240 1721da177e4SLinus Torvalds #define SNAPSHOT_F_COUNT 0x0244 1731da177e4SLinus Torvalds #define N_VIF_COUNT 0x0248 1741da177e4SLinus Torvalds #define SNAPSHOT_VIF_COUNT 0x024C 1751da177e4SLinus Torvalds #define FP_CRTC_H_TOTAL_DISP 0x0250 1761da177e4SLinus Torvalds #define FP_CRTC_V_TOTAL_DISP 0x0254 1771da177e4SLinus Torvalds #define CRT_CRTC_H_SYNC_STRT_WID 0x0258 1781da177e4SLinus Torvalds #define CRT_CRTC_V_SYNC_STRT_WID 0x025C 1791da177e4SLinus Torvalds #define CUR_OFFSET 0x0260 1801da177e4SLinus Torvalds #define CUR_HORZ_VERT_POSN 0x0264 1811da177e4SLinus Torvalds #define CUR_HORZ_VERT_OFF 0x0268 1821da177e4SLinus Torvalds #define CUR_CLR0 0x026C 1831da177e4SLinus Torvalds #define CUR_CLR1 0x0270 1841da177e4SLinus Torvalds #define FP_HORZ_VERT_ACTIVE 0x0278 1851da177e4SLinus Torvalds #define CRTC_MORE_CNTL 0x027C 1861da177e4SLinus Torvalds #define CRTC_H_CUTOFF_ACTIVE_EN (1<<4) 1871da177e4SLinus Torvalds #define CRTC_V_CUTOFF_ACTIVE_EN (1<<5) 1881da177e4SLinus Torvalds #define DAC_EXT_CNTL 0x0280 1891da177e4SLinus Torvalds #define FP_GEN_CNTL 0x0284 1901da177e4SLinus Torvalds #define FP_HORZ_STRETCH 0x028C 1911da177e4SLinus Torvalds #define FP_VERT_STRETCH 0x0290 1921da177e4SLinus Torvalds #define FP_H_SYNC_STRT_WID 0x02C4 1931da177e4SLinus Torvalds #define FP_V_SYNC_STRT_WID 0x02C8 1941da177e4SLinus Torvalds #define AUX_WINDOW_HORZ_CNTL 0x02D8 1951da177e4SLinus Torvalds #define AUX_WINDOW_VERT_CNTL 0x02DC 1961da177e4SLinus Torvalds //#define DDA_CONFIG 0x02e0 1971da177e4SLinus Torvalds //#define DDA_ON_OFF 0x02e4 1981da177e4SLinus Torvalds #define DVI_I2C_CNTL_1 0x02e4 1991da177e4SLinus Torvalds #define GRPH_BUFFER_CNTL 0x02F0 2001da177e4SLinus Torvalds #define GRPH2_BUFFER_CNTL 0x03F0 2011da177e4SLinus Torvalds #define VGA_BUFFER_CNTL 0x02F4 2021da177e4SLinus Torvalds #define OV0_Y_X_START 0x0400 2031da177e4SLinus Torvalds #define OV0_Y_X_END 0x0404 2041da177e4SLinus Torvalds #define OV0_PIPELINE_CNTL 0x0408 2051da177e4SLinus Torvalds #define OV0_REG_LOAD_CNTL 0x0410 2061da177e4SLinus Torvalds #define OV0_SCALE_CNTL 0x0420 2071da177e4SLinus Torvalds #define OV0_V_INC 0x0424 2081da177e4SLinus Torvalds #define OV0_P1_V_ACCUM_INIT 0x0428 2091da177e4SLinus Torvalds #define OV0_P23_V_ACCUM_INIT 0x042C 2101da177e4SLinus Torvalds #define OV0_P1_BLANK_LINES_AT_TOP 0x0430 2111da177e4SLinus Torvalds #define OV0_P23_BLANK_LINES_AT_TOP 0x0434 2121da177e4SLinus Torvalds #define OV0_BASE_ADDR 0x043C 2131da177e4SLinus Torvalds #define OV0_VID_BUF0_BASE_ADRS 0x0440 2141da177e4SLinus Torvalds #define OV0_VID_BUF1_BASE_ADRS 0x0444 2151da177e4SLinus Torvalds #define OV0_VID_BUF2_BASE_ADRS 0x0448 2161da177e4SLinus Torvalds #define OV0_VID_BUF3_BASE_ADRS 0x044C 2171da177e4SLinus Torvalds #define OV0_VID_BUF4_BASE_ADRS 0x0450 2181da177e4SLinus Torvalds #define OV0_VID_BUF5_BASE_ADRS 0x0454 2191da177e4SLinus Torvalds #define OV0_VID_BUF_PITCH0_VALUE 0x0460 2201da177e4SLinus Torvalds #define OV0_VID_BUF_PITCH1_VALUE 0x0464 2211da177e4SLinus Torvalds #define OV0_AUTO_FLIP_CNTRL 0x0470 2221da177e4SLinus Torvalds #define OV0_DEINTERLACE_PATTERN 0x0474 2231da177e4SLinus Torvalds #define OV0_SUBMIT_HISTORY 0x0478 2241da177e4SLinus Torvalds #define OV0_H_INC 0x0480 2251da177e4SLinus Torvalds #define OV0_STEP_BY 0x0484 2261da177e4SLinus Torvalds #define OV0_P1_H_ACCUM_INIT 0x0488 2271da177e4SLinus Torvalds #define OV0_P23_H_ACCUM_INIT 0x048C 2281da177e4SLinus Torvalds #define OV0_P1_X_START_END 0x0494 2291da177e4SLinus Torvalds #define OV0_P2_X_START_END 0x0498 2301da177e4SLinus Torvalds #define OV0_P3_X_START_END 0x049C 2311da177e4SLinus Torvalds #define OV0_FILTER_CNTL 0x04A0 2321da177e4SLinus Torvalds #define OV0_FOUR_TAP_COEF_0 0x04B0 2331da177e4SLinus Torvalds #define OV0_FOUR_TAP_COEF_1 0x04B4 2341da177e4SLinus Torvalds #define OV0_FOUR_TAP_COEF_2 0x04B8 2351da177e4SLinus Torvalds #define OV0_FOUR_TAP_COEF_3 0x04BC 2361da177e4SLinus Torvalds #define OV0_FOUR_TAP_COEF_4 0x04C0 2371da177e4SLinus Torvalds #define OV0_FLAG_CNTRL 0x04DC 2381da177e4SLinus Torvalds #define OV0_SLICE_CNTL 0x04E0 2391da177e4SLinus Torvalds #define OV0_VID_KEY_CLR_LOW 0x04E4 2401da177e4SLinus Torvalds #define OV0_VID_KEY_CLR_HIGH 0x04E8 2411da177e4SLinus Torvalds #define OV0_GRPH_KEY_CLR_LOW 0x04EC 2421da177e4SLinus Torvalds #define OV0_GRPH_KEY_CLR_HIGH 0x04F0 2431da177e4SLinus Torvalds #define OV0_KEY_CNTL 0x04F4 2441da177e4SLinus Torvalds #define OV0_TEST 0x04F8 2451da177e4SLinus Torvalds #define SUBPIC_CNTL 0x0540 2461da177e4SLinus Torvalds #define SUBPIC_DEFCOLCON 0x0544 2471da177e4SLinus Torvalds #define SUBPIC_Y_X_START 0x054C 2481da177e4SLinus Torvalds #define SUBPIC_Y_X_END 0x0550 2491da177e4SLinus Torvalds #define SUBPIC_V_INC 0x0554 2501da177e4SLinus Torvalds #define SUBPIC_H_INC 0x0558 2511da177e4SLinus Torvalds #define SUBPIC_BUF0_OFFSET 0x055C 2521da177e4SLinus Torvalds #define SUBPIC_BUF1_OFFSET 0x0560 2531da177e4SLinus Torvalds #define SUBPIC_LC0_OFFSET 0x0564 2541da177e4SLinus Torvalds #define SUBPIC_LC1_OFFSET 0x0568 2551da177e4SLinus Torvalds #define SUBPIC_PITCH 0x056C 2561da177e4SLinus Torvalds #define SUBPIC_BTN_HLI_COLCON 0x0570 2571da177e4SLinus Torvalds #define SUBPIC_BTN_HLI_Y_X_START 0x0574 2581da177e4SLinus Torvalds #define SUBPIC_BTN_HLI_Y_X_END 0x0578 2591da177e4SLinus Torvalds #define SUBPIC_PALETTE_INDEX 0x057C 2601da177e4SLinus Torvalds #define SUBPIC_PALETTE_DATA 0x0580 2611da177e4SLinus Torvalds #define SUBPIC_H_ACCUM_INIT 0x0584 2621da177e4SLinus Torvalds #define SUBPIC_V_ACCUM_INIT 0x0588 2631da177e4SLinus Torvalds #define DISP_MISC_CNTL 0x0D00 2641da177e4SLinus Torvalds #define DAC_MACRO_CNTL 0x0D04 2651da177e4SLinus Torvalds #define DISP_PWR_MAN 0x0D08 2661da177e4SLinus Torvalds #define DISP_TEST_DEBUG_CNTL 0x0D10 2671da177e4SLinus Torvalds #define DISP_HW_DEBUG 0x0D14 2681da177e4SLinus Torvalds #define DAC_CRC_SIG1 0x0D18 2691da177e4SLinus Torvalds #define DAC_CRC_SIG2 0x0D1C 2701da177e4SLinus Torvalds #define OV0_LIN_TRANS_A 0x0D20 2711da177e4SLinus Torvalds #define OV0_LIN_TRANS_B 0x0D24 2721da177e4SLinus Torvalds #define OV0_LIN_TRANS_C 0x0D28 2731da177e4SLinus Torvalds #define OV0_LIN_TRANS_D 0x0D2C 2741da177e4SLinus Torvalds #define OV0_LIN_TRANS_E 0x0D30 2751da177e4SLinus Torvalds #define OV0_LIN_TRANS_F 0x0D34 2761da177e4SLinus Torvalds #define OV0_GAMMA_0_F 0x0D40 2771da177e4SLinus Torvalds #define OV0_GAMMA_10_1F 0x0D44 2781da177e4SLinus Torvalds #define OV0_GAMMA_20_3F 0x0D48 2791da177e4SLinus Torvalds #define OV0_GAMMA_40_7F 0x0D4C 2801da177e4SLinus Torvalds #define OV0_GAMMA_380_3BF 0x0D50 2811da177e4SLinus Torvalds #define OV0_GAMMA_3C0_3FF 0x0D54 2821da177e4SLinus Torvalds #define DISP_MERGE_CNTL 0x0D60 2831da177e4SLinus Torvalds #define DISP_OUTPUT_CNTL 0x0D64 2841da177e4SLinus Torvalds #define DISP_LIN_TRANS_GRPH_A 0x0D80 2851da177e4SLinus Torvalds #define DISP_LIN_TRANS_GRPH_B 0x0D84 2861da177e4SLinus Torvalds #define DISP_LIN_TRANS_GRPH_C 0x0D88 2871da177e4SLinus Torvalds #define DISP_LIN_TRANS_GRPH_D 0x0D8C 2881da177e4SLinus Torvalds #define DISP_LIN_TRANS_GRPH_E 0x0D90 2891da177e4SLinus Torvalds #define DISP_LIN_TRANS_GRPH_F 0x0D94 2901da177e4SLinus Torvalds #define DISP_LIN_TRANS_VID_A 0x0D98 2911da177e4SLinus Torvalds #define DISP_LIN_TRANS_VID_B 0x0D9C 2921da177e4SLinus Torvalds #define DISP_LIN_TRANS_VID_C 0x0DA0 2931da177e4SLinus Torvalds #define DISP_LIN_TRANS_VID_D 0x0DA4 2941da177e4SLinus Torvalds #define DISP_LIN_TRANS_VID_E 0x0DA8 2951da177e4SLinus Torvalds #define DISP_LIN_TRANS_VID_F 0x0DAC 2961da177e4SLinus Torvalds #define RMX_HORZ_FILTER_0TAP_COEF 0x0DB0 2971da177e4SLinus Torvalds #define RMX_HORZ_FILTER_1TAP_COEF 0x0DB4 2981da177e4SLinus Torvalds #define RMX_HORZ_FILTER_2TAP_COEF 0x0DB8 2991da177e4SLinus Torvalds #define RMX_HORZ_PHASE 0x0DBC 3001da177e4SLinus Torvalds #define DAC_EMBEDDED_SYNC_CNTL 0x0DC0 3011da177e4SLinus Torvalds #define DAC_BROAD_PULSE 0x0DC4 3021da177e4SLinus Torvalds #define DAC_SKEW_CLKS 0x0DC8 3031da177e4SLinus Torvalds #define DAC_INCR 0x0DCC 3041da177e4SLinus Torvalds #define DAC_NEG_SYNC_LEVEL 0x0DD0 3051da177e4SLinus Torvalds #define DAC_POS_SYNC_LEVEL 0x0DD4 3061da177e4SLinus Torvalds #define DAC_BLANK_LEVEL 0x0DD8 3071da177e4SLinus Torvalds #define CLOCK_CNTL_INDEX 0x0008 3081da177e4SLinus Torvalds #define CLOCK_CNTL_DATA 0x000C 3091da177e4SLinus Torvalds #define CP_RB_CNTL 0x0704 3101da177e4SLinus Torvalds #define CP_RB_BASE 0x0700 3111da177e4SLinus Torvalds #define CP_RB_RPTR_ADDR 0x070C 3121da177e4SLinus Torvalds #define CP_RB_RPTR 0x0710 3131da177e4SLinus Torvalds #define CP_RB_WPTR 0x0714 3141da177e4SLinus Torvalds #define CP_RB_WPTR_DELAY 0x0718 3151da177e4SLinus Torvalds #define CP_IB_BASE 0x0738 3161da177e4SLinus Torvalds #define CP_IB_BUFSZ 0x073C 3171da177e4SLinus Torvalds #define SCRATCH_REG0 0x15E0 3181da177e4SLinus Torvalds #define GUI_SCRATCH_REG0 0x15E0 3191da177e4SLinus Torvalds #define SCRATCH_REG1 0x15E4 3201da177e4SLinus Torvalds #define GUI_SCRATCH_REG1 0x15E4 3211da177e4SLinus Torvalds #define SCRATCH_REG2 0x15E8 3221da177e4SLinus Torvalds #define GUI_SCRATCH_REG2 0x15E8 3231da177e4SLinus Torvalds #define SCRATCH_REG3 0x15EC 3241da177e4SLinus Torvalds #define GUI_SCRATCH_REG3 0x15EC 3251da177e4SLinus Torvalds #define SCRATCH_REG4 0x15F0 3261da177e4SLinus Torvalds #define GUI_SCRATCH_REG4 0x15F0 3271da177e4SLinus Torvalds #define SCRATCH_REG5 0x15F4 3281da177e4SLinus Torvalds #define GUI_SCRATCH_REG5 0x15F4 3291da177e4SLinus Torvalds #define SCRATCH_UMSK 0x0770 3301da177e4SLinus Torvalds #define SCRATCH_ADDR 0x0774 3311da177e4SLinus Torvalds #define DP_BRUSH_FRGD_CLR 0x147C 3321da177e4SLinus Torvalds #define DP_BRUSH_BKGD_CLR 0x1478 3331da177e4SLinus Torvalds #define DST_LINE_START 0x1600 3341da177e4SLinus Torvalds #define DST_LINE_END 0x1604 3351da177e4SLinus Torvalds #define SRC_OFFSET 0x15AC 3361da177e4SLinus Torvalds #define SRC_PITCH 0x15B0 3371da177e4SLinus Torvalds #define SRC_TILE 0x1704 3381da177e4SLinus Torvalds #define SRC_PITCH_OFFSET 0x1428 3391da177e4SLinus Torvalds #define SRC_X 0x1414 3401da177e4SLinus Torvalds #define SRC_Y 0x1418 3411da177e4SLinus Torvalds #define SRC_X_Y 0x1590 3421da177e4SLinus Torvalds #define SRC_Y_X 0x1434 3431da177e4SLinus Torvalds #define DST_Y_X 0x1438 3441da177e4SLinus Torvalds #define DST_WIDTH_HEIGHT 0x1598 3451da177e4SLinus Torvalds #define DST_HEIGHT_WIDTH 0x143c 3461da177e4SLinus Torvalds #define DST_OFFSET 0x1404 3471da177e4SLinus Torvalds #define SRC_CLUT_ADDRESS 0x1780 3481da177e4SLinus Torvalds #define SRC_CLUT_DATA 0x1784 3491da177e4SLinus Torvalds #define SRC_CLUT_DATA_RD 0x1788 3501da177e4SLinus Torvalds #define HOST_DATA0 0x17C0 3511da177e4SLinus Torvalds #define HOST_DATA1 0x17C4 3521da177e4SLinus Torvalds #define HOST_DATA2 0x17C8 3531da177e4SLinus Torvalds #define HOST_DATA3 0x17CC 3541da177e4SLinus Torvalds #define HOST_DATA4 0x17D0 3551da177e4SLinus Torvalds #define HOST_DATA5 0x17D4 3561da177e4SLinus Torvalds #define HOST_DATA6 0x17D8 3571da177e4SLinus Torvalds #define HOST_DATA7 0x17DC 3581da177e4SLinus Torvalds #define HOST_DATA_LAST 0x17E0 3591da177e4SLinus Torvalds #define DP_SRC_ENDIAN 0x15D4 3601da177e4SLinus Torvalds #define DP_SRC_FRGD_CLR 0x15D8 3611da177e4SLinus Torvalds #define DP_SRC_BKGD_CLR 0x15DC 3621da177e4SLinus Torvalds #define SC_LEFT 0x1640 3631da177e4SLinus Torvalds #define SC_RIGHT 0x1644 3641da177e4SLinus Torvalds #define SC_TOP 0x1648 3651da177e4SLinus Torvalds #define SC_BOTTOM 0x164C 3661da177e4SLinus Torvalds #define SRC_SC_RIGHT 0x1654 3671da177e4SLinus Torvalds #define SRC_SC_BOTTOM 0x165C 3681da177e4SLinus Torvalds #define DP_CNTL 0x16C0 3691da177e4SLinus Torvalds #define DP_CNTL_XDIR_YDIR_YMAJOR 0x16D0 3701da177e4SLinus Torvalds #define DP_DATATYPE 0x16C4 3711da177e4SLinus Torvalds #define DP_MIX 0x16C8 3721da177e4SLinus Torvalds #define DP_WRITE_MSK 0x16CC 3731da177e4SLinus Torvalds #define DP_XOP 0x17F8 3741da177e4SLinus Torvalds #define CLR_CMP_CLR_SRC 0x15C4 3751da177e4SLinus Torvalds #define CLR_CMP_CLR_DST 0x15C8 3761da177e4SLinus Torvalds #define CLR_CMP_CNTL 0x15C0 3771da177e4SLinus Torvalds #define CLR_CMP_MSK 0x15CC 3781da177e4SLinus Torvalds #define DSTCACHE_MODE 0x1710 3791da177e4SLinus Torvalds #define DSTCACHE_CTLSTAT 0x1714 3801da177e4SLinus Torvalds #define DEFAULT_PITCH_OFFSET 0x16E0 3811da177e4SLinus Torvalds #define DEFAULT_SC_BOTTOM_RIGHT 0x16E8 3821da177e4SLinus Torvalds #define DEFAULT_SC_TOP_LEFT 0x16EC 3831da177e4SLinus Torvalds #define SRC_PITCH_OFFSET 0x1428 3841da177e4SLinus Torvalds #define DST_PITCH_OFFSET 0x142C 3851da177e4SLinus Torvalds #define DP_GUI_MASTER_CNTL 0x146C 3861da177e4SLinus Torvalds #define SC_TOP_LEFT 0x16EC 3871da177e4SLinus Torvalds #define SC_BOTTOM_RIGHT 0x16F0 3881da177e4SLinus Torvalds #define SRC_SC_BOTTOM_RIGHT 0x16F4 3891da177e4SLinus Torvalds #define RB2D_DSTCACHE_MODE 0x3428 390a6c0c37dSBenjamin Herrenschmidt #define RB2D_DSTCACHE_CTLSTAT_broken 0x342C /* do not use */ 3911da177e4SLinus Torvalds #define LVDS_GEN_CNTL 0x02d0 3921da177e4SLinus Torvalds #define LVDS_PLL_CNTL 0x02d4 3931da177e4SLinus Torvalds #define FP2_GEN_CNTL 0x0288 3941da177e4SLinus Torvalds #define TMDS_CNTL 0x0294 3951da177e4SLinus Torvalds #define TMDS_CRC 0x02a0 3961da177e4SLinus Torvalds #define TMDS_TRANSMITTER_CNTL 0x02a4 3971da177e4SLinus Torvalds #define MPP_TB_CONFIG 0x01c0 3981da177e4SLinus Torvalds #define PAMAC0_DLY_CNTL 0x0a94 3991da177e4SLinus Torvalds #define PAMAC1_DLY_CNTL 0x0a98 4001da177e4SLinus Torvalds #define PAMAC2_DLY_CNTL 0x0a9c 4011da177e4SLinus Torvalds #define FW_CNTL 0x0118 4021da177e4SLinus Torvalds #define FCP_CNTL 0x0910 4031da177e4SLinus Torvalds #define VGA_DDA_ON_OFF 0x02ec 4041da177e4SLinus Torvalds #define TV_MASTER_CNTL 0x0800 4051da177e4SLinus Torvalds 4061da177e4SLinus Torvalds //#define BASE_CODE 0x0f0b 4071da177e4SLinus Torvalds #define BIOS_0_SCRATCH 0x0010 4081da177e4SLinus Torvalds #define BIOS_1_SCRATCH 0x0014 4091da177e4SLinus Torvalds #define BIOS_2_SCRATCH 0x0018 4101da177e4SLinus Torvalds #define BIOS_3_SCRATCH 0x001c 4111da177e4SLinus Torvalds #define BIOS_4_SCRATCH 0x0020 4121da177e4SLinus Torvalds #define BIOS_5_SCRATCH 0x0024 4131da177e4SLinus Torvalds #define BIOS_6_SCRATCH 0x0028 4141da177e4SLinus Torvalds #define BIOS_7_SCRATCH 0x002c 4151da177e4SLinus Torvalds 4161da177e4SLinus Torvalds #define HDP_SOFT_RESET (1 << 26) 4171da177e4SLinus Torvalds 4181da177e4SLinus Torvalds #define TV_DAC_CNTL 0x088c 4191da177e4SLinus Torvalds #define GPIOPAD_MASK 0x0198 4201da177e4SLinus Torvalds #define GPIOPAD_A 0x019c 4211da177e4SLinus Torvalds #define GPIOPAD_EN 0x01a0 4221da177e4SLinus Torvalds #define GPIOPAD_Y 0x01a4 4231da177e4SLinus Torvalds #define ZV_LCDPAD_MASK 0x01a8 4241da177e4SLinus Torvalds #define ZV_LCDPAD_A 0x01ac 4251da177e4SLinus Torvalds #define ZV_LCDPAD_EN 0x01b0 4261da177e4SLinus Torvalds #define ZV_LCDPAD_Y 0x01b4 4271da177e4SLinus Torvalds 4281da177e4SLinus Torvalds /* PLL Registers */ 4291da177e4SLinus Torvalds #define CLK_PIN_CNTL 0x0001 4301da177e4SLinus Torvalds #define PPLL_CNTL 0x0002 4311da177e4SLinus Torvalds #define PPLL_REF_DIV 0x0003 4321da177e4SLinus Torvalds #define PPLL_DIV_0 0x0004 4331da177e4SLinus Torvalds #define PPLL_DIV_1 0x0005 4341da177e4SLinus Torvalds #define PPLL_DIV_2 0x0006 4351da177e4SLinus Torvalds #define PPLL_DIV_3 0x0007 4361da177e4SLinus Torvalds #define VCLK_ECP_CNTL 0x0008 4371da177e4SLinus Torvalds #define HTOTAL_CNTL 0x0009 4381da177e4SLinus Torvalds #define M_SPLL_REF_FB_DIV 0x000a 4391da177e4SLinus Torvalds #define AGP_PLL_CNTL 0x000b 4401da177e4SLinus Torvalds #define SPLL_CNTL 0x000c 4411da177e4SLinus Torvalds #define SCLK_CNTL 0x000d 4421da177e4SLinus Torvalds #define MPLL_CNTL 0x000e 4431da177e4SLinus Torvalds #define MDLL_CKO 0x000f 4441da177e4SLinus Torvalds #define MDLL_RDCKA 0x0010 4451da177e4SLinus Torvalds #define MCLK_CNTL 0x0012 4461da177e4SLinus Torvalds #define AGP_PLL_CNTL 0x000b 4471da177e4SLinus Torvalds #define PLL_TEST_CNTL 0x0013 4481da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL 0x0014 4491da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL 0x0015 4501da177e4SLinus Torvalds #define MCLK_MISC 0x001f 4511da177e4SLinus Torvalds #define P2PLL_CNTL 0x002a 4521da177e4SLinus Torvalds #define P2PLL_REF_DIV 0x002b 4531da177e4SLinus Torvalds #define PIXCLKS_CNTL 0x002d 4541da177e4SLinus Torvalds #define SCLK_MORE_CNTL 0x0035 4551da177e4SLinus Torvalds 4561da177e4SLinus Torvalds /* MCLK_CNTL bit constants */ 4571da177e4SLinus Torvalds #define FORCEON_MCLKA (1 << 16) 4581da177e4SLinus Torvalds #define FORCEON_MCLKB (1 << 17) 4591da177e4SLinus Torvalds #define FORCEON_YCLKA (1 << 18) 4601da177e4SLinus Torvalds #define FORCEON_YCLKB (1 << 19) 4611da177e4SLinus Torvalds #define FORCEON_MC (1 << 20) 4621da177e4SLinus Torvalds #define FORCEON_AIC (1 << 21) 4631da177e4SLinus Torvalds 4641da177e4SLinus Torvalds /* SCLK_CNTL bit constants */ 4651da177e4SLinus Torvalds #define DYN_STOP_LAT_MASK 0x00007ff8 4661da177e4SLinus Torvalds #define CP_MAX_DYN_STOP_LAT 0x0008 4671da177e4SLinus Torvalds #define SCLK_FORCEON_MASK 0xffff8000 4681da177e4SLinus Torvalds 4691da177e4SLinus Torvalds /* SCLK_MORE_CNTL bit constants */ 4701da177e4SLinus Torvalds #define SCLK_MORE_FORCEON 0x0700 4711da177e4SLinus Torvalds 4721da177e4SLinus Torvalds /* BUS_CNTL bit constants */ 4731da177e4SLinus Torvalds #define BUS_DBL_RESYNC 0x00000001 4741da177e4SLinus Torvalds #define BUS_MSTR_RESET 0x00000002 4751da177e4SLinus Torvalds #define BUS_FLUSH_BUF 0x00000004 4761da177e4SLinus Torvalds #define BUS_STOP_REQ_DIS 0x00000008 4771da177e4SLinus Torvalds #define BUS_ROTATION_DIS 0x00000010 4781da177e4SLinus Torvalds #define BUS_MASTER_DIS 0x00000040 4791da177e4SLinus Torvalds #define BUS_ROM_WRT_EN 0x00000080 4801da177e4SLinus Torvalds #define BUS_DIS_ROM 0x00001000 4811da177e4SLinus Torvalds #define BUS_PCI_READ_RETRY_EN 0x00002000 4821da177e4SLinus Torvalds #define BUS_AGP_AD_STEPPING_EN 0x00004000 4831da177e4SLinus Torvalds #define BUS_PCI_WRT_RETRY_EN 0x00008000 4841da177e4SLinus Torvalds #define BUS_MSTR_RD_MULT 0x00100000 4851da177e4SLinus Torvalds #define BUS_MSTR_RD_LINE 0x00200000 4861da177e4SLinus Torvalds #define BUS_SUSPEND 0x00400000 4871da177e4SLinus Torvalds #define LAT_16X 0x00800000 4881da177e4SLinus Torvalds #define BUS_RD_DISCARD_EN 0x01000000 4891da177e4SLinus Torvalds #define BUS_RD_ABORT_EN 0x02000000 4901da177e4SLinus Torvalds #define BUS_MSTR_WS 0x04000000 4911da177e4SLinus Torvalds #define BUS_PARKING_DIS 0x08000000 4921da177e4SLinus Torvalds #define BUS_MSTR_DISCONNECT_EN 0x10000000 4931da177e4SLinus Torvalds #define BUS_WRT_BURST 0x20000000 4941da177e4SLinus Torvalds #define BUS_READ_BURST 0x40000000 4951da177e4SLinus Torvalds #define BUS_RDY_READ_DLY 0x80000000 4961da177e4SLinus Torvalds 4971da177e4SLinus Torvalds /* PIXCLKS_CNTL */ 4981da177e4SLinus Torvalds #define PIX2CLK_SRC_SEL_MASK 0x03 4991da177e4SLinus Torvalds #define PIX2CLK_SRC_SEL_CPUCLK 0x00 5001da177e4SLinus Torvalds #define PIX2CLK_SRC_SEL_PSCANCLK 0x01 5011da177e4SLinus Torvalds #define PIX2CLK_SRC_SEL_BYTECLK 0x02 5021da177e4SLinus Torvalds #define PIX2CLK_SRC_SEL_P2PLLCLK 0x03 5031da177e4SLinus Torvalds #define PIX2CLK_ALWAYS_ONb (1<<6) 5041da177e4SLinus Torvalds #define PIX2CLK_DAC_ALWAYS_ONb (1<<7) 5051da177e4SLinus Torvalds #define PIXCLK_TV_SRC_SEL (1 << 8) 5061da177e4SLinus Torvalds #define PIXCLK_LVDS_ALWAYS_ONb (1 << 14) 5071da177e4SLinus Torvalds #define PIXCLK_TMDS_ALWAYS_ONb (1 << 15) 5081da177e4SLinus Torvalds 5091da177e4SLinus Torvalds 5101da177e4SLinus Torvalds /* CLOCK_CNTL_INDEX bit constants */ 5111da177e4SLinus Torvalds #define PLL_WR_EN 0x00000080 5121da177e4SLinus Torvalds 513fe86175bSRandy Dunlap /* CNFG_CNTL bit constants */ 5141da177e4SLinus Torvalds #define CFG_VGA_RAM_EN 0x00000100 5151da177e4SLinus Torvalds #define CFG_ATI_REV_ID_MASK (0xf << 16) 5161da177e4SLinus Torvalds #define CFG_ATI_REV_A11 (0 << 16) 5171da177e4SLinus Torvalds #define CFG_ATI_REV_A12 (1 << 16) 5181da177e4SLinus Torvalds #define CFG_ATI_REV_A13 (2 << 16) 5191da177e4SLinus Torvalds 5201da177e4SLinus Torvalds /* CRTC_EXT_CNTL bit constants */ 5211da177e4SLinus Torvalds #define VGA_ATI_LINEAR 0x00000008 5221da177e4SLinus Torvalds #define VGA_128KAP_PAGING 0x00000010 5231da177e4SLinus Torvalds #define XCRT_CNT_EN (1 << 6) 5241da177e4SLinus Torvalds #define CRTC_HSYNC_DIS (1 << 8) 5251da177e4SLinus Torvalds #define CRTC_VSYNC_DIS (1 << 9) 5261da177e4SLinus Torvalds #define CRTC_DISPLAY_DIS (1 << 10) 5271da177e4SLinus Torvalds #define CRTC_CRT_ON (1 << 15) 5281da177e4SLinus Torvalds 5291da177e4SLinus Torvalds 5301da177e4SLinus Torvalds /* DSTCACHE_CTLSTAT bit constants */ 531efc49181SDavid Miller #define RB2D_DC_FLUSH_2D (1 << 0) 532efc49181SDavid Miller #define RB2D_DC_FREE_2D (1 << 2) 533efc49181SDavid Miller #define RB2D_DC_FLUSH_ALL (RB2D_DC_FLUSH_2D | RB2D_DC_FREE_2D) 5341da177e4SLinus Torvalds #define RB2D_DC_BUSY (1 << 31) 5351da177e4SLinus Torvalds 536a6c0c37dSBenjamin Herrenschmidt /* DSTCACHE_MODE bits constants */ 537a6c0c37dSBenjamin Herrenschmidt #define RB2D_DC_AUTOFLUSH_ENABLE (1 << 8) 538a6c0c37dSBenjamin Herrenschmidt #define RB2D_DC_DC_DISABLE_IGNORE_PE (1 << 17) 5391da177e4SLinus Torvalds 5401da177e4SLinus Torvalds /* CRTC_GEN_CNTL bit constants */ 5411da177e4SLinus Torvalds #define CRTC_DBL_SCAN_EN 0x00000001 5421da177e4SLinus Torvalds #define CRTC_CUR_EN 0x00010000 5431da177e4SLinus Torvalds #define CRTC_INTERLACE_EN (1 << 1) 5441da177e4SLinus Torvalds #define CRTC_BYPASS_LUT_EN (1 << 14) 5451da177e4SLinus Torvalds #define CRTC_EXT_DISP_EN (1 << 24) 5461da177e4SLinus Torvalds #define CRTC_EN (1 << 25) 5471da177e4SLinus Torvalds #define CRTC_DISP_REQ_EN_B (1 << 26) 5481da177e4SLinus Torvalds 5491da177e4SLinus Torvalds /* CRTC_STATUS bit constants */ 5501da177e4SLinus Torvalds #define CRTC_VBLANK 0x00000001 5511da177e4SLinus Torvalds 5521da177e4SLinus Torvalds /* CRTC2_GEN_CNTL bit constants */ 5531da177e4SLinus Torvalds #define CRT2_ON (1 << 7) 5541da177e4SLinus Torvalds #define CRTC2_DISPLAY_DIS (1 << 23) 5551da177e4SLinus Torvalds #define CRTC2_EN (1 << 25) 5561da177e4SLinus Torvalds #define CRTC2_DISP_REQ_EN_B (1 << 26) 5571da177e4SLinus Torvalds 5581da177e4SLinus Torvalds /* CUR_OFFSET, CUR_HORZ_VERT_POSN, CUR_HORZ_VERT_OFF bit constants */ 5591da177e4SLinus Torvalds #define CUR_LOCK 0x80000000 5601da177e4SLinus Torvalds 5611da177e4SLinus Torvalds /* GPIO bit constants */ 5621da177e4SLinus Torvalds #define GPIO_A_0 (1 << 0) 5631da177e4SLinus Torvalds #define GPIO_A_1 (1 << 1) 5641da177e4SLinus Torvalds #define GPIO_Y_0 (1 << 8) 5651da177e4SLinus Torvalds #define GPIO_Y_1 (1 << 9) 5661da177e4SLinus Torvalds #define GPIO_EN_0 (1 << 16) 5671da177e4SLinus Torvalds #define GPIO_EN_1 (1 << 17) 5681da177e4SLinus Torvalds #define GPIO_MASK_0 (1 << 24) 5691da177e4SLinus Torvalds #define GPIO_MASK_1 (1 << 25) 5701da177e4SLinus Torvalds #define VGA_DDC_DATA_OUTPUT GPIO_A_0 5711da177e4SLinus Torvalds #define VGA_DDC_CLK_OUTPUT GPIO_A_1 5721da177e4SLinus Torvalds #define VGA_DDC_DATA_INPUT GPIO_Y_0 5731da177e4SLinus Torvalds #define VGA_DDC_CLK_INPUT GPIO_Y_1 5741da177e4SLinus Torvalds #define VGA_DDC_DATA_OUT_EN GPIO_EN_0 5751da177e4SLinus Torvalds #define VGA_DDC_CLK_OUT_EN GPIO_EN_1 5761da177e4SLinus Torvalds 5771da177e4SLinus Torvalds 5781da177e4SLinus Torvalds /* FP bit constants */ 5791da177e4SLinus Torvalds #define FP_CRTC_H_TOTAL_MASK 0x000003ff 5801da177e4SLinus Torvalds #define FP_CRTC_H_DISP_MASK 0x01ff0000 5811da177e4SLinus Torvalds #define FP_CRTC_V_TOTAL_MASK 0x00000fff 5821da177e4SLinus Torvalds #define FP_CRTC_V_DISP_MASK 0x0fff0000 5831da177e4SLinus Torvalds #define FP_H_SYNC_STRT_CHAR_MASK 0x00001ff8 5841da177e4SLinus Torvalds #define FP_H_SYNC_WID_MASK 0x003f0000 5851da177e4SLinus Torvalds #define FP_V_SYNC_STRT_MASK 0x00000fff 5861da177e4SLinus Torvalds #define FP_V_SYNC_WID_MASK 0x001f0000 5871da177e4SLinus Torvalds #define FP_CRTC_H_TOTAL_SHIFT 0x00000000 5881da177e4SLinus Torvalds #define FP_CRTC_H_DISP_SHIFT 0x00000010 5891da177e4SLinus Torvalds #define FP_CRTC_V_TOTAL_SHIFT 0x00000000 5901da177e4SLinus Torvalds #define FP_CRTC_V_DISP_SHIFT 0x00000010 5911da177e4SLinus Torvalds #define FP_H_SYNC_STRT_CHAR_SHIFT 0x00000003 5921da177e4SLinus Torvalds #define FP_H_SYNC_WID_SHIFT 0x00000010 5931da177e4SLinus Torvalds #define FP_V_SYNC_STRT_SHIFT 0x00000000 5941da177e4SLinus Torvalds #define FP_V_SYNC_WID_SHIFT 0x00000010 5951da177e4SLinus Torvalds 5961da177e4SLinus Torvalds /* FP_GEN_CNTL bit constants */ 5971da177e4SLinus Torvalds #define FP_FPON (1 << 0) 5981da177e4SLinus Torvalds #define FP_TMDS_EN (1 << 2) 5991da177e4SLinus Torvalds #define FP_PANEL_FORMAT (1 << 3) 6001da177e4SLinus Torvalds #define FP_EN_TMDS (1 << 7) 6011da177e4SLinus Torvalds #define FP_DETECT_SENSE (1 << 8) 6021da177e4SLinus Torvalds #define R200_FP_SOURCE_SEL_MASK (3 << 10) 6031da177e4SLinus Torvalds #define R200_FP_SOURCE_SEL_CRTC1 (0 << 10) 6041da177e4SLinus Torvalds #define R200_FP_SOURCE_SEL_CRTC2 (1 << 10) 6051da177e4SLinus Torvalds #define R200_FP_SOURCE_SEL_RMX (2 << 10) 6061da177e4SLinus Torvalds #define R200_FP_SOURCE_SEL_TRANS (3 << 10) 6071da177e4SLinus Torvalds #define FP_SEL_CRTC1 (0 << 13) 6081da177e4SLinus Torvalds #define FP_SEL_CRTC2 (1 << 13) 6091da177e4SLinus Torvalds #define FP_USE_VGA_HSYNC (1 << 14) 6101da177e4SLinus Torvalds #define FP_CRTC_DONT_SHADOW_HPAR (1 << 15) 6111da177e4SLinus Torvalds #define FP_CRTC_DONT_SHADOW_VPAR (1 << 16) 6121da177e4SLinus Torvalds #define FP_CRTC_DONT_SHADOW_HEND (1 << 17) 6131da177e4SLinus Torvalds #define FP_CRTC_USE_SHADOW_VEND (1 << 18) 6141da177e4SLinus Torvalds #define FP_RMX_HVSYNC_CONTROL_EN (1 << 20) 6151da177e4SLinus Torvalds #define FP_DFP_SYNC_SEL (1 << 21) 6161da177e4SLinus Torvalds #define FP_CRTC_LOCK_8DOT (1 << 22) 6171da177e4SLinus Torvalds #define FP_CRT_SYNC_SEL (1 << 23) 6181da177e4SLinus Torvalds #define FP_USE_SHADOW_EN (1 << 24) 6191da177e4SLinus Torvalds #define FP_CRT_SYNC_ALT (1 << 26) 6201da177e4SLinus Torvalds 6211da177e4SLinus Torvalds /* FP2_GEN_CNTL bit constants */ 6221da177e4SLinus Torvalds #define FP2_BLANK_EN (1 << 1) 6231da177e4SLinus Torvalds #define FP2_ON (1 << 2) 6241da177e4SLinus Torvalds #define FP2_PANEL_FORMAT (1 << 3) 6251da177e4SLinus Torvalds #define FP2_SOURCE_SEL_MASK (3 << 10) 6261da177e4SLinus Torvalds #define FP2_SOURCE_SEL_CRTC2 (1 << 10) 6271da177e4SLinus Torvalds #define FP2_SRC_SEL_MASK (3 << 13) 6281da177e4SLinus Torvalds #define FP2_SRC_SEL_CRTC2 (1 << 13) 6291da177e4SLinus Torvalds #define FP2_FP_POL (1 << 16) 6301da177e4SLinus Torvalds #define FP2_LP_POL (1 << 17) 6311da177e4SLinus Torvalds #define FP2_SCK_POL (1 << 18) 6321da177e4SLinus Torvalds #define FP2_LCD_CNTL_MASK (7 << 19) 6331da177e4SLinus Torvalds #define FP2_PAD_FLOP_EN (1 << 22) 6341da177e4SLinus Torvalds #define FP2_CRC_EN (1 << 23) 6351da177e4SLinus Torvalds #define FP2_CRC_READ_EN (1 << 24) 6361da177e4SLinus Torvalds #define FP2_DV0_EN (1 << 25) 6371da177e4SLinus Torvalds #define FP2_DV0_RATE_SEL_SDR (1 << 26) 6381da177e4SLinus Torvalds 6391da177e4SLinus Torvalds 6401da177e4SLinus Torvalds /* LVDS_GEN_CNTL bit constants */ 6411da177e4SLinus Torvalds #define LVDS_ON (1 << 0) 6421da177e4SLinus Torvalds #define LVDS_DISPLAY_DIS (1 << 1) 6431da177e4SLinus Torvalds #define LVDS_PANEL_TYPE (1 << 2) 6441da177e4SLinus Torvalds #define LVDS_PANEL_FORMAT (1 << 3) 6451da177e4SLinus Torvalds #define LVDS_EN (1 << 7) 6461da177e4SLinus Torvalds #define LVDS_BL_MOD_LEVEL_MASK 0x0000ff00 6471da177e4SLinus Torvalds #define LVDS_BL_MOD_LEVEL_SHIFT 8 6481da177e4SLinus Torvalds #define LVDS_BL_MOD_EN (1 << 16) 6491da177e4SLinus Torvalds #define LVDS_DIGON (1 << 18) 6501da177e4SLinus Torvalds #define LVDS_BLON (1 << 19) 6511da177e4SLinus Torvalds #define LVDS_SEL_CRTC2 (1 << 23) 6521da177e4SLinus Torvalds #define LVDS_STATE_MASK \ 6531da177e4SLinus Torvalds (LVDS_ON | LVDS_DISPLAY_DIS | LVDS_BL_MOD_LEVEL_MASK | LVDS_BLON) 6541da177e4SLinus Torvalds 6551da177e4SLinus Torvalds /* LVDS_PLL_CNTL bit constatns */ 6561da177e4SLinus Torvalds #define HSYNC_DELAY_SHIFT 0x1c 6571da177e4SLinus Torvalds #define HSYNC_DELAY_MASK (0xf << 0x1c) 6581da177e4SLinus Torvalds 6591da177e4SLinus Torvalds /* TMDS_TRANSMITTER_CNTL bit constants */ 6601da177e4SLinus Torvalds #define TMDS_PLL_EN (1 << 0) 6611da177e4SLinus Torvalds #define TMDS_PLLRST (1 << 1) 6621da177e4SLinus Torvalds #define TMDS_RAN_PAT_RST (1 << 7) 6631da177e4SLinus Torvalds #define TMDS_ICHCSEL (1 << 28) 6641da177e4SLinus Torvalds 6651da177e4SLinus Torvalds /* FP_HORZ_STRETCH bit constants */ 6661da177e4SLinus Torvalds #define HORZ_STRETCH_RATIO_MASK 0xffff 6671da177e4SLinus Torvalds #define HORZ_STRETCH_RATIO_MAX 4096 6681da177e4SLinus Torvalds #define HORZ_PANEL_SIZE (0x1ff << 16) 6691da177e4SLinus Torvalds #define HORZ_PANEL_SHIFT 16 6701da177e4SLinus Torvalds #define HORZ_STRETCH_PIXREP (0 << 25) 6711da177e4SLinus Torvalds #define HORZ_STRETCH_BLEND (1 << 26) 6721da177e4SLinus Torvalds #define HORZ_STRETCH_ENABLE (1 << 25) 6731da177e4SLinus Torvalds #define HORZ_AUTO_RATIO (1 << 27) 6741da177e4SLinus Torvalds #define HORZ_FP_LOOP_STRETCH (0x7 << 28) 6751da177e4SLinus Torvalds #define HORZ_AUTO_RATIO_INC (1 << 31) 6761da177e4SLinus Torvalds 6771da177e4SLinus Torvalds 6781da177e4SLinus Torvalds /* FP_VERT_STRETCH bit constants */ 6791da177e4SLinus Torvalds #define VERT_STRETCH_RATIO_MASK 0xfff 6801da177e4SLinus Torvalds #define VERT_STRETCH_RATIO_MAX 4096 6811da177e4SLinus Torvalds #define VERT_PANEL_SIZE (0xfff << 12) 6821da177e4SLinus Torvalds #define VERT_PANEL_SHIFT 12 6831da177e4SLinus Torvalds #define VERT_STRETCH_LINREP (0 << 26) 6841da177e4SLinus Torvalds #define VERT_STRETCH_BLEND (1 << 26) 6851da177e4SLinus Torvalds #define VERT_STRETCH_ENABLE (1 << 25) 6861da177e4SLinus Torvalds #define VERT_AUTO_RATIO_EN (1 << 27) 6871da177e4SLinus Torvalds #define VERT_FP_LOOP_STRETCH (0x7 << 28) 6881da177e4SLinus Torvalds #define VERT_STRETCH_RESERVED 0xf1000000 6891da177e4SLinus Torvalds 6901da177e4SLinus Torvalds /* DAC_CNTL bit constants */ 6911da177e4SLinus Torvalds #define DAC_8BIT_EN 0x00000100 6921da177e4SLinus Torvalds #define DAC_4BPP_PIX_ORDER 0x00000200 6931da177e4SLinus Torvalds #define DAC_CRC_EN 0x00080000 6941da177e4SLinus Torvalds #define DAC_MASK_ALL (0xff << 24) 6951da177e4SLinus Torvalds #define DAC_PDWN (1 << 15) 6961da177e4SLinus Torvalds #define DAC_EXPAND_MODE (1 << 14) 6971da177e4SLinus Torvalds #define DAC_VGA_ADR_EN (1 << 13) 6981da177e4SLinus Torvalds #define DAC_RANGE_CNTL (3 << 0) 6991da177e4SLinus Torvalds #define DAC_RANGE_CNTL_MASK 0x03 7001da177e4SLinus Torvalds #define DAC_BLANKING (1 << 2) 7011da177e4SLinus Torvalds #define DAC_CMP_EN (1 << 3) 7021da177e4SLinus Torvalds #define DAC_CMP_OUTPUT (1 << 7) 7031da177e4SLinus Torvalds 7041da177e4SLinus Torvalds /* DAC_CNTL2 bit constants */ 7051da177e4SLinus Torvalds #define DAC2_EXPAND_MODE (1 << 14) 7061da177e4SLinus Torvalds #define DAC2_CMP_EN (1 << 7) 7071da177e4SLinus Torvalds #define DAC2_PALETTE_ACCESS_CNTL (1 << 5) 7081da177e4SLinus Torvalds 7091da177e4SLinus Torvalds /* DAC_EXT_CNTL bit constants */ 7101da177e4SLinus Torvalds #define DAC_FORCE_BLANK_OFF_EN (1 << 4) 7111da177e4SLinus Torvalds #define DAC_FORCE_DATA_EN (1 << 5) 7121da177e4SLinus Torvalds #define DAC_FORCE_DATA_SEL_MASK (3 << 6) 7131da177e4SLinus Torvalds #define DAC_FORCE_DATA_MASK 0x0003ff00 7141da177e4SLinus Torvalds #define DAC_FORCE_DATA_SHIFT 8 7151da177e4SLinus Torvalds 7161da177e4SLinus Torvalds /* GEN_RESET_CNTL bit constants */ 7171da177e4SLinus Torvalds #define SOFT_RESET_GUI 0x00000001 7181da177e4SLinus Torvalds #define SOFT_RESET_VCLK 0x00000100 7191da177e4SLinus Torvalds #define SOFT_RESET_PCLK 0x00000200 7201da177e4SLinus Torvalds #define SOFT_RESET_ECP 0x00000400 7211da177e4SLinus Torvalds #define SOFT_RESET_DISPENG_XCLK 0x00000800 7221da177e4SLinus Torvalds 7231da177e4SLinus Torvalds /* MEM_CNTL bit constants */ 7241da177e4SLinus Torvalds #define MEM_CTLR_STATUS_IDLE 0x00000000 7251da177e4SLinus Torvalds #define MEM_CTLR_STATUS_BUSY 0x00100000 7261da177e4SLinus Torvalds #define MEM_SEQNCR_STATUS_IDLE 0x00000000 7271da177e4SLinus Torvalds #define MEM_SEQNCR_STATUS_BUSY 0x00200000 7281da177e4SLinus Torvalds #define MEM_ARBITER_STATUS_IDLE 0x00000000 7291da177e4SLinus Torvalds #define MEM_ARBITER_STATUS_BUSY 0x00400000 7301da177e4SLinus Torvalds #define MEM_REQ_UNLOCK 0x00000000 7311da177e4SLinus Torvalds #define MEM_REQ_LOCK 0x00800000 7321da177e4SLinus Torvalds #define MEM_NUM_CHANNELS_MASK 0x00000001 7331da177e4SLinus Torvalds #define MEM_USE_B_CH_ONLY 0x00000002 7341da177e4SLinus Torvalds #define RV100_MEM_HALF_MODE 0x00000008 7351da177e4SLinus Torvalds #define R300_MEM_NUM_CHANNELS_MASK 0x00000003 7361da177e4SLinus Torvalds #define R300_MEM_USE_CD_CH_ONLY 0x00000004 7371da177e4SLinus Torvalds 7381da177e4SLinus Torvalds 7391da177e4SLinus Torvalds /* RBBM_SOFT_RESET bit constants */ 7401da177e4SLinus Torvalds #define SOFT_RESET_CP (1 << 0) 7411da177e4SLinus Torvalds #define SOFT_RESET_HI (1 << 1) 7421da177e4SLinus Torvalds #define SOFT_RESET_SE (1 << 2) 7431da177e4SLinus Torvalds #define SOFT_RESET_RE (1 << 3) 7441da177e4SLinus Torvalds #define SOFT_RESET_PP (1 << 4) 7451da177e4SLinus Torvalds #define SOFT_RESET_E2 (1 << 5) 7461da177e4SLinus Torvalds #define SOFT_RESET_RB (1 << 6) 7471da177e4SLinus Torvalds #define SOFT_RESET_HDP (1 << 7) 7481da177e4SLinus Torvalds 749969830b2SDavid Miller /* WAIT_UNTIL bit constants */ 750969830b2SDavid Miller #define WAIT_DMA_GUI_IDLE (1 << 9) 751969830b2SDavid Miller #define WAIT_2D_IDLECLEAN (1 << 16) 752969830b2SDavid Miller 753*50e35bd5Spengfuyuan /* SURFACE_CNTL bit constants */ 7541da177e4SLinus Torvalds #define SURF_TRANSLATION_DIS (1 << 8) 7551da177e4SLinus Torvalds #define NONSURF_AP0_SWP_16BPP (1 << 20) 7561da177e4SLinus Torvalds #define NONSURF_AP0_SWP_32BPP (1 << 21) 7571da177e4SLinus Torvalds #define NONSURF_AP1_SWP_16BPP (1 << 22) 7581da177e4SLinus Torvalds #define NONSURF_AP1_SWP_32BPP (1 << 23) 7591da177e4SLinus Torvalds 7601da177e4SLinus Torvalds /* DEFAULT_SC_BOTTOM_RIGHT bit constants */ 7611da177e4SLinus Torvalds #define DEFAULT_SC_RIGHT_MAX (0x1fff << 0) 7621da177e4SLinus Torvalds #define DEFAULT_SC_BOTTOM_MAX (0x1fff << 16) 7631da177e4SLinus Torvalds 7641da177e4SLinus Torvalds /* MM_INDEX bit constants */ 7651da177e4SLinus Torvalds #define MM_APER 0x80000000 7661da177e4SLinus Torvalds 7671da177e4SLinus Torvalds /* CLR_CMP_CNTL bit constants */ 7681da177e4SLinus Torvalds #define COMPARE_SRC_FALSE 0x00000000 7691da177e4SLinus Torvalds #define COMPARE_SRC_TRUE 0x00000001 7701da177e4SLinus Torvalds #define COMPARE_SRC_NOT_EQUAL 0x00000004 7711da177e4SLinus Torvalds #define COMPARE_SRC_EQUAL 0x00000005 7721da177e4SLinus Torvalds #define COMPARE_SRC_EQUAL_FLIP 0x00000007 7731da177e4SLinus Torvalds #define COMPARE_DST_FALSE 0x00000000 7741da177e4SLinus Torvalds #define COMPARE_DST_TRUE 0x00000100 7751da177e4SLinus Torvalds #define COMPARE_DST_NOT_EQUAL 0x00000400 7761da177e4SLinus Torvalds #define COMPARE_DST_EQUAL 0x00000500 7771da177e4SLinus Torvalds #define COMPARE_DESTINATION 0x00000000 7781da177e4SLinus Torvalds #define COMPARE_SOURCE 0x01000000 7791da177e4SLinus Torvalds #define COMPARE_SRC_AND_DST 0x02000000 7801da177e4SLinus Torvalds 7811da177e4SLinus Torvalds 7821da177e4SLinus Torvalds /* DP_CNTL bit constants */ 7831da177e4SLinus Torvalds #define DST_X_RIGHT_TO_LEFT 0x00000000 7841da177e4SLinus Torvalds #define DST_X_LEFT_TO_RIGHT 0x00000001 7851da177e4SLinus Torvalds #define DST_Y_BOTTOM_TO_TOP 0x00000000 7861da177e4SLinus Torvalds #define DST_Y_TOP_TO_BOTTOM 0x00000002 7871da177e4SLinus Torvalds #define DST_X_MAJOR 0x00000000 7881da177e4SLinus Torvalds #define DST_Y_MAJOR 0x00000004 7891da177e4SLinus Torvalds #define DST_X_TILE 0x00000008 7901da177e4SLinus Torvalds #define DST_Y_TILE 0x00000010 7911da177e4SLinus Torvalds #define DST_LAST_PEL 0x00000020 7921da177e4SLinus Torvalds #define DST_TRAIL_X_RIGHT_TO_LEFT 0x00000000 7931da177e4SLinus Torvalds #define DST_TRAIL_X_LEFT_TO_RIGHT 0x00000040 7941da177e4SLinus Torvalds #define DST_TRAP_FILL_RIGHT_TO_LEFT 0x00000000 7951da177e4SLinus Torvalds #define DST_TRAP_FILL_LEFT_TO_RIGHT 0x00000080 7961da177e4SLinus Torvalds #define DST_BRES_SIGN 0x00000100 7971da177e4SLinus Torvalds #define DST_HOST_BIG_ENDIAN_EN 0x00000200 7981da177e4SLinus Torvalds #define DST_POLYLINE_NONLAST 0x00008000 7991da177e4SLinus Torvalds #define DST_RASTER_STALL 0x00010000 8001da177e4SLinus Torvalds #define DST_POLY_EDGE 0x00040000 8011da177e4SLinus Torvalds 8021da177e4SLinus Torvalds 8031da177e4SLinus Torvalds /* DP_CNTL_YDIR_XDIR_YMAJOR bit constants (short version of DP_CNTL) */ 8041da177e4SLinus Torvalds #define DST_X_MAJOR_S 0x00000000 8051da177e4SLinus Torvalds #define DST_Y_MAJOR_S 0x00000001 8061da177e4SLinus Torvalds #define DST_Y_BOTTOM_TO_TOP_S 0x00000000 8071da177e4SLinus Torvalds #define DST_Y_TOP_TO_BOTTOM_S 0x00008000 8081da177e4SLinus Torvalds #define DST_X_RIGHT_TO_LEFT_S 0x00000000 8091da177e4SLinus Torvalds #define DST_X_LEFT_TO_RIGHT_S 0x80000000 8101da177e4SLinus Torvalds 8111da177e4SLinus Torvalds 8121da177e4SLinus Torvalds /* DP_DATATYPE bit constants */ 8131da177e4SLinus Torvalds #define DST_8BPP 0x00000002 8141da177e4SLinus Torvalds #define DST_15BPP 0x00000003 8151da177e4SLinus Torvalds #define DST_16BPP 0x00000004 8161da177e4SLinus Torvalds #define DST_24BPP 0x00000005 8171da177e4SLinus Torvalds #define DST_32BPP 0x00000006 8181da177e4SLinus Torvalds #define DST_8BPP_RGB332 0x00000007 8191da177e4SLinus Torvalds #define DST_8BPP_Y8 0x00000008 8201da177e4SLinus Torvalds #define DST_8BPP_RGB8 0x00000009 8211da177e4SLinus Torvalds #define DST_16BPP_VYUY422 0x0000000b 8221da177e4SLinus Torvalds #define DST_16BPP_YVYU422 0x0000000c 8231da177e4SLinus Torvalds #define DST_32BPP_AYUV444 0x0000000e 8241da177e4SLinus Torvalds #define DST_16BPP_ARGB4444 0x0000000f 8251da177e4SLinus Torvalds #define BRUSH_SOLIDCOLOR 0x00000d00 8261da177e4SLinus Torvalds #define SRC_MONO 0x00000000 8271da177e4SLinus Torvalds #define SRC_MONO_LBKGD 0x00010000 8281da177e4SLinus Torvalds #define SRC_DSTCOLOR 0x00030000 8291da177e4SLinus Torvalds #define BYTE_ORDER_MSB_TO_LSB 0x00000000 8301da177e4SLinus Torvalds #define BYTE_ORDER_LSB_TO_MSB 0x40000000 8311da177e4SLinus Torvalds #define DP_CONVERSION_TEMP 0x80000000 8321da177e4SLinus Torvalds #define HOST_BIG_ENDIAN_EN (1 << 29) 8331da177e4SLinus Torvalds 8341da177e4SLinus Torvalds 8351da177e4SLinus Torvalds /* DP_GUI_MASTER_CNTL bit constants */ 8361da177e4SLinus Torvalds #define GMC_SRC_PITCH_OFFSET_DEFAULT 0x00000000 8371da177e4SLinus Torvalds #define GMC_SRC_PITCH_OFFSET_LEAVE 0x00000001 8381da177e4SLinus Torvalds #define GMC_DST_PITCH_OFFSET_DEFAULT 0x00000000 8391da177e4SLinus Torvalds #define GMC_DST_PITCH_OFFSET_LEAVE 0x00000002 8401da177e4SLinus Torvalds #define GMC_SRC_CLIP_DEFAULT 0x00000000 8411da177e4SLinus Torvalds #define GMC_SRC_CLIP_LEAVE 0x00000004 8421da177e4SLinus Torvalds #define GMC_DST_CLIP_DEFAULT 0x00000000 8431da177e4SLinus Torvalds #define GMC_DST_CLIP_LEAVE 0x00000008 8441da177e4SLinus Torvalds #define GMC_BRUSH_8x8MONO 0x00000000 8451da177e4SLinus Torvalds #define GMC_BRUSH_8x8MONO_LBKGD 0x00000010 8461da177e4SLinus Torvalds #define GMC_BRUSH_8x1MONO 0x00000020 8471da177e4SLinus Torvalds #define GMC_BRUSH_8x1MONO_LBKGD 0x00000030 8481da177e4SLinus Torvalds #define GMC_BRUSH_1x8MONO 0x00000040 8491da177e4SLinus Torvalds #define GMC_BRUSH_1x8MONO_LBKGD 0x00000050 8501da177e4SLinus Torvalds #define GMC_BRUSH_32x1MONO 0x00000060 8511da177e4SLinus Torvalds #define GMC_BRUSH_32x1MONO_LBKGD 0x00000070 8521da177e4SLinus Torvalds #define GMC_BRUSH_32x32MONO 0x00000080 8531da177e4SLinus Torvalds #define GMC_BRUSH_32x32MONO_LBKGD 0x00000090 8541da177e4SLinus Torvalds #define GMC_BRUSH_8x8COLOR 0x000000a0 8551da177e4SLinus Torvalds #define GMC_BRUSH_8x1COLOR 0x000000b0 8561da177e4SLinus Torvalds #define GMC_BRUSH_1x8COLOR 0x000000c0 8571da177e4SLinus Torvalds #define GMC_BRUSH_SOLID_COLOR 0x000000d0 8581da177e4SLinus Torvalds #define GMC_DST_8BPP 0x00000200 8591da177e4SLinus Torvalds #define GMC_DST_15BPP 0x00000300 8601da177e4SLinus Torvalds #define GMC_DST_16BPP 0x00000400 8611da177e4SLinus Torvalds #define GMC_DST_24BPP 0x00000500 8621da177e4SLinus Torvalds #define GMC_DST_32BPP 0x00000600 8631da177e4SLinus Torvalds #define GMC_DST_8BPP_RGB332 0x00000700 8641da177e4SLinus Torvalds #define GMC_DST_8BPP_Y8 0x00000800 8651da177e4SLinus Torvalds #define GMC_DST_8BPP_RGB8 0x00000900 8661da177e4SLinus Torvalds #define GMC_DST_16BPP_VYUY422 0x00000b00 8671da177e4SLinus Torvalds #define GMC_DST_16BPP_YVYU422 0x00000c00 8681da177e4SLinus Torvalds #define GMC_DST_32BPP_AYUV444 0x00000e00 8691da177e4SLinus Torvalds #define GMC_DST_16BPP_ARGB4444 0x00000f00 8706c34bc29SLinus Torvalds #define GMC_SRC_MONO 0x00000000 8716c34bc29SLinus Torvalds #define GMC_SRC_MONO_LBKGD 0x00001000 8726c34bc29SLinus Torvalds #define GMC_SRC_DSTCOLOR 0x00003000 8731da177e4SLinus Torvalds #define GMC_BYTE_ORDER_MSB_TO_LSB 0x00000000 8741da177e4SLinus Torvalds #define GMC_BYTE_ORDER_LSB_TO_MSB 0x00004000 8751da177e4SLinus Torvalds #define GMC_DP_CONVERSION_TEMP_9300 0x00008000 8761da177e4SLinus Torvalds #define GMC_DP_CONVERSION_TEMP_6500 0x00000000 8776c34bc29SLinus Torvalds #define GMC_DP_SRC_RECT 0x02000000 8786c34bc29SLinus Torvalds #define GMC_DP_SRC_HOST 0x03000000 8791da177e4SLinus Torvalds #define GMC_DP_SRC_HOST_BYTEALIGN 0x04000000 8801da177e4SLinus Torvalds #define GMC_3D_FCN_EN_CLR 0x00000000 8811da177e4SLinus Torvalds #define GMC_3D_FCN_EN_SET 0x08000000 8821da177e4SLinus Torvalds #define GMC_DST_CLR_CMP_FCN_LEAVE 0x00000000 8831da177e4SLinus Torvalds #define GMC_DST_CLR_CMP_FCN_CLEAR 0x10000000 8841da177e4SLinus Torvalds #define GMC_AUX_CLIP_LEAVE 0x00000000 8851da177e4SLinus Torvalds #define GMC_AUX_CLIP_CLEAR 0x20000000 8861da177e4SLinus Torvalds #define GMC_WRITE_MASK_LEAVE 0x00000000 8871da177e4SLinus Torvalds #define GMC_WRITE_MASK_SET 0x40000000 8881da177e4SLinus Torvalds #define GMC_CLR_CMP_CNTL_DIS (1 << 28) 8891da177e4SLinus Torvalds #define GMC_SRC_DATATYPE_COLOR (3 << 12) 8901da177e4SLinus Torvalds #define ROP3_S 0x00cc0000 8911da177e4SLinus Torvalds #define ROP3_SRCCOPY 0x00cc0000 8921da177e4SLinus Torvalds #define ROP3_P 0x00f00000 8931da177e4SLinus Torvalds #define ROP3_PATCOPY 0x00f00000 8941da177e4SLinus Torvalds #define DP_SRC_SOURCE_MASK (7 << 24) 8951da177e4SLinus Torvalds #define GMC_BRUSH_NONE (15 << 4) 8961da177e4SLinus Torvalds #define DP_SRC_SOURCE_MEMORY (2 << 24) 8971da177e4SLinus Torvalds #define GMC_BRUSH_SOLIDCOLOR 0x000000d0 8981da177e4SLinus Torvalds 8991da177e4SLinus Torvalds /* DP_MIX bit constants */ 9001da177e4SLinus Torvalds #define DP_SRC_RECT 0x00000200 9011da177e4SLinus Torvalds #define DP_SRC_HOST 0x00000300 9021da177e4SLinus Torvalds #define DP_SRC_HOST_BYTEALIGN 0x00000400 9031da177e4SLinus Torvalds 9041da177e4SLinus Torvalds /* MPLL_CNTL bit constants */ 9051da177e4SLinus Torvalds #define MPLL_RESET 0x00000001 9061da177e4SLinus Torvalds 9071da177e4SLinus Torvalds /* MDLL_CKO bit constants */ 9081da177e4SLinus Torvalds #define MCKOA_SLEEP 0x00000001 9091da177e4SLinus Torvalds #define MCKOA_RESET 0x00000002 9101da177e4SLinus Torvalds #define MCKOA_REF_SKEW_MASK 0x00000700 9111da177e4SLinus Torvalds #define MCKOA_FB_SKEW_MASK 0x00007000 9121da177e4SLinus Torvalds 9131da177e4SLinus Torvalds /* MDLL_RDCKA bit constants */ 9141da177e4SLinus Torvalds #define MRDCKA0_SLEEP 0x00000001 9151da177e4SLinus Torvalds #define MRDCKA0_RESET 0x00000002 9161da177e4SLinus Torvalds #define MRDCKA1_SLEEP 0x00010000 9171da177e4SLinus Torvalds #define MRDCKA1_RESET 0x00020000 9181da177e4SLinus Torvalds 9191da177e4SLinus Torvalds /* VCLK_ECP_CNTL constants */ 9201da177e4SLinus Torvalds #define VCLK_SRC_SEL_MASK 0x03 9211da177e4SLinus Torvalds #define VCLK_SRC_SEL_CPUCLK 0x00 9221da177e4SLinus Torvalds #define VCLK_SRC_SEL_PSCANCLK 0x01 9231da177e4SLinus Torvalds #define VCLK_SRC_SEL_BYTECLK 0x02 9241da177e4SLinus Torvalds #define VCLK_SRC_SEL_PPLLCLK 0x03 9251da177e4SLinus Torvalds #define PIXCLK_ALWAYS_ONb 0x00000040 9261da177e4SLinus Torvalds #define PIXCLK_DAC_ALWAYS_ONb 0x00000080 9271da177e4SLinus Torvalds 9281da177e4SLinus Torvalds /* BUS_CNTL1 constants */ 9291da177e4SLinus Torvalds #define BUS_CNTL1_MOBILE_PLATFORM_SEL_MASK 0x0c000000 9301da177e4SLinus Torvalds #define BUS_CNTL1_MOBILE_PLATFORM_SEL_SHIFT 26 9311da177e4SLinus Torvalds #define BUS_CNTL1_AGPCLK_VALID 0x80000000 9321da177e4SLinus Torvalds 9331da177e4SLinus Torvalds /* PLL_PWRMGT_CNTL constants */ 9341da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL_SPLL_TURNOFF 0x00000002 9351da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL_PPLL_TURNOFF 0x00000004 9361da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL_P2PLL_TURNOFF 0x00000008 9371da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL_TVPLL_TURNOFF 0x00000010 9381da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL_MOBILE_SU 0x00010000 9391da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL_SU_SCLK_USE_BCLK 0x00020000 9401da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL_SU_MCLK_USE_BCLK 0x00040000 9411da177e4SLinus Torvalds 9421da177e4SLinus Torvalds /* TV_DAC_CNTL constants */ 9431da177e4SLinus Torvalds #define TV_DAC_CNTL_BGSLEEP 0x00000040 9441da177e4SLinus Torvalds #define TV_DAC_CNTL_DETECT 0x00000010 9451da177e4SLinus Torvalds #define TV_DAC_CNTL_BGADJ_MASK 0x000f0000 9461da177e4SLinus Torvalds #define TV_DAC_CNTL_DACADJ_MASK 0x00f00000 9471da177e4SLinus Torvalds #define TV_DAC_CNTL_BGADJ__SHIFT 16 9481da177e4SLinus Torvalds #define TV_DAC_CNTL_DACADJ__SHIFT 20 9491da177e4SLinus Torvalds #define TV_DAC_CNTL_RDACPD 0x01000000 9501da177e4SLinus Torvalds #define TV_DAC_CNTL_GDACPD 0x02000000 9511da177e4SLinus Torvalds #define TV_DAC_CNTL_BDACPD 0x04000000 9521da177e4SLinus Torvalds 9531da177e4SLinus Torvalds /* DISP_MISC_CNTL constants */ 9541da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_GRPH_PP (1 << 0) 9551da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_SUBPIC_PP (1 << 1) 9561da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_OV0_PP (1 << 2) 9571da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_GRPH_SCLK (1 << 4) 9581da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_SUBPIC_SCLK (1 << 5) 9591da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_OV0_SCLK (1 << 6) 9601da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_GRPH2_PP (1 << 12) 9611da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_GRPH2_SCLK (1 << 15) 9621da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_LVDS (1 << 16) 9631da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_TMDS (1 << 17) 9641da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_DIG_TMDS (1 << 18) 9651da177e4SLinus Torvalds #define DISP_MISC_CNTL_SOFT_RESET_TV (1 << 19) 9661da177e4SLinus Torvalds 9671da177e4SLinus Torvalds /* DISP_PWR_MAN constants */ 9681da177e4SLinus Torvalds #define DISP_PWR_MAN_DISP_PWR_MAN_D3_CRTC_EN (1 << 0) 9691da177e4SLinus Torvalds #define DISP_PWR_MAN_DISP2_PWR_MAN_D3_CRTC2_EN (1 << 4) 9701da177e4SLinus Torvalds #define DISP_PWR_MAN_DISP_D3_RST (1 << 16) 9711da177e4SLinus Torvalds #define DISP_PWR_MAN_DISP_D3_REG_RST (1 << 17) 9721da177e4SLinus Torvalds #define DISP_PWR_MAN_DISP_D3_GRPH_RST (1 << 18) 9731da177e4SLinus Torvalds #define DISP_PWR_MAN_DISP_D3_SUBPIC_RST (1 << 19) 9741da177e4SLinus Torvalds #define DISP_PWR_MAN_DISP_D3_OV0_RST (1 << 20) 9751da177e4SLinus Torvalds #define DISP_PWR_MAN_DISP_D1D2_GRPH_RST (1 << 21) 9761da177e4SLinus Torvalds #define DISP_PWR_MAN_DISP_D1D2_SUBPIC_RST (1 << 22) 9771da177e4SLinus Torvalds #define DISP_PWR_MAN_DISP_D1D2_OV0_RST (1 << 23) 9781da177e4SLinus Torvalds #define DISP_PWR_MAN_DIG_TMDS_ENABLE_RST (1 << 24) 9791da177e4SLinus Torvalds #define DISP_PWR_MAN_TV_ENABLE_RST (1 << 25) 9801da177e4SLinus Torvalds #define DISP_PWR_MAN_AUTO_PWRUP_EN (1 << 26) 9811da177e4SLinus Torvalds 9821da177e4SLinus Torvalds /* masks */ 9831da177e4SLinus Torvalds 984fe86175bSRandy Dunlap #define CNFG_MEMSIZE_MASK 0x1f000000 9851da177e4SLinus Torvalds #define MEM_CFG_TYPE 0x40000000 9861da177e4SLinus Torvalds #define DST_OFFSET_MASK 0x003fffff 9871da177e4SLinus Torvalds #define DST_PITCH_MASK 0x3fc00000 9881da177e4SLinus Torvalds #define DEFAULT_TILE_MASK 0xc0000000 9891da177e4SLinus Torvalds #define PPLL_DIV_SEL_MASK 0x00000300 9901da177e4SLinus Torvalds #define PPLL_RESET 0x00000001 9911da177e4SLinus Torvalds #define PPLL_SLEEP 0x00000002 9921da177e4SLinus Torvalds #define PPLL_ATOMIC_UPDATE_EN 0x00010000 9931da177e4SLinus Torvalds #define PPLL_REF_DIV_MASK 0x000003ff 9941da177e4SLinus Torvalds #define PPLL_FB3_DIV_MASK 0x000007ff 9951da177e4SLinus Torvalds #define PPLL_POST3_DIV_MASK 0x00070000 9961da177e4SLinus Torvalds #define PPLL_ATOMIC_UPDATE_R 0x00008000 9971da177e4SLinus Torvalds #define PPLL_ATOMIC_UPDATE_W 0x00008000 9981da177e4SLinus Torvalds #define PPLL_VGA_ATOMIC_UPDATE_EN 0x00020000 9991da177e4SLinus Torvalds #define R300_PPLL_REF_DIV_ACC_MASK (0x3ff << 18) 10001da177e4SLinus Torvalds #define R300_PPLL_REF_DIV_ACC_SHIFT 18 10011da177e4SLinus Torvalds 10021da177e4SLinus Torvalds #define GUI_ACTIVE 0x80000000 10031da177e4SLinus Torvalds 10041da177e4SLinus Torvalds 10051da177e4SLinus Torvalds #define MC_IND_INDEX 0x01F8 10061da177e4SLinus Torvalds #define MC_IND_DATA 0x01FC 10071da177e4SLinus Torvalds 10081da177e4SLinus Torvalds /* PAD_CTLR_STRENGTH */ 10091da177e4SLinus Torvalds #define PAD_MANUAL_OVERRIDE 0x80000000 10101da177e4SLinus Torvalds 10111da177e4SLinus Torvalds // pllCLK_PIN_CNTL 10121da177e4SLinus Torvalds #define CLK_PIN_CNTL__OSC_EN_MASK 0x00000001L 10131da177e4SLinus Torvalds #define CLK_PIN_CNTL__OSC_EN 0x00000001L 10141da177e4SLinus Torvalds #define CLK_PIN_CNTL__XTL_LOW_GAIN_MASK 0x00000004L 10151da177e4SLinus Torvalds #define CLK_PIN_CNTL__XTL_LOW_GAIN 0x00000004L 10161da177e4SLinus Torvalds #define CLK_PIN_CNTL__DONT_USE_XTALIN_MASK 0x00000010L 10171da177e4SLinus Torvalds #define CLK_PIN_CNTL__DONT_USE_XTALIN 0x00000010L 10181da177e4SLinus Torvalds #define CLK_PIN_CNTL__SLOW_CLOCK_SOURCE_MASK 0x00000020L 10191da177e4SLinus Torvalds #define CLK_PIN_CNTL__SLOW_CLOCK_SOURCE 0x00000020L 10201da177e4SLinus Torvalds #define CLK_PIN_CNTL__CG_CLK_TO_OUTPIN_MASK 0x00000800L 10211da177e4SLinus Torvalds #define CLK_PIN_CNTL__CG_CLK_TO_OUTPIN 0x00000800L 10221da177e4SLinus Torvalds #define CLK_PIN_CNTL__CG_COUNT_UP_TO_OUTPIN_MASK 0x00001000L 10231da177e4SLinus Torvalds #define CLK_PIN_CNTL__CG_COUNT_UP_TO_OUTPIN 0x00001000L 10241da177e4SLinus Torvalds #define CLK_PIN_CNTL__ACCESS_REGS_IN_SUSPEND_MASK 0x00002000L 10251da177e4SLinus Torvalds #define CLK_PIN_CNTL__ACCESS_REGS_IN_SUSPEND 0x00002000L 10261da177e4SLinus Torvalds #define CLK_PIN_CNTL__CG_SPARE_MASK 0x00004000L 10271da177e4SLinus Torvalds #define CLK_PIN_CNTL__CG_SPARE 0x00004000L 10281da177e4SLinus Torvalds #define CLK_PIN_CNTL__SCLK_DYN_START_CNTL_MASK 0x00008000L 10291da177e4SLinus Torvalds #define CLK_PIN_CNTL__SCLK_DYN_START_CNTL 0x00008000L 10301da177e4SLinus Torvalds #define CLK_PIN_CNTL__CP_CLK_RUNNING_MASK 0x00010000L 10311da177e4SLinus Torvalds #define CLK_PIN_CNTL__CP_CLK_RUNNING 0x00010000L 10321da177e4SLinus Torvalds #define CLK_PIN_CNTL__CG_SPARE_RD_MASK 0x00060000L 10331da177e4SLinus Torvalds #define CLK_PIN_CNTL__XTALIN_ALWAYS_ONb_MASK 0x00080000L 10341da177e4SLinus Torvalds #define CLK_PIN_CNTL__XTALIN_ALWAYS_ONb 0x00080000L 10351da177e4SLinus Torvalds #define CLK_PIN_CNTL__PWRSEQ_DELAY_MASK 0xff000000L 10361da177e4SLinus Torvalds 10371da177e4SLinus Torvalds // pllCLK_PWRMGT_CNTL 10381da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF__SHIFT 0x00000000 10391da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF__SHIFT 0x00000001 10401da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF__SHIFT 0x00000002 10411da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF__SHIFT 0x00000003 10421da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MCLK_TURNOFF__SHIFT 0x00000004 10431da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__SCLK_TURNOFF__SHIFT 0x00000005 10441da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__PCLK_TURNOFF__SHIFT 0x00000006 10451da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__P2CLK_TURNOFF__SHIFT 0x00000007 10461da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_CH_MODE__SHIFT 0x00000008 10471da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__TEST_MODE__SHIFT 0x00000009 10481da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN__SHIFT 0x0000000a 10491da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE__SHIFT 0x0000000c 10501da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__ACTIVE_HILO_LAT__SHIFT 0x0000000d 10511da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT__SHIFT 0x0000000f 10521da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_BUSY__SHIFT 0x00000010 10531da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_INT_CNTL__SHIFT 0x00000011 10541da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_SWITCH__SHIFT 0x00000012 10551da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__DLL_READY__SHIFT 0x00000013 10561da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__DISP_PM__SHIFT 0x00000014 10571da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__DYN_STOP_MODE__SHIFT 0x00000015 10581da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__CG_NO1_DEBUG__SHIFT 0x00000018 10591da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF__SHIFT 0x0000001e 10601da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__TVCLK_TURNOFF__SHIFT 0x0000001f 10611da177e4SLinus Torvalds 10621da177e4SLinus Torvalds // pllP2PLL_CNTL 10631da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_RESET_MASK 0x00000001L 10641da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_RESET 0x00000001L 10651da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_SLEEP_MASK 0x00000002L 10661da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_SLEEP 0x00000002L 10671da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_TST_EN_MASK 0x00000004L 10681da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_TST_EN 0x00000004L 10691da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_REFCLK_SEL_MASK 0x00000010L 10701da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_REFCLK_SEL 0x00000010L 10711da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_FBCLK_SEL_MASK 0x00000020L 10721da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_FBCLK_SEL 0x00000020L 10731da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_TCPOFF_MASK 0x00000040L 10741da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_TCPOFF 0x00000040L 10751da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_TVCOMAX_MASK 0x00000080L 10761da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_TVCOMAX 0x00000080L 10771da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_PCP_MASK 0x00000700L 10781da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_PVG_MASK 0x00003800L 10791da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_PDC_MASK 0x0000c000L 10801da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_EN_MASK 0x00010000L 10811da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_EN 0x00010000L 10821da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_SYNC_MASK 0x00040000L 10831da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_ATOMIC_UPDATE_SYNC 0x00040000L 10841da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_DISABLE_AUTO_RESET_MASK 0x00080000L 10851da177e4SLinus Torvalds #define P2PLL_CNTL__P2PLL_DISABLE_AUTO_RESET 0x00080000L 10861da177e4SLinus Torvalds 10871da177e4SLinus Torvalds // pllPIXCLKS_CNTL 10881da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIX2CLK_SRC_SEL__SHIFT 0x00000000 10891da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIX2CLK_INVERT__SHIFT 0x00000004 10901da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIX2CLK_SRC_INVERT__SHIFT 0x00000005 10911da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIX2CLK_ALWAYS_ONb__SHIFT 0x00000006 10921da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIX2CLK_DAC_ALWAYS_ONb__SHIFT 0x00000007 10931da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_TV_SRC_SEL__SHIFT 0x00000008 10941da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_BLEND_ALWAYS_ONb__SHIFT 0x0000000b 10951da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_GV_ALWAYS_ONb__SHIFT 0x0000000c 10961da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_DIG_TMDS_ALWAYS_ONb__SHIFT 0x0000000d 10971da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_LVDS_ALWAYS_ONb__SHIFT 0x0000000e 10981da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_TMDS_ALWAYS_ONb__SHIFT 0x0000000f 10991da177e4SLinus Torvalds 11001da177e4SLinus Torvalds 11011da177e4SLinus Torvalds // pllPIXCLKS_CNTL 11021da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIX2CLK_SRC_SEL_MASK 0x00000003L 11031da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIX2CLK_INVERT 0x00000010L 11041da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIX2CLK_SRC_INVERT 0x00000020L 11051da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIX2CLK_ALWAYS_ONb 0x00000040L 11061da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIX2CLK_DAC_ALWAYS_ONb 0x00000080L 11071da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_TV_SRC_SEL 0x00000100L 11081da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_BLEND_ALWAYS_ONb 0x00000800L 11091da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_GV_ALWAYS_ONb 0x00001000L 11101da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_DIG_TMDS_ALWAYS_ONb 0x00002000L 11111da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_LVDS_ALWAYS_ONb 0x00004000L 11121da177e4SLinus Torvalds #define PIXCLKS_CNTL__PIXCLK_TMDS_ALWAYS_ONb 0x00008000L 11131da177e4SLinus Torvalds #define PIXCLKS_CNTL__DISP_TVOUT_PIXCLK_TV_ALWAYS_ONb (1 << 9) 11141da177e4SLinus Torvalds #define PIXCLKS_CNTL__R300_DVOCLK_ALWAYS_ONb (1 << 10) 11151da177e4SLinus Torvalds #define PIXCLKS_CNTL__R300_PIXCLK_DVO_ALWAYS_ONb (1 << 13) 11161da177e4SLinus Torvalds #define PIXCLKS_CNTL__R300_PIXCLK_TRANS_ALWAYS_ONb (1 << 16) 11171da177e4SLinus Torvalds #define PIXCLKS_CNTL__R300_PIXCLK_TVO_ALWAYS_ONb (1 << 17) 11181da177e4SLinus Torvalds #define PIXCLKS_CNTL__R300_P2G2CLK_ALWAYS_ONb (1 << 18) 11191da177e4SLinus Torvalds #define PIXCLKS_CNTL__R300_P2G2CLK_DAC_ALWAYS_ONb (1 << 19) 11201da177e4SLinus Torvalds #define PIXCLKS_CNTL__R300_DISP_DAC_PIXCLK_DAC2_BLANK_OFF (1 << 23) 11211da177e4SLinus Torvalds 11221da177e4SLinus Torvalds 11231da177e4SLinus Torvalds // pllP2PLL_DIV_0 11241da177e4SLinus Torvalds #define P2PLL_DIV_0__P2PLL_FB_DIV_MASK 0x000007ffL 11251da177e4SLinus Torvalds #define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_W_MASK 0x00008000L 11261da177e4SLinus Torvalds #define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_W 0x00008000L 11271da177e4SLinus Torvalds #define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_R_MASK 0x00008000L 11281da177e4SLinus Torvalds #define P2PLL_DIV_0__P2PLL_ATOMIC_UPDATE_R 0x00008000L 11291da177e4SLinus Torvalds #define P2PLL_DIV_0__P2PLL_POST_DIV_MASK 0x00070000L 11301da177e4SLinus Torvalds 11311da177e4SLinus Torvalds // pllSCLK_CNTL 11321da177e4SLinus Torvalds #define SCLK_CNTL__SCLK_SRC_SEL_MASK 0x00000007L 11331da177e4SLinus Torvalds #define SCLK_CNTL__CP_MAX_DYN_STOP_LAT 0x00000008L 11341da177e4SLinus Torvalds #define SCLK_CNTL__HDP_MAX_DYN_STOP_LAT 0x00000010L 11351da177e4SLinus Torvalds #define SCLK_CNTL__TV_MAX_DYN_STOP_LAT 0x00000020L 11361da177e4SLinus Torvalds #define SCLK_CNTL__E2_MAX_DYN_STOP_LAT 0x00000040L 11371da177e4SLinus Torvalds #define SCLK_CNTL__SE_MAX_DYN_STOP_LAT 0x00000080L 11381da177e4SLinus Torvalds #define SCLK_CNTL__IDCT_MAX_DYN_STOP_LAT 0x00000100L 11391da177e4SLinus Torvalds #define SCLK_CNTL__VIP_MAX_DYN_STOP_LAT 0x00000200L 11401da177e4SLinus Torvalds #define SCLK_CNTL__RE_MAX_DYN_STOP_LAT 0x00000400L 11411da177e4SLinus Torvalds #define SCLK_CNTL__PB_MAX_DYN_STOP_LAT 0x00000800L 11421da177e4SLinus Torvalds #define SCLK_CNTL__TAM_MAX_DYN_STOP_LAT 0x00001000L 11431da177e4SLinus Torvalds #define SCLK_CNTL__TDM_MAX_DYN_STOP_LAT 0x00002000L 11441da177e4SLinus Torvalds #define SCLK_CNTL__RB_MAX_DYN_STOP_LAT 0x00004000L 11451da177e4SLinus Torvalds #define SCLK_CNTL__DYN_STOP_LAT_MASK 0x00007ff8 11461da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_DISP2 0x00008000L 11471da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_CP 0x00010000L 11481da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_HDP 0x00020000L 11491da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_DISP1 0x00040000L 11501da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_TOP 0x00080000L 11511da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_E2 0x00100000L 11521da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_SE 0x00200000L 11531da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_IDCT 0x00400000L 11541da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_VIP 0x00800000L 11551da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_RE 0x01000000L 11561da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_PB 0x02000000L 11571da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_TAM 0x04000000L 11581da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_TDM 0x08000000L 11591da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_RB 0x10000000L 11601da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_TV_SCLK 0x20000000L 11611da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_SUBPIC 0x40000000L 11621da177e4SLinus Torvalds #define SCLK_CNTL__FORCE_OV0 0x80000000L 11631da177e4SLinus Torvalds #define SCLK_CNTL__R300_FORCE_VAP (1<<21) 11641da177e4SLinus Torvalds #define SCLK_CNTL__R300_FORCE_SR (1<<25) 11651da177e4SLinus Torvalds #define SCLK_CNTL__R300_FORCE_PX (1<<26) 11661da177e4SLinus Torvalds #define SCLK_CNTL__R300_FORCE_TX (1<<27) 11671da177e4SLinus Torvalds #define SCLK_CNTL__R300_FORCE_US (1<<28) 11681da177e4SLinus Torvalds #define SCLK_CNTL__R300_FORCE_SU (1<<30) 11691da177e4SLinus Torvalds #define SCLK_CNTL__FORCEON_MASK 0xffff8000L 11701da177e4SLinus Torvalds 11711da177e4SLinus Torvalds // pllSCLK_CNTL2 11721da177e4SLinus Torvalds #define SCLK_CNTL2__R300_TCL_MAX_DYN_STOP_LAT (1<<10) 11731da177e4SLinus Torvalds #define SCLK_CNTL2__R300_GA_MAX_DYN_STOP_LAT (1<<11) 11741da177e4SLinus Torvalds #define SCLK_CNTL2__R300_CBA_MAX_DYN_STOP_LAT (1<<12) 11751da177e4SLinus Torvalds #define SCLK_CNTL2__R300_FORCE_TCL (1<<13) 11761da177e4SLinus Torvalds #define SCLK_CNTL2__R300_FORCE_CBA (1<<14) 11771da177e4SLinus Torvalds #define SCLK_CNTL2__R300_FORCE_GA (1<<15) 11781da177e4SLinus Torvalds 11791da177e4SLinus Torvalds // SCLK_MORE_CNTL 11801da177e4SLinus Torvalds #define SCLK_MORE_CNTL__DISPREGS_MAX_DYN_STOP_LAT 0x00000001L 11811da177e4SLinus Torvalds #define SCLK_MORE_CNTL__MC_GUI_MAX_DYN_STOP_LAT 0x00000002L 11821da177e4SLinus Torvalds #define SCLK_MORE_CNTL__MC_HOST_MAX_DYN_STOP_LAT 0x00000004L 11831da177e4SLinus Torvalds #define SCLK_MORE_CNTL__FORCE_DISPREGS 0x00000100L 11841da177e4SLinus Torvalds #define SCLK_MORE_CNTL__FORCE_MC_GUI 0x00000200L 11851da177e4SLinus Torvalds #define SCLK_MORE_CNTL__FORCE_MC_HOST 0x00000400L 11861da177e4SLinus Torvalds #define SCLK_MORE_CNTL__STOP_SCLK_EN 0x00001000L 11871da177e4SLinus Torvalds #define SCLK_MORE_CNTL__STOP_SCLK_A 0x00002000L 11881da177e4SLinus Torvalds #define SCLK_MORE_CNTL__STOP_SCLK_B 0x00004000L 11891da177e4SLinus Torvalds #define SCLK_MORE_CNTL__STOP_SCLK_C 0x00008000L 11901da177e4SLinus Torvalds #define SCLK_MORE_CNTL__HALF_SPEED_SCLK 0x00010000L 11911da177e4SLinus Torvalds #define SCLK_MORE_CNTL__IO_CG_VOLTAGE_DROP 0x00020000L 11921da177e4SLinus Torvalds #define SCLK_MORE_CNTL__TVFB_SOFT_RESET 0x00040000L 11931da177e4SLinus Torvalds #define SCLK_MORE_CNTL__VOLTAGE_DROP_SYNC 0x00080000L 11941da177e4SLinus Torvalds #define SCLK_MORE_CNTL__IDLE_DELAY_HALF_SCLK 0x00400000L 11951da177e4SLinus Torvalds #define SCLK_MORE_CNTL__AGP_BUSY_HALF_SCLK 0x00800000L 11961da177e4SLinus Torvalds #define SCLK_MORE_CNTL__CG_SPARE_RD_C_MASK 0xff000000L 11971da177e4SLinus Torvalds #define SCLK_MORE_CNTL__FORCEON 0x00000700L 11981da177e4SLinus Torvalds 11991da177e4SLinus Torvalds // MCLK_CNTL 12001da177e4SLinus Torvalds #define MCLK_CNTL__MCLKA_SRC_SEL_MASK 0x00000007L 12011da177e4SLinus Torvalds #define MCLK_CNTL__YCLKA_SRC_SEL_MASK 0x00000070L 12021da177e4SLinus Torvalds #define MCLK_CNTL__MCLKB_SRC_SEL_MASK 0x00000700L 12031da177e4SLinus Torvalds #define MCLK_CNTL__YCLKB_SRC_SEL_MASK 0x00007000L 12041da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_MCLKA_MASK 0x00010000L 12051da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_MCLKA 0x00010000L 12061da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_MCLKB_MASK 0x00020000L 12071da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_MCLKB 0x00020000L 12081da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_YCLKA_MASK 0x00040000L 12091da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_YCLKA 0x00040000L 12101da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_YCLKB_MASK 0x00080000L 12111da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_YCLKB 0x00080000L 12121da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_MC_MASK 0x00100000L 12131da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_MC 0x00100000L 12141da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_AIC_MASK 0x00200000L 12151da177e4SLinus Torvalds #define MCLK_CNTL__FORCE_AIC 0x00200000L 12161da177e4SLinus Torvalds #define MCLK_CNTL__MRDCKA0_SOUTSEL_MASK 0x03000000L 12171da177e4SLinus Torvalds #define MCLK_CNTL__MRDCKA1_SOUTSEL_MASK 0x0c000000L 12181da177e4SLinus Torvalds #define MCLK_CNTL__MRDCKB0_SOUTSEL_MASK 0x30000000L 12191da177e4SLinus Torvalds #define MCLK_CNTL__MRDCKB1_SOUTSEL_MASK 0xc0000000L 12201da177e4SLinus Torvalds #define MCLK_CNTL__R300_DISABLE_MC_MCLKA (1 << 21) 12211da177e4SLinus Torvalds #define MCLK_CNTL__R300_DISABLE_MC_MCLKB (1 << 21) 12221da177e4SLinus Torvalds 12231da177e4SLinus Torvalds // MCLK_MISC 12241da177e4SLinus Torvalds #define MCLK_MISC__SCLK_SOURCED_FROM_MPLL_SEL_MASK 0x00000003L 12251da177e4SLinus Torvalds #define MCLK_MISC__MCLK_FROM_SPLL_DIV_SEL_MASK 0x00000004L 12261da177e4SLinus Torvalds #define MCLK_MISC__MCLK_FROM_SPLL_DIV_SEL 0x00000004L 12271da177e4SLinus Torvalds #define MCLK_MISC__ENABLE_SCLK_FROM_MPLL_MASK 0x00000008L 12281da177e4SLinus Torvalds #define MCLK_MISC__ENABLE_SCLK_FROM_MPLL 0x00000008L 12291da177e4SLinus Torvalds #define MCLK_MISC__MPLL_MODEA_MODEC_HW_SEL_EN_MASK 0x00000010L 12301da177e4SLinus Torvalds #define MCLK_MISC__MPLL_MODEA_MODEC_HW_SEL_EN 0x00000010L 12311da177e4SLinus Torvalds #define MCLK_MISC__DLL_READY_LAT_MASK 0x00000100L 12321da177e4SLinus Torvalds #define MCLK_MISC__DLL_READY_LAT 0x00000100L 12331da177e4SLinus Torvalds #define MCLK_MISC__MC_MCLK_MAX_DYN_STOP_LAT_MASK 0x00001000L 12341da177e4SLinus Torvalds #define MCLK_MISC__MC_MCLK_MAX_DYN_STOP_LAT 0x00001000L 12351da177e4SLinus Torvalds #define MCLK_MISC__IO_MCLK_MAX_DYN_STOP_LAT_MASK 0x00002000L 12361da177e4SLinus Torvalds #define MCLK_MISC__IO_MCLK_MAX_DYN_STOP_LAT 0x00002000L 12371da177e4SLinus Torvalds #define MCLK_MISC__MC_MCLK_DYN_ENABLE_MASK 0x00004000L 12381da177e4SLinus Torvalds #define MCLK_MISC__MC_MCLK_DYN_ENABLE 0x00004000L 12391da177e4SLinus Torvalds #define MCLK_MISC__IO_MCLK_DYN_ENABLE_MASK 0x00008000L 12401da177e4SLinus Torvalds #define MCLK_MISC__IO_MCLK_DYN_ENABLE 0x00008000L 12411da177e4SLinus Torvalds #define MCLK_MISC__CGM_CLK_TO_OUTPIN_MASK 0x00010000L 12421da177e4SLinus Torvalds #define MCLK_MISC__CGM_CLK_TO_OUTPIN 0x00010000L 12431da177e4SLinus Torvalds #define MCLK_MISC__CLK_OR_COUNT_SEL_MASK 0x00020000L 12441da177e4SLinus Torvalds #define MCLK_MISC__CLK_OR_COUNT_SEL 0x00020000L 12451da177e4SLinus Torvalds #define MCLK_MISC__EN_MCLK_TRISTATE_IN_SUSPEND_MASK 0x00040000L 12461da177e4SLinus Torvalds #define MCLK_MISC__EN_MCLK_TRISTATE_IN_SUSPEND 0x00040000L 12471da177e4SLinus Torvalds #define MCLK_MISC__CGM_SPARE_RD_MASK 0x00300000L 12481da177e4SLinus Torvalds #define MCLK_MISC__CGM_SPARE_A_RD_MASK 0x00c00000L 12491da177e4SLinus Torvalds #define MCLK_MISC__TCLK_TO_YCLKB_EN_MASK 0x01000000L 12501da177e4SLinus Torvalds #define MCLK_MISC__TCLK_TO_YCLKB_EN 0x01000000L 12511da177e4SLinus Torvalds #define MCLK_MISC__CGM_SPARE_A_MASK 0x0e000000L 12521da177e4SLinus Torvalds 12531da177e4SLinus Torvalds // VCLK_ECP_CNTL 12541da177e4SLinus Torvalds #define VCLK_ECP_CNTL__VCLK_SRC_SEL_MASK 0x00000003L 12551da177e4SLinus Torvalds #define VCLK_ECP_CNTL__VCLK_INVERT 0x00000010L 12561da177e4SLinus Torvalds #define VCLK_ECP_CNTL__PIXCLK_SRC_INVERT 0x00000020L 12571da177e4SLinus Torvalds #define VCLK_ECP_CNTL__PIXCLK_ALWAYS_ONb 0x00000040L 12581da177e4SLinus Torvalds #define VCLK_ECP_CNTL__PIXCLK_DAC_ALWAYS_ONb 0x00000080L 12591da177e4SLinus Torvalds #define VCLK_ECP_CNTL__ECP_DIV_MASK 0x00000300L 12601da177e4SLinus Torvalds #define VCLK_ECP_CNTL__ECP_FORCE_ON 0x00040000L 12611da177e4SLinus Torvalds #define VCLK_ECP_CNTL__SUBCLK_FORCE_ON 0x00080000L 12621da177e4SLinus Torvalds #define VCLK_ECP_CNTL__R300_DISP_DAC_PIXCLK_DAC_BLANK_OFF (1<<23) 12631da177e4SLinus Torvalds 12641da177e4SLinus Torvalds // PLL_PWRMGT_CNTL 12651da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__MPLL_TURNOFF_MASK 0x00000001L 12661da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__MPLL_TURNOFF 0x00000001L 12671da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__SPLL_TURNOFF_MASK 0x00000002L 12681da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__SPLL_TURNOFF 0x00000002L 12691da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__PPLL_TURNOFF_MASK 0x00000004L 12701da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__PPLL_TURNOFF 0x00000004L 12711da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__P2PLL_TURNOFF_MASK 0x00000008L 12721da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__P2PLL_TURNOFF 0x00000008L 12731da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__TVPLL_TURNOFF_MASK 0x00000010L 12741da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__TVPLL_TURNOFF 0x00000010L 12751da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__AGPCLK_DYN_STOP_LAT_MASK 0x000001e0L 12761da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__APM_POWER_STATE_MASK 0x00000600L 12771da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__APM_PWRSTATE_RD_MASK 0x00001800L 12781da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__PM_MODE_SEL_MASK 0x00002000L 12791da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__PM_MODE_SEL 0x00002000L 12801da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__EN_PWRSEQ_DONE_COND_MASK 0x00004000L 12811da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__EN_PWRSEQ_DONE_COND 0x00004000L 12821da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__EN_DISP_PARKED_COND_MASK 0x00008000L 12831da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__EN_DISP_PARKED_COND 0x00008000L 12841da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__MOBILE_SU_MASK 0x00010000L 12851da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__MOBILE_SU 0x00010000L 12861da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__SU_SCLK_USE_BCLK_MASK 0x00020000L 12871da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__SU_SCLK_USE_BCLK 0x00020000L 12881da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__SU_MCLK_USE_BCLK_MASK 0x00040000L 12891da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__SU_MCLK_USE_BCLK 0x00040000L 12901da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__SU_SUSTAIN_DISABLE_MASK 0x00080000L 12911da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__SU_SUSTAIN_DISABLE 0x00080000L 12921da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__TCL_BYPASS_DISABLE_MASK 0x00100000L 12931da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__TCL_BYPASS_DISABLE 0x00100000L 12941da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__TCL_CLOCK_CTIVE_RD_MASK 0x00200000L 12951da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__TCL_CLOCK_ACTIVE_RD 0x00200000L 12961da177e4SLinus Torvalds #define PLL_PWRMGT_CNTL__CG_NO2_DEBUG_MASK 0xff000000L 12971da177e4SLinus Torvalds 12981da177e4SLinus Torvalds // CLK_PWRMGT_CNTL 12991da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF_MASK 0x00000001L 13001da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MPLL_PWRMGT_OFF 0x00000001L 13011da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF_MASK 0x00000002L 13021da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__SPLL_PWRMGT_OFF 0x00000002L 13031da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF_MASK 0x00000004L 13041da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__PPLL_PWRMGT_OFF 0x00000004L 13051da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF_MASK 0x00000008L 13061da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__P2PLL_PWRMGT_OFF 0x00000008L 13071da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MCLK_TURNOFF_MASK 0x00000010L 13081da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MCLK_TURNOFF 0x00000010L 13091da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__SCLK_TURNOFF_MASK 0x00000020L 13101da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__SCLK_TURNOFF 0x00000020L 13111da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__PCLK_TURNOFF_MASK 0x00000040L 13121da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__PCLK_TURNOFF 0x00000040L 13131da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__P2CLK_TURNOFF_MASK 0x00000080L 13141da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__P2CLK_TURNOFF 0x00000080L 13151da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_CH_MODE_MASK 0x00000100L 13161da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_CH_MODE 0x00000100L 13171da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__TEST_MODE_MASK 0x00000200L 13181da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__TEST_MODE 0x00000200L 13191da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN_MASK 0x00000400L 13201da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__GLOBAL_PMAN_EN 0x00000400L 13211da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE_MASK 0x00001000L 13221da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__ENGINE_DYNCLK_MODE 0x00001000L 13231da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__ACTIVE_HILO_LAT_MASK 0x00006000L 13241da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT_MASK 0x00008000L 13251da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__DISP_DYN_STOP_LAT 0x00008000L 13261da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_BUSY_MASK 0x00010000L 13271da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_BUSY 0x00010000L 13281da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_INT_CNTL_MASK 0x00020000L 13291da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_INT_CNTL 0x00020000L 13301da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_SWITCH_MASK 0x00040000L 13311da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__MC_SWITCH 0x00040000L 13321da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__DLL_READY_MASK 0x00080000L 13331da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__DLL_READY 0x00080000L 13341da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__DISP_PM_MASK 0x00100000L 13351da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__DISP_PM 0x00100000L 13361da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__DYN_STOP_MODE_MASK 0x00e00000L 13371da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__CG_NO1_DEBUG_MASK 0x3f000000L 13381da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF_MASK 0x40000000L 13391da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__TVPLL_PWRMGT_OFF 0x40000000L 13401da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__TVCLK_TURNOFF_MASK 0x80000000L 13411da177e4SLinus Torvalds #define CLK_PWRMGT_CNTL__TVCLK_TURNOFF 0x80000000L 13421da177e4SLinus Torvalds 13431da177e4SLinus Torvalds // BUS_CNTL1 13441da177e4SLinus Torvalds #define BUS_CNTL1__PMI_IO_DISABLE_MASK 0x00000001L 13451da177e4SLinus Torvalds #define BUS_CNTL1__PMI_IO_DISABLE 0x00000001L 13461da177e4SLinus Torvalds #define BUS_CNTL1__PMI_MEM_DISABLE_MASK 0x00000002L 13471da177e4SLinus Torvalds #define BUS_CNTL1__PMI_MEM_DISABLE 0x00000002L 13481da177e4SLinus Torvalds #define BUS_CNTL1__PMI_BM_DISABLE_MASK 0x00000004L 13491da177e4SLinus Torvalds #define BUS_CNTL1__PMI_BM_DISABLE 0x00000004L 13501da177e4SLinus Torvalds #define BUS_CNTL1__PMI_INT_DISABLE_MASK 0x00000008L 13511da177e4SLinus Torvalds #define BUS_CNTL1__PMI_INT_DISABLE 0x00000008L 13521da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE_MASK 0x00000020L 13531da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE 0x00000020L 13541da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS_MASK 0x00000100L 13551da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS 0x00000100L 13561da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS_MASK 0x00000200L 13571da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS 0x00000200L 13581da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS_MASK 0x00000400L 13591da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS 0x00000400L 13601da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS_MASK 0x00000800L 13611da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS 0x00000800L 13621da177e4SLinus Torvalds #define BUS_CNTL1__MOBILE_PLATFORM_SEL_MASK 0x0c000000L 13631da177e4SLinus Torvalds #define BUS_CNTL1__SEND_SBA_LATENCY_MASK 0x70000000L 13641da177e4SLinus Torvalds #define BUS_CNTL1__AGPCLK_VALID_MASK 0x80000000L 13651da177e4SLinus Torvalds #define BUS_CNTL1__AGPCLK_VALID 0x80000000L 13661da177e4SLinus Torvalds 13671da177e4SLinus Torvalds // BUS_CNTL1 13681da177e4SLinus Torvalds #define BUS_CNTL1__PMI_IO_DISABLE__SHIFT 0x00000000 13691da177e4SLinus Torvalds #define BUS_CNTL1__PMI_MEM_DISABLE__SHIFT 0x00000001 13701da177e4SLinus Torvalds #define BUS_CNTL1__PMI_BM_DISABLE__SHIFT 0x00000002 13711da177e4SLinus Torvalds #define BUS_CNTL1__PMI_INT_DISABLE__SHIFT 0x00000003 13721da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_IMMEDIATE_PMI_DISABLE__SHIFT 0x00000005 13731da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_VGA_REG_COHERENCY_DIS__SHIFT 0x00000008 13741da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_VGA_MEM_COHERENCY_DIS__SHIFT 0x00000009 13751da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_HDP_REG_COHERENCY_DIS__SHIFT 0x0000000a 13761da177e4SLinus Torvalds #define BUS_CNTL1__BUS2_GUI_INITIATOR_COHERENCY_DIS__SHIFT 0x0000000b 13771da177e4SLinus Torvalds #define BUS_CNTL1__MOBILE_PLATFORM_SEL__SHIFT 0x0000001a 13781da177e4SLinus Torvalds #define BUS_CNTL1__SEND_SBA_LATENCY__SHIFT 0x0000001c 13791da177e4SLinus Torvalds #define BUS_CNTL1__AGPCLK_VALID__SHIFT 0x0000001f 13801da177e4SLinus Torvalds 13811da177e4SLinus Torvalds // CRTC_OFFSET_CNTL 13821da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_TILE_LINE_MASK 0x0000000fL 13831da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_TILE_LINE_RIGHT_MASK 0x000000f0L 13841da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_TILE_EN_RIGHT_MASK 0x00004000L 13851da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_TILE_EN_RIGHT 0x00004000L 13861da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_TILE_EN_MASK 0x00008000L 13871da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_TILE_EN 0x00008000L 13881da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_OFFSET_FLIP_CNTL_MASK 0x00010000L 13891da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_OFFSET_FLIP_CNTL 0x00010000L 13901da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_STEREO_OFFSET_EN_MASK 0x00020000L 13911da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_STEREO_OFFSET_EN 0x00020000L 13921da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_EN_MASK 0x000c0000L 13931da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_OUT_EN_MASK 0x00100000L 13941da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_OUT_EN 0x00100000L 13951da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC_MASK 0x00200000L 13961da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_STEREO_SYNC 0x00200000L 13971da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_LEFT_EN_MASK 0x10000000L 13981da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_LEFT_EN 0x10000000L 13991da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_RIGHT_EN_MASK 0x20000000L 14001da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_RIGHT_EN 0x20000000L 14011da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET_MASK 0x40000000L 14021da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_GUI_TRIG_OFFSET 0x40000000L 14031da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_OFFSET_LOCK_MASK 0x80000000L 14041da177e4SLinus Torvalds #define CRTC_OFFSET_CNTL__CRTC_OFFSET_LOCK 0x80000000L 14051da177e4SLinus Torvalds 14061da177e4SLinus Torvalds // CRTC_GEN_CNTL 14071da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_DBL_SCAN_EN_MASK 0x00000001L 14081da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_DBL_SCAN_EN 0x00000001L 14091da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_INTERLACE_EN_MASK 0x00000002L 14101da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_INTERLACE_EN 0x00000002L 14111da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_C_SYNC_EN_MASK 0x00000010L 14121da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_C_SYNC_EN 0x00000010L 14131da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_PIX_WIDTH_MASK 0x00000f00L 14141da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_ICON_EN_MASK 0x00008000L 14151da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_ICON_EN 0x00008000L 14161da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_CUR_EN_MASK 0x00010000L 14171da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_CUR_EN 0x00010000L 14181da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_VSTAT_MODE_MASK 0x00060000L 14191da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_CUR_MODE_MASK 0x00700000L 14201da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_EXT_DISP_EN_MASK 0x01000000L 14211da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_EXT_DISP_EN 0x01000000L 14221da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_EN_MASK 0x02000000L 14231da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_EN 0x02000000L 14241da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_DISP_REQ_EN_B_MASK 0x04000000L 14251da177e4SLinus Torvalds #define CRTC_GEN_CNTL__CRTC_DISP_REQ_EN_B 0x04000000L 14261da177e4SLinus Torvalds 14271da177e4SLinus Torvalds // CRTC2_GEN_CNTL 14281da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_DBL_SCAN_EN_MASK 0x00000001L 14291da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_DBL_SCAN_EN 0x00000001L 14301da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_INTERLACE_EN_MASK 0x00000002L 14311da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_INTERLACE_EN 0x00000002L 14321da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_SYNC_TRISTATE_MASK 0x00000010L 14331da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_SYNC_TRISTATE 0x00000010L 14341da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_HSYNC_TRISTATE_MASK 0x00000020L 14351da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_HSYNC_TRISTATE 0x00000020L 14361da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_VSYNC_TRISTATE_MASK 0x00000040L 14371da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_VSYNC_TRISTATE 0x00000040L 14381da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRT2_ON_MASK 0x00000080L 14391da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRT2_ON 0x00000080L 14401da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_PIX_WIDTH_MASK 0x00000f00L 14411da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_ICON_EN_MASK 0x00008000L 14421da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_ICON_EN 0x00008000L 14431da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_CUR_EN_MASK 0x00010000L 14441da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_CUR_EN 0x00010000L 14451da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_CUR_MODE_MASK 0x00700000L 14461da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_DISPLAY_DIS_MASK 0x00800000L 14471da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_DISPLAY_DIS 0x00800000L 14481da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_EN_MASK 0x02000000L 14491da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_EN 0x02000000L 14501da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_DISP_REQ_EN_B_MASK 0x04000000L 14511da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_DISP_REQ_EN_B 0x04000000L 14521da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_C_SYNC_EN_MASK 0x08000000L 14531da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_C_SYNC_EN 0x08000000L 14541da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_HSYNC_DIS_MASK 0x10000000L 14551da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_HSYNC_DIS 0x10000000L 14561da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_VSYNC_DIS_MASK 0x20000000L 14571da177e4SLinus Torvalds #define CRTC2_GEN_CNTL__CRTC2_VSYNC_DIS 0x20000000L 14581da177e4SLinus Torvalds 14591da177e4SLinus Torvalds // AGP_CNTL 14601da177e4SLinus Torvalds #define AGP_CNTL__MAX_IDLE_CLK_MASK 0x000000ffL 14611da177e4SLinus Torvalds #define AGP_CNTL__HOLD_RD_FIFO_MASK 0x00000100L 14621da177e4SLinus Torvalds #define AGP_CNTL__HOLD_RD_FIFO 0x00000100L 14631da177e4SLinus Torvalds #define AGP_CNTL__HOLD_RQ_FIFO_MASK 0x00000200L 14641da177e4SLinus Torvalds #define AGP_CNTL__HOLD_RQ_FIFO 0x00000200L 14651da177e4SLinus Torvalds #define AGP_CNTL__EN_2X_STBB_MASK 0x00000400L 14661da177e4SLinus Torvalds #define AGP_CNTL__EN_2X_STBB 0x00000400L 14671da177e4SLinus Torvalds #define AGP_CNTL__FORCE_FULL_SBA_MASK 0x00000800L 14681da177e4SLinus Torvalds #define AGP_CNTL__FORCE_FULL_SBA 0x00000800L 14691da177e4SLinus Torvalds #define AGP_CNTL__SBA_DIS_MASK 0x00001000L 14701da177e4SLinus Torvalds #define AGP_CNTL__SBA_DIS 0x00001000L 14711da177e4SLinus Torvalds #define AGP_CNTL__AGP_REV_ID_MASK 0x00002000L 14721da177e4SLinus Torvalds #define AGP_CNTL__AGP_REV_ID 0x00002000L 14731da177e4SLinus Torvalds #define AGP_CNTL__REG_CRIPPLE_AGP4X_MASK 0x00004000L 14741da177e4SLinus Torvalds #define AGP_CNTL__REG_CRIPPLE_AGP4X 0x00004000L 14751da177e4SLinus Torvalds #define AGP_CNTL__REG_CRIPPLE_AGP2X4X_MASK 0x00008000L 14761da177e4SLinus Torvalds #define AGP_CNTL__REG_CRIPPLE_AGP2X4X 0x00008000L 14771da177e4SLinus Torvalds #define AGP_CNTL__FORCE_INT_VREF_MASK 0x00010000L 14781da177e4SLinus Torvalds #define AGP_CNTL__FORCE_INT_VREF 0x00010000L 14791da177e4SLinus Torvalds #define AGP_CNTL__PENDING_SLOTS_VAL_MASK 0x00060000L 14801da177e4SLinus Torvalds #define AGP_CNTL__PENDING_SLOTS_SEL_MASK 0x00080000L 14811da177e4SLinus Torvalds #define AGP_CNTL__PENDING_SLOTS_SEL 0x00080000L 14821da177e4SLinus Torvalds #define AGP_CNTL__EN_EXTENDED_AD_STB_2X_MASK 0x00100000L 14831da177e4SLinus Torvalds #define AGP_CNTL__EN_EXTENDED_AD_STB_2X 0x00100000L 14841da177e4SLinus Torvalds #define AGP_CNTL__DIS_QUEUED_GNT_FIX_MASK 0x00200000L 14851da177e4SLinus Torvalds #define AGP_CNTL__DIS_QUEUED_GNT_FIX 0x00200000L 14861da177e4SLinus Torvalds #define AGP_CNTL__EN_RDATA2X4X_MULTIRESET_MASK 0x00400000L 14871da177e4SLinus Torvalds #define AGP_CNTL__EN_RDATA2X4X_MULTIRESET 0x00400000L 14881da177e4SLinus Torvalds #define AGP_CNTL__EN_RBFCALM_MASK 0x00800000L 14891da177e4SLinus Torvalds #define AGP_CNTL__EN_RBFCALM 0x00800000L 14901da177e4SLinus Torvalds #define AGP_CNTL__FORCE_EXT_VREF_MASK 0x01000000L 14911da177e4SLinus Torvalds #define AGP_CNTL__FORCE_EXT_VREF 0x01000000L 14921da177e4SLinus Torvalds #define AGP_CNTL__DIS_RBF_MASK 0x02000000L 14931da177e4SLinus Torvalds #define AGP_CNTL__DIS_RBF 0x02000000L 14941da177e4SLinus Torvalds #define AGP_CNTL__DELAY_FIRST_SBA_EN_MASK 0x04000000L 14951da177e4SLinus Torvalds #define AGP_CNTL__DELAY_FIRST_SBA_EN 0x04000000L 14961da177e4SLinus Torvalds #define AGP_CNTL__DELAY_FIRST_SBA_VAL_MASK 0x38000000L 14971da177e4SLinus Torvalds #define AGP_CNTL__AGP_MISC_MASK 0xc0000000L 14981da177e4SLinus Torvalds 14991da177e4SLinus Torvalds // AGP_CNTL 15001da177e4SLinus Torvalds #define AGP_CNTL__MAX_IDLE_CLK__SHIFT 0x00000000 15011da177e4SLinus Torvalds #define AGP_CNTL__HOLD_RD_FIFO__SHIFT 0x00000008 15021da177e4SLinus Torvalds #define AGP_CNTL__HOLD_RQ_FIFO__SHIFT 0x00000009 15031da177e4SLinus Torvalds #define AGP_CNTL__EN_2X_STBB__SHIFT 0x0000000a 15041da177e4SLinus Torvalds #define AGP_CNTL__FORCE_FULL_SBA__SHIFT 0x0000000b 15051da177e4SLinus Torvalds #define AGP_CNTL__SBA_DIS__SHIFT 0x0000000c 15061da177e4SLinus Torvalds #define AGP_CNTL__AGP_REV_ID__SHIFT 0x0000000d 15071da177e4SLinus Torvalds #define AGP_CNTL__REG_CRIPPLE_AGP4X__SHIFT 0x0000000e 15081da177e4SLinus Torvalds #define AGP_CNTL__REG_CRIPPLE_AGP2X4X__SHIFT 0x0000000f 15091da177e4SLinus Torvalds #define AGP_CNTL__FORCE_INT_VREF__SHIFT 0x00000010 15101da177e4SLinus Torvalds #define AGP_CNTL__PENDING_SLOTS_VAL__SHIFT 0x00000011 15111da177e4SLinus Torvalds #define AGP_CNTL__PENDING_SLOTS_SEL__SHIFT 0x00000013 15121da177e4SLinus Torvalds #define AGP_CNTL__EN_EXTENDED_AD_STB_2X__SHIFT 0x00000014 15131da177e4SLinus Torvalds #define AGP_CNTL__DIS_QUEUED_GNT_FIX__SHIFT 0x00000015 15141da177e4SLinus Torvalds #define AGP_CNTL__EN_RDATA2X4X_MULTIRESET__SHIFT 0x00000016 15151da177e4SLinus Torvalds #define AGP_CNTL__EN_RBFCALM__SHIFT 0x00000017 15161da177e4SLinus Torvalds #define AGP_CNTL__FORCE_EXT_VREF__SHIFT 0x00000018 15171da177e4SLinus Torvalds #define AGP_CNTL__DIS_RBF__SHIFT 0x00000019 15181da177e4SLinus Torvalds #define AGP_CNTL__DELAY_FIRST_SBA_EN__SHIFT 0x0000001a 15191da177e4SLinus Torvalds #define AGP_CNTL__DELAY_FIRST_SBA_VAL__SHIFT 0x0000001b 15201da177e4SLinus Torvalds #define AGP_CNTL__AGP_MISC__SHIFT 0x0000001e 15211da177e4SLinus Torvalds 15221da177e4SLinus Torvalds // DISP_MISC_CNTL 15231da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_GRPH_PP_MASK 0x00000001L 15241da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_GRPH_PP 0x00000001L 15251da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_PP_MASK 0x00000002L 15261da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_PP 0x00000002L 15271da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_OV0_PP_MASK 0x00000004L 15281da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_OV0_PP 0x00000004L 15291da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_GRPH_SCLK_MASK 0x00000010L 15301da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_GRPH_SCLK 0x00000010L 15311da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_SCLK_MASK 0x00000020L 15321da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_SUBPIC_SCLK 0x00000020L 15331da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_OV0_SCLK_MASK 0x00000040L 15341da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_OV0_SCLK 0x00000040L 15351da177e4SLinus Torvalds #define DISP_MISC_CNTL__SYNC_STRENGTH_MASK 0x00000300L 15361da177e4SLinus Torvalds #define DISP_MISC_CNTL__SYNC_PAD_FLOP_EN_MASK 0x00000400L 15371da177e4SLinus Torvalds #define DISP_MISC_CNTL__SYNC_PAD_FLOP_EN 0x00000400L 15381da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_GRPH2_PP_MASK 0x00001000L 15391da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_GRPH2_PP 0x00001000L 15401da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_GRPH2_SCLK_MASK 0x00008000L 15411da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_GRPH2_SCLK 0x00008000L 15421da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_LVDS_MASK 0x00010000L 15431da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_LVDS 0x00010000L 15441da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_TMDS_MASK 0x00020000L 15451da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_TMDS 0x00020000L 15461da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_DIG_TMDS_MASK 0x00040000L 15471da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_DIG_TMDS 0x00040000L 15481da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_TV_MASK 0x00080000L 15491da177e4SLinus Torvalds #define DISP_MISC_CNTL__SOFT_RESET_TV 0x00080000L 15501da177e4SLinus Torvalds #define DISP_MISC_CNTL__PALETTE2_MEM_RD_MARGIN_MASK 0x00f00000L 15511da177e4SLinus Torvalds #define DISP_MISC_CNTL__PALETTE_MEM_RD_MARGIN_MASK 0x0f000000L 15521da177e4SLinus Torvalds #define DISP_MISC_CNTL__RMX_BUF_MEM_RD_MARGIN_MASK 0xf0000000L 15531da177e4SLinus Torvalds 15541da177e4SLinus Torvalds // DISP_PWR_MAN 15551da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_PWR_MAN_D3_CRTC_EN_MASK 0x00000001L 15561da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_PWR_MAN_D3_CRTC_EN 0x00000001L 15571da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP2_PWR_MAN_D3_CRTC2_EN_MASK 0x00000010L 15581da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP2_PWR_MAN_D3_CRTC2_EN 0x00000010L 15591da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_PWR_MAN_DPMS_MASK 0x00000300L 15601da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D3_RST_MASK 0x00010000L 15611da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D3_RST 0x00010000L 15621da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D3_REG_RST_MASK 0x00020000L 15631da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D3_REG_RST 0x00020000L 15641da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D3_GRPH_RST_MASK 0x00040000L 15651da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D3_GRPH_RST 0x00040000L 15661da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D3_SUBPIC_RST_MASK 0x00080000L 15671da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D3_SUBPIC_RST 0x00080000L 15681da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D3_OV0_RST_MASK 0x00100000L 15691da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D3_OV0_RST 0x00100000L 15701da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D1D2_GRPH_RST_MASK 0x00200000L 15711da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D1D2_GRPH_RST 0x00200000L 15721da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D1D2_SUBPIC_RST_MASK 0x00400000L 15731da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D1D2_SUBPIC_RST 0x00400000L 15741da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D1D2_OV0_RST_MASK 0x00800000L 15751da177e4SLinus Torvalds #define DISP_PWR_MAN__DISP_D1D2_OV0_RST 0x00800000L 15761da177e4SLinus Torvalds #define DISP_PWR_MAN__DIG_TMDS_ENABLE_RST_MASK 0x01000000L 15771da177e4SLinus Torvalds #define DISP_PWR_MAN__DIG_TMDS_ENABLE_RST 0x01000000L 15781da177e4SLinus Torvalds #define DISP_PWR_MAN__TV_ENABLE_RST_MASK 0x02000000L 15791da177e4SLinus Torvalds #define DISP_PWR_MAN__TV_ENABLE_RST 0x02000000L 15801da177e4SLinus Torvalds #define DISP_PWR_MAN__AUTO_PWRUP_EN_MASK 0x04000000L 15811da177e4SLinus Torvalds #define DISP_PWR_MAN__AUTO_PWRUP_EN 0x04000000L 15821da177e4SLinus Torvalds 15831da177e4SLinus Torvalds // MC_IND_INDEX 15841da177e4SLinus Torvalds #define MC_IND_INDEX__MC_IND_ADDR_MASK 0x0000001fL 15851da177e4SLinus Torvalds #define MC_IND_INDEX__MC_IND_WR_EN_MASK 0x00000100L 15861da177e4SLinus Torvalds #define MC_IND_INDEX__MC_IND_WR_EN 0x00000100L 15871da177e4SLinus Torvalds 15881da177e4SLinus Torvalds // MC_IND_DATA 15891da177e4SLinus Torvalds #define MC_IND_DATA__MC_IND_DATA_MASK 0xffffffffL 15901da177e4SLinus Torvalds 15911da177e4SLinus Torvalds // MC_CHP_IO_CNTL_A1 15921da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA__SHIFT 0x00000000 15931da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA__SHIFT 0x00000001 15941da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA__SHIFT 0x00000002 15951da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA__SHIFT 0x00000003 15961da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA__SHIFT 0x00000004 15971da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA__SHIFT 0x00000005 15981da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA__SHIFT 0x00000006 15991da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA__SHIFT 0x00000007 16001da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA__SHIFT 0x00000008 16011da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA__SHIFT 0x00000009 16021da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA__SHIFT 0x0000000a 16031da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_IO_MODEA__SHIFT 0x0000000c 16041da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_REC_CKA__SHIFT 0x0000000e 16051da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_REC_AA__SHIFT 0x00000010 16061da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_REC_DQMA__SHIFT 0x00000012 16071da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_REC_DQSA__SHIFT 0x00000014 16081da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA__SHIFT 0x00000016 16091da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA__SHIFT 0x00000017 16101da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SYNC_ENA__SHIFT 0x00000018 16111da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_CLK_SELA__SHIFT 0x0000001a 16121da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA__SHIFT 0x0000001c 16131da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A__SHIFT 0x0000001e 16141da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A__SHIFT 0x0000001f 16151da177e4SLinus Torvalds 16161da177e4SLinus Torvalds // MC_CHP_IO_CNTL_B1 16171da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB__SHIFT 0x00000000 16181da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB__SHIFT 0x00000001 16191da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB__SHIFT 0x00000002 16201da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB__SHIFT 0x00000003 16211da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB__SHIFT 0x00000004 16221da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB__SHIFT 0x00000005 16231da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB__SHIFT 0x00000006 16241da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB__SHIFT 0x00000007 16251da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB__SHIFT 0x00000008 16261da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB__SHIFT 0x00000009 16271da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB__SHIFT 0x0000000a 16281da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_IO_MODEB__SHIFT 0x0000000c 16291da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_REC_CKB__SHIFT 0x0000000e 16301da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_REC_AB__SHIFT 0x00000010 16311da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_REC_DQMB__SHIFT 0x00000012 16321da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_REC_DQSB__SHIFT 0x00000014 16331da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB__SHIFT 0x00000016 16341da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB__SHIFT 0x00000017 16351da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SYNC_ENB__SHIFT 0x00000018 16361da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_CLK_SELB__SHIFT 0x0000001a 16371da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB__SHIFT 0x0000001c 16381da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B__SHIFT 0x0000001e 16391da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B__SHIFT 0x0000001f 16401da177e4SLinus Torvalds 16411da177e4SLinus Torvalds // MC_CHP_IO_CNTL_A1 16421da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA_MASK 0x00000001L 16431da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_CKA 0x00000001L 16441da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA_MASK 0x00000002L 16451da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_AA 0x00000002L 16461da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA_MASK 0x00000004L 16471da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQMA 0x00000004L 16481da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA_MASK 0x00000008L 16491da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWN_DQSA 0x00000008L 16501da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA_MASK 0x00000010L 16511da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_CKA 0x00000010L 16521da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA_MASK 0x00000020L 16531da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_AA 0x00000020L 16541da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA_MASK 0x00000040L 16551da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQMA 0x00000040L 16561da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA_MASK 0x00000080L 16571da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SLEWP_DQSA 0x00000080L 16581da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA_MASK 0x00000100L 16591da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_AA 0x00000100L 16601da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA_MASK 0x00000200L 16611da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQMA 0x00000200L 16621da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA_MASK 0x00000400L 16631da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_PREAMP_DQSA 0x00000400L 16641da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_IO_MODEA_MASK 0x00003000L 16651da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_REC_CKA_MASK 0x0000c000L 16661da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_REC_AA_MASK 0x00030000L 16671da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_REC_DQMA_MASK 0x000c0000L 16681da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_REC_DQSA_MASK 0x00300000L 16691da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA_MASK 0x00400000L 16701da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SYNC_PHASEA 0x00400000L 16711da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA_MASK 0x00800000L 16721da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SYNC_CENTERA 0x00800000L 16731da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_SYNC_ENA_MASK 0x03000000L 16741da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_CLK_SELA_MASK 0x0c000000L 16751da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA_MASK 0x10000000L 16761da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_CLK_INVA 0x10000000L 16771da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A_MASK 0x40000000L 16781da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_DATA_ENIMP_A 0x40000000L 16791da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A_MASK 0x80000000L 16801da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_A1__MEM_CNTL_ENIMP_A 0x80000000L 16811da177e4SLinus Torvalds 16821da177e4SLinus Torvalds // MC_CHP_IO_CNTL_B1 16831da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB_MASK 0x00000001L 16841da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_CKB 0x00000001L 16851da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB_MASK 0x00000002L 16861da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_AB 0x00000002L 16871da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB_MASK 0x00000004L 16881da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQMB 0x00000004L 16891da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB_MASK 0x00000008L 16901da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWN_DQSB 0x00000008L 16911da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB_MASK 0x00000010L 16921da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_CKB 0x00000010L 16931da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB_MASK 0x00000020L 16941da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_AB 0x00000020L 16951da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB_MASK 0x00000040L 16961da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQMB 0x00000040L 16971da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB_MASK 0x00000080L 16981da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SLEWP_DQSB 0x00000080L 16991da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB_MASK 0x00000100L 17001da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_AB 0x00000100L 17011da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB_MASK 0x00000200L 17021da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQMB 0x00000200L 17031da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB_MASK 0x00000400L 17041da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_PREAMP_DQSB 0x00000400L 17051da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_IO_MODEB_MASK 0x00003000L 17061da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_REC_CKB_MASK 0x0000c000L 17071da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_REC_AB_MASK 0x00030000L 17081da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_REC_DQMB_MASK 0x000c0000L 17091da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_REC_DQSB_MASK 0x00300000L 17101da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB_MASK 0x00400000L 17111da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SYNC_PHASEB 0x00400000L 17121da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB_MASK 0x00800000L 17131da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SYNC_CENTERB 0x00800000L 17141da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_SYNC_ENB_MASK 0x03000000L 17151da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_CLK_SELB_MASK 0x0c000000L 17161da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB_MASK 0x10000000L 17171da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_CLK_INVB 0x10000000L 17181da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B_MASK 0x40000000L 17191da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_DATA_ENIMP_B 0x40000000L 17201da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B_MASK 0x80000000L 17211da177e4SLinus Torvalds #define MC_CHP_IO_CNTL_B1__MEM_CNTL_ENIMP_B 0x80000000L 17221da177e4SLinus Torvalds 17231da177e4SLinus Torvalds // MEM_SDRAM_MODE_REG 17241da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_MODE_REG_MASK 0x00007fffL 17251da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_WR_LATENCY_MASK 0x000f0000L 17261da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_CAS_LATENCY_MASK 0x00700000L 17271da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY_MASK 0x00800000L 17281da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY 0x00800000L 17291da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY_MASK 0x01000000L 17301da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY 0x01000000L 17311da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD_MASK 0x02000000L 17321da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD 0x02000000L 17331da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA_MASK 0x04000000L 17341da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA 0x04000000L 17351da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR_MASK 0x08000000L 17361da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR 0x08000000L 17371da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE_MASK 0x10000000L 17381da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE 0x10000000L 17391da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_DDR_DLL_MASK 0x20000000L 17401da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_DDR_DLL 0x20000000L 17411da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE_MASK 0x40000000L 17421da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE 0x40000000L 17431da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET_MASK 0x80000000L 17441da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET 0x80000000L 17451da177e4SLinus Torvalds 17461da177e4SLinus Torvalds // MEM_SDRAM_MODE_REG 17471da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_MODE_REG__SHIFT 0x00000000 17481da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_WR_LATENCY__SHIFT 0x00000010 17491da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_CAS_LATENCY__SHIFT 0x00000014 17501da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_CMD_LATENCY__SHIFT 0x00000017 17511da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_STR_LATENCY__SHIFT 0x00000018 17521da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_CMD__SHIFT 0x00000019 17531da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_DATA__SHIFT 0x0000001a 17541da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_FALL_OUT_STR__SHIFT 0x0000001b 17551da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE__SHIFT 0x0000001c 17561da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_DDR_DLL__SHIFT 0x0000001d 17571da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_CFG_TYPE__SHIFT 0x0000001e 17581da177e4SLinus Torvalds #define MEM_SDRAM_MODE_REG__MEM_SDRAM_RESET__SHIFT 0x0000001f 17591da177e4SLinus Torvalds 17601da177e4SLinus Torvalds // MEM_REFRESH_CNTL 17611da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_REFRESH_RATE_MASK 0x000000ffL 17621da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_REFRESH_DIS_MASK 0x00000100L 17631da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_REFRESH_DIS 0x00000100L 17641da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_DYNAMIC_CKE_MASK 0x00000200L 17651da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_DYNAMIC_CKE 0x00000200L 17661da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_TRFC_MASK 0x0000f000L 17671da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKA0_ENABLE_MASK 0x00010000L 17681da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKA0_ENABLE 0x00010000L 17691da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKA0b_ENABLE_MASK 0x00020000L 17701da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKA0b_ENABLE 0x00020000L 17711da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKA1_ENABLE_MASK 0x00040000L 17721da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKA1_ENABLE 0x00040000L 17731da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKA1b_ENABLE_MASK 0x00080000L 17741da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKA1b_ENABLE 0x00080000L 17751da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKAFB_ENABLE_MASK 0x00100000L 17761da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKAFB_ENABLE 0x00100000L 17771da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__DLL_FB_SLCT_CKA_MASK 0x00c00000L 17781da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKB0_ENABLE_MASK 0x01000000L 17791da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKB0_ENABLE 0x01000000L 17801da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKB0b_ENABLE_MASK 0x02000000L 17811da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKB0b_ENABLE 0x02000000L 17821da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKB1_ENABLE_MASK 0x04000000L 17831da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKB1_ENABLE 0x04000000L 17841da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKB1b_ENABLE_MASK 0x08000000L 17851da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKB1b_ENABLE 0x08000000L 17861da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKBFB_ENABLE_MASK 0x10000000L 17871da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__MEM_CLKBFB_ENABLE 0x10000000L 17881da177e4SLinus Torvalds #define MEM_REFRESH_CNTL__DLL_FB_SLCT_CKB_MASK 0xc0000000L 17891da177e4SLinus Torvalds 17901da177e4SLinus Torvalds // MC_STATUS 17911da177e4SLinus Torvalds #define MC_STATUS__MEM_PWRUP_COMPL_A_MASK 0x00000001L 17921da177e4SLinus Torvalds #define MC_STATUS__MEM_PWRUP_COMPL_A 0x00000001L 17931da177e4SLinus Torvalds #define MC_STATUS__MEM_PWRUP_COMPL_B_MASK 0x00000002L 17941da177e4SLinus Torvalds #define MC_STATUS__MEM_PWRUP_COMPL_B 0x00000002L 17951da177e4SLinus Torvalds #define MC_STATUS__MC_IDLE_MASK 0x00000004L 17961da177e4SLinus Torvalds #define MC_STATUS__MC_IDLE 0x00000004L 17971da177e4SLinus Torvalds #define MC_STATUS__IMP_N_VALUE_R_BACK_MASK 0x00000078L 17981da177e4SLinus Torvalds #define MC_STATUS__IMP_P_VALUE_R_BACK_MASK 0x00000780L 17991da177e4SLinus Torvalds #define MC_STATUS__TEST_OUT_R_BACK_MASK 0x00000800L 18001da177e4SLinus Torvalds #define MC_STATUS__TEST_OUT_R_BACK 0x00000800L 18011da177e4SLinus Torvalds #define MC_STATUS__DUMMY_OUT_R_BACK_MASK 0x00001000L 18021da177e4SLinus Torvalds #define MC_STATUS__DUMMY_OUT_R_BACK 0x00001000L 18031da177e4SLinus Torvalds #define MC_STATUS__IMP_N_VALUE_A_R_BACK_MASK 0x0001e000L 18041da177e4SLinus Torvalds #define MC_STATUS__IMP_P_VALUE_A_R_BACK_MASK 0x001e0000L 18051da177e4SLinus Torvalds #define MC_STATUS__IMP_N_VALUE_CK_R_BACK_MASK 0x01e00000L 18061da177e4SLinus Torvalds #define MC_STATUS__IMP_P_VALUE_CK_R_BACK_MASK 0x1e000000L 18071da177e4SLinus Torvalds 18081da177e4SLinus Torvalds // MDLL_CKO 18091da177e4SLinus Torvalds #define MDLL_CKO__MCKOA_SLEEP_MASK 0x00000001L 18101da177e4SLinus Torvalds #define MDLL_CKO__MCKOA_SLEEP 0x00000001L 18111da177e4SLinus Torvalds #define MDLL_CKO__MCKOA_RESET_MASK 0x00000002L 18121da177e4SLinus Torvalds #define MDLL_CKO__MCKOA_RESET 0x00000002L 18131da177e4SLinus Torvalds #define MDLL_CKO__MCKOA_RANGE_MASK 0x0000000cL 18141da177e4SLinus Torvalds #define MDLL_CKO__ERSTA_SOUTSEL_MASK 0x00000030L 18151da177e4SLinus Torvalds #define MDLL_CKO__MCKOA_FB_SEL_MASK 0x000000c0L 18161da177e4SLinus Torvalds #define MDLL_CKO__MCKOA_REF_SKEW_MASK 0x00000700L 18171da177e4SLinus Torvalds #define MDLL_CKO__MCKOA_FB_SKEW_MASK 0x00007000L 18181da177e4SLinus Torvalds #define MDLL_CKO__MCKOA_BP_SEL_MASK 0x00008000L 18191da177e4SLinus Torvalds #define MDLL_CKO__MCKOA_BP_SEL 0x00008000L 18201da177e4SLinus Torvalds #define MDLL_CKO__MCKOB_SLEEP_MASK 0x00010000L 18211da177e4SLinus Torvalds #define MDLL_CKO__MCKOB_SLEEP 0x00010000L 18221da177e4SLinus Torvalds #define MDLL_CKO__MCKOB_RESET_MASK 0x00020000L 18231da177e4SLinus Torvalds #define MDLL_CKO__MCKOB_RESET 0x00020000L 18241da177e4SLinus Torvalds #define MDLL_CKO__MCKOB_RANGE_MASK 0x000c0000L 18251da177e4SLinus Torvalds #define MDLL_CKO__ERSTB_SOUTSEL_MASK 0x00300000L 18261da177e4SLinus Torvalds #define MDLL_CKO__MCKOB_FB_SEL_MASK 0x00c00000L 18271da177e4SLinus Torvalds #define MDLL_CKO__MCKOB_REF_SKEW_MASK 0x07000000L 18281da177e4SLinus Torvalds #define MDLL_CKO__MCKOB_FB_SKEW_MASK 0x70000000L 18291da177e4SLinus Torvalds #define MDLL_CKO__MCKOB_BP_SEL_MASK 0x80000000L 18301da177e4SLinus Torvalds #define MDLL_CKO__MCKOB_BP_SEL 0x80000000L 18311da177e4SLinus Torvalds 18321da177e4SLinus Torvalds // MDLL_RDCKA 18331da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_SLEEP_MASK 0x00000001L 18341da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_SLEEP 0x00000001L 18351da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_RESET_MASK 0x00000002L 18361da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_RESET 0x00000002L 18371da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_RANGE_MASK 0x0000000cL 18381da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_REF_SEL_MASK 0x00000030L 18391da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_FB_SEL_MASK 0x000000c0L 18401da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_REF_SKEW_MASK 0x00000700L 18411da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_SINSEL_MASK 0x00000800L 18421da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_SINSEL 0x00000800L 18431da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_FB_SKEW_MASK 0x00007000L 18441da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_BP_SEL_MASK 0x00008000L 18451da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA0_BP_SEL 0x00008000L 18461da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_SLEEP_MASK 0x00010000L 18471da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_SLEEP 0x00010000L 18481da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_RESET_MASK 0x00020000L 18491da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_RESET 0x00020000L 18501da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_RANGE_MASK 0x000c0000L 18511da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_REF_SEL_MASK 0x00300000L 18521da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_FB_SEL_MASK 0x00c00000L 18531da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_REF_SKEW_MASK 0x07000000L 18541da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_SINSEL_MASK 0x08000000L 18551da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_SINSEL 0x08000000L 18561da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_FB_SKEW_MASK 0x70000000L 18571da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_BP_SEL_MASK 0x80000000L 18581da177e4SLinus Torvalds #define MDLL_RDCKA__MRDCKA1_BP_SEL 0x80000000L 18591da177e4SLinus Torvalds 18601da177e4SLinus Torvalds // MDLL_RDCKB 18611da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_SLEEP_MASK 0x00000001L 18621da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_SLEEP 0x00000001L 18631da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_RESET_MASK 0x00000002L 18641da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_RESET 0x00000002L 18651da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_RANGE_MASK 0x0000000cL 18661da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_REF_SEL_MASK 0x00000030L 18671da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_FB_SEL_MASK 0x000000c0L 18681da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_REF_SKEW_MASK 0x00000700L 18691da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_SINSEL_MASK 0x00000800L 18701da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_SINSEL 0x00000800L 18711da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_FB_SKEW_MASK 0x00007000L 18721da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_BP_SEL_MASK 0x00008000L 18731da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB0_BP_SEL 0x00008000L 18741da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_SLEEP_MASK 0x00010000L 18751da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_SLEEP 0x00010000L 18761da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_RESET_MASK 0x00020000L 18771da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_RESET 0x00020000L 18781da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_RANGE_MASK 0x000c0000L 18791da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_REF_SEL_MASK 0x00300000L 18801da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_FB_SEL_MASK 0x00c00000L 18811da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_REF_SKEW_MASK 0x07000000L 18821da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_SINSEL_MASK 0x08000000L 18831da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_SINSEL 0x08000000L 18841da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_FB_SKEW_MASK 0x70000000L 18851da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_BP_SEL_MASK 0x80000000L 18861da177e4SLinus Torvalds #define MDLL_RDCKB__MRDCKB1_BP_SEL 0x80000000L 18871da177e4SLinus Torvalds 18881da177e4SLinus Torvalds #define MDLL_R300_RDCK__MRDCKA_SLEEP 0x00000001L 18891da177e4SLinus Torvalds #define MDLL_R300_RDCK__MRDCKA_RESET 0x00000002L 18901da177e4SLinus Torvalds #define MDLL_R300_RDCK__MRDCKB_SLEEP 0x00000004L 18911da177e4SLinus Torvalds #define MDLL_R300_RDCK__MRDCKB_RESET 0x00000008L 18921da177e4SLinus Torvalds #define MDLL_R300_RDCK__MRDCKC_SLEEP 0x00000010L 18931da177e4SLinus Torvalds #define MDLL_R300_RDCK__MRDCKC_RESET 0x00000020L 18941da177e4SLinus Torvalds #define MDLL_R300_RDCK__MRDCKD_SLEEP 0x00000040L 18951da177e4SLinus Torvalds #define MDLL_R300_RDCK__MRDCKD_RESET 0x00000080L 18961da177e4SLinus Torvalds 18971da177e4SLinus Torvalds #define pllCLK_PIN_CNTL 0x0001 18981da177e4SLinus Torvalds #define pllPPLL_CNTL 0x0002 18991da177e4SLinus Torvalds #define pllPPLL_REF_DIV 0x0003 19001da177e4SLinus Torvalds #define pllPPLL_DIV_0 0x0004 19011da177e4SLinus Torvalds #define pllPPLL_DIV_1 0x0005 19021da177e4SLinus Torvalds #define pllPPLL_DIV_2 0x0006 19031da177e4SLinus Torvalds #define pllPPLL_DIV_3 0x0007 19041da177e4SLinus Torvalds #define pllVCLK_ECP_CNTL 0x0008 19051da177e4SLinus Torvalds #define pllHTOTAL_CNTL 0x0009 19061da177e4SLinus Torvalds #define pllM_SPLL_REF_FB_DIV 0x000A 19071da177e4SLinus Torvalds #define pllAGP_PLL_CNTL 0x000B 19081da177e4SLinus Torvalds #define pllSPLL_CNTL 0x000C 19091da177e4SLinus Torvalds #define pllSCLK_CNTL 0x000D 19101da177e4SLinus Torvalds #define pllMPLL_CNTL 0x000E 19111da177e4SLinus Torvalds #define pllMDLL_CKO 0x000F 19121da177e4SLinus Torvalds #define pllMDLL_RDCKA 0x0010 19131da177e4SLinus Torvalds #define pllMDLL_RDCKB 0x0011 19141da177e4SLinus Torvalds #define pllMCLK_CNTL 0x0012 19151da177e4SLinus Torvalds #define pllPLL_TEST_CNTL 0x0013 19161da177e4SLinus Torvalds #define pllCLK_PWRMGT_CNTL 0x0014 19171da177e4SLinus Torvalds #define pllPLL_PWRMGT_CNTL 0x0015 19181da177e4SLinus Torvalds #define pllCG_TEST_MACRO_RW_WRITE 0x0016 19191da177e4SLinus Torvalds #define pllCG_TEST_MACRO_RW_READ 0x0017 19201da177e4SLinus Torvalds #define pllCG_TEST_MACRO_RW_DATA 0x0018 19211da177e4SLinus Torvalds #define pllCG_TEST_MACRO_RW_CNTL 0x0019 19221da177e4SLinus Torvalds #define pllDISP_TEST_MACRO_RW_WRITE 0x001A 19231da177e4SLinus Torvalds #define pllDISP_TEST_MACRO_RW_READ 0x001B 19241da177e4SLinus Torvalds #define pllDISP_TEST_MACRO_RW_DATA 0x001C 19251da177e4SLinus Torvalds #define pllDISP_TEST_MACRO_RW_CNTL 0x001D 19261da177e4SLinus Torvalds #define pllSCLK_CNTL2 0x001E 19271da177e4SLinus Torvalds #define pllMCLK_MISC 0x001F 19281da177e4SLinus Torvalds #define pllTV_PLL_FINE_CNTL 0x0020 19291da177e4SLinus Torvalds #define pllTV_PLL_CNTL 0x0021 19301da177e4SLinus Torvalds #define pllTV_PLL_CNTL1 0x0022 19311da177e4SLinus Torvalds #define pllTV_DTO_INCREMENTS 0x0023 19321da177e4SLinus Torvalds #define pllSPLL_AUX_CNTL 0x0024 19331da177e4SLinus Torvalds #define pllMPLL_AUX_CNTL 0x0025 19341da177e4SLinus Torvalds #define pllP2PLL_CNTL 0x002A 19351da177e4SLinus Torvalds #define pllP2PLL_REF_DIV 0x002B 19361da177e4SLinus Torvalds #define pllP2PLL_DIV_0 0x002C 19371da177e4SLinus Torvalds #define pllPIXCLKS_CNTL 0x002D 19381da177e4SLinus Torvalds #define pllHTOTAL2_CNTL 0x002E 19391da177e4SLinus Torvalds #define pllSSPLL_CNTL 0x0030 19401da177e4SLinus Torvalds #define pllSSPLL_REF_DIV 0x0031 19411da177e4SLinus Torvalds #define pllSSPLL_DIV_0 0x0032 19421da177e4SLinus Torvalds #define pllSS_INT_CNTL 0x0033 19431da177e4SLinus Torvalds #define pllSS_TST_CNTL 0x0034 19441da177e4SLinus Torvalds #define pllSCLK_MORE_CNTL 0x0035 19451da177e4SLinus Torvalds 19461da177e4SLinus Torvalds #define ixMC_PERF_CNTL 0x0000 19471da177e4SLinus Torvalds #define ixMC_PERF_SEL 0x0001 19481da177e4SLinus Torvalds #define ixMC_PERF_REGION_0 0x0002 19491da177e4SLinus Torvalds #define ixMC_PERF_REGION_1 0x0003 19501da177e4SLinus Torvalds #define ixMC_PERF_COUNT_0 0x0004 19511da177e4SLinus Torvalds #define ixMC_PERF_COUNT_1 0x0005 19521da177e4SLinus Torvalds #define ixMC_PERF_COUNT_2 0x0006 19531da177e4SLinus Torvalds #define ixMC_PERF_COUNT_3 0x0007 19541da177e4SLinus Torvalds #define ixMC_PERF_COUNT_MEMCH_A 0x0008 19551da177e4SLinus Torvalds #define ixMC_PERF_COUNT_MEMCH_B 0x0009 19561da177e4SLinus Torvalds #define ixMC_IMP_CNTL 0x000A 19571da177e4SLinus Torvalds #define ixMC_CHP_IO_CNTL_A0 0x000B 19581da177e4SLinus Torvalds #define ixMC_CHP_IO_CNTL_A1 0x000C 19591da177e4SLinus Torvalds #define ixMC_CHP_IO_CNTL_B0 0x000D 19601da177e4SLinus Torvalds #define ixMC_CHP_IO_CNTL_B1 0x000E 19611da177e4SLinus Torvalds #define ixMC_IMP_CNTL_0 0x000F 19621da177e4SLinus Torvalds #define ixTC_MISMATCH_1 0x0010 19631da177e4SLinus Torvalds #define ixTC_MISMATCH_2 0x0011 19641da177e4SLinus Torvalds #define ixMC_BIST_CTRL 0x0012 19651da177e4SLinus Torvalds #define ixREG_COLLAR_WRITE 0x0013 19661da177e4SLinus Torvalds #define ixREG_COLLAR_READ 0x0014 19671da177e4SLinus Torvalds #define ixR300_MC_IMP_CNTL 0x0018 19681da177e4SLinus Torvalds #define ixR300_MC_CHP_IO_CNTL_A0 0x0019 19691da177e4SLinus Torvalds #define ixR300_MC_CHP_IO_CNTL_A1 0x001a 19701da177e4SLinus Torvalds #define ixR300_MC_CHP_IO_CNTL_B0 0x001b 19711da177e4SLinus Torvalds #define ixR300_MC_CHP_IO_CNTL_B1 0x001c 19721da177e4SLinus Torvalds #define ixR300_MC_CHP_IO_CNTL_C0 0x001d 19731da177e4SLinus Torvalds #define ixR300_MC_CHP_IO_CNTL_C1 0x001e 19741da177e4SLinus Torvalds #define ixR300_MC_CHP_IO_CNTL_D0 0x001f 19751da177e4SLinus Torvalds #define ixR300_MC_CHP_IO_CNTL_D1 0x0020 19761da177e4SLinus Torvalds #define ixR300_MC_IMP_CNTL_0 0x0021 19771da177e4SLinus Torvalds #define ixR300_MC_ELPIDA_CNTL 0x0022 19781da177e4SLinus Torvalds #define ixR300_MC_CHP_IO_OE_CNTL_CD 0x0023 19791da177e4SLinus Torvalds #define ixR300_MC_READ_CNTL_CD 0x0024 19801da177e4SLinus Torvalds #define ixR300_MC_MC_INIT_WR_LAT_TIMER 0x0025 19811da177e4SLinus Torvalds #define ixR300_MC_DEBUG_CNTL 0x0026 19821da177e4SLinus Torvalds #define ixR300_MC_BIST_CNTL_0 0x0028 19831da177e4SLinus Torvalds #define ixR300_MC_BIST_CNTL_1 0x0029 19841da177e4SLinus Torvalds #define ixR300_MC_BIST_CNTL_2 0x002a 19851da177e4SLinus Torvalds #define ixR300_MC_BIST_CNTL_3 0x002b 19861da177e4SLinus Torvalds #define ixR300_MC_BIST_CNTL_4 0x002c 19871da177e4SLinus Torvalds #define ixR300_MC_BIST_CNTL_5 0x002d 19881da177e4SLinus Torvalds #define ixR300_MC_IMP_STATUS 0x002e 19891da177e4SLinus Torvalds #define ixR300_MC_DLL_CNTL 0x002f 19901da177e4SLinus Torvalds #define NB_TOM 0x15C 19911da177e4SLinus Torvalds 19921da177e4SLinus Torvalds 19931da177e4SLinus Torvalds #endif /* _RADEON_H */ 19941da177e4SLinus Torvalds 1995