193aac98dSAlexander von Gluck IV /* 293aac98dSAlexander von Gluck IV * Copyright 2009 Advanced Micro Devices, Inc. 393aac98dSAlexander von Gluck IV * Copyright 2009 Red Hat Inc. 493aac98dSAlexander von Gluck IV * 593aac98dSAlexander von Gluck IV * Permission is hereby granted, free of charge, to any person obtaining a 693aac98dSAlexander von Gluck IV * copy of this software and associated documentation files (the "Software"), 793aac98dSAlexander von Gluck IV * to deal in the Software without restriction, including without limitation 893aac98dSAlexander von Gluck IV * the rights to use, copy, modify, merge, publish, distribute, sublicense, 993aac98dSAlexander von Gluck IV * and/or sell copies of the Software, and to permit persons to whom the 1093aac98dSAlexander von Gluck IV * Software is furnished to do so, subject to the following conditions: 1193aac98dSAlexander von Gluck IV * 1293aac98dSAlexander von Gluck IV * The above copyright notice and this permission notice shall be included in 1393aac98dSAlexander von Gluck IV * all copies or substantial portions of the Software. 1493aac98dSAlexander von Gluck IV * 1593aac98dSAlexander von Gluck IV * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1693aac98dSAlexander von Gluck IV * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1793aac98dSAlexander von Gluck IV * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1893aac98dSAlexander von Gluck IV * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 1993aac98dSAlexander von Gluck IV * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 2093aac98dSAlexander von Gluck IV * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2193aac98dSAlexander von Gluck IV * OTHER DEALINGS IN THE SOFTWARE. 2293aac98dSAlexander von Gluck IV * 2393aac98dSAlexander von Gluck IV * Authors: Dave Airlie 2493aac98dSAlexander von Gluck IV * Alex Deucher 2593aac98dSAlexander von Gluck IV * Jerome Glisse 26f8af3174SAlexander von Gluck IV * Alexander von Gluck <kallisti5@unixzen.com> 2793aac98dSAlexander von Gluck IV */ 28f8af3174SAlexander von Gluck IV #ifndef __AVIVO_REG_H__ 29f8af3174SAlexander von Gluck IV #define __AVIVO_REG_H__ 3093aac98dSAlexander von Gluck IV 3193aac98dSAlexander von Gluck IV 3293aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_UPDATE_LOCK 0x60E8 3393aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_SWAP_CNTL 0x610C 3493aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_PRIMARY_SURFACE_ADDRESS 0x6110 3593aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_SECONDARY_SURFACE_ADDRESS 0x6118 3693aac98dSAlexander von Gluck IV 3793aac98dSAlexander von Gluck IV #define AVIVO_D1VGA_CONTROL 0x0330 3893aac98dSAlexander von Gluck IV #define AVIVO_DVGA_CONTROL_MODE_ENABLE (1 << 0) 3993aac98dSAlexander von Gluck IV #define AVIVO_DVGA_CONTROL_TIMING_SELECT (1 << 8) 4093aac98dSAlexander von Gluck IV #define AVIVO_DVGA_CONTROL_SYNC_POLARITY_SELECT (1 << 9) 4193aac98dSAlexander von Gluck IV #define AVIVO_DVGA_CONTROL_OVERSCAN_TIMING_SELECT (1 << 10) 4293aac98dSAlexander von Gluck IV #define AVIVO_DVGA_CONTROL_OVERSCAN_COLOR_EN (1 << 16) 4393aac98dSAlexander von Gluck IV #define AVIVO_DVGA_CONTROL_ROTATE (1 << 24) 4493aac98dSAlexander von Gluck IV #define AVIVO_D2VGA_CONTROL 0x0338 4593aac98dSAlexander von Gluck IV 4693aac98dSAlexander von Gluck IV #define AVIVO_VGA_HDP_CONTROL 0x328 4793aac98dSAlexander von Gluck IV #define AVIVO_VGA_MEM_PAGE_SELECT_EN (1 << 0) 4893aac98dSAlexander von Gluck IV #define AVIVO_VGA_MEMORY_DISABLE (1 << 4) 4993aac98dSAlexander von Gluck IV #define AVIVO_VGA_RBBM_LOCK_DISABLE (1 << 8) 5093aac98dSAlexander von Gluck IV #define AVIVO_VGA_SOFT_RESET (1 << 16) 5193aac98dSAlexander von Gluck IV #define AVIVO_VGA_MEMORY_BASE_ADDRESS 0x0310 5293aac98dSAlexander von Gluck IV #define AVIVO_VGA_RENDER_CONTROL 0x0300 5393aac98dSAlexander von Gluck IV #define AVIVO_VGA_VSTATUS_CNTL_MASK (3 << 16) 5493aac98dSAlexander von Gluck IV 5593aac98dSAlexander von Gluck IV 5693aac98dSAlexander von Gluck IV #define AVIVO_MC_INDEX 0x0070 5793aac98dSAlexander von Gluck IV #define AVIVO_MC_DATA 0x0074 5893aac98dSAlexander von Gluck IV 5993aac98dSAlexander von Gluck IV #define AVIVO_CP_DYN_CNTL 0x000f /* PLL */ 6093aac98dSAlexander von Gluck IV #define AVIVO_CP_FORCEON (1 << 0) 6193aac98dSAlexander von Gluck IV #define AVIVO_E2_DYN_CNTL 0x0011 /* PLL */ 6293aac98dSAlexander von Gluck IV #define AVIVO_E2_FORCEON (1 << 0) 6393aac98dSAlexander von Gluck IV #define AVIVO_IDCT_DYN_CNTL 0x0013 /* PLL */ 6493aac98dSAlexander von Gluck IV #define AVIVO_IDCT_FORCEON (1 << 0) 6593aac98dSAlexander von Gluck IV 6693aac98dSAlexander von Gluck IV #define AVIVO_HDP_FB_LOCATION 0x134 6793aac98dSAlexander von Gluck IV 6893aac98dSAlexander von Gluck IV #define AVIVO_EXT1_PPLL_REF_DIV_SRC 0x400 6993aac98dSAlexander von Gluck IV #define AVIVO_EXT1_PPLL_REF_DIV 0x404 7093aac98dSAlexander von Gluck IV #define AVIVO_EXT1_PPLL_UPDATE_LOCK 0x408 7193aac98dSAlexander von Gluck IV #define AVIVO_EXT1_PPLL_UPDATE_CNTL 0x40c 7293aac98dSAlexander von Gluck IV 7393aac98dSAlexander von Gluck IV #define AVIVO_EXT2_PPLL_REF_DIV_SRC 0x410 7493aac98dSAlexander von Gluck IV #define AVIVO_EXT2_PPLL_REF_DIV 0x414 7593aac98dSAlexander von Gluck IV #define AVIVO_EXT2_PPLL_UPDATE_LOCK 0x418 7693aac98dSAlexander von Gluck IV #define AVIVO_EXT2_PPLL_UPDATE_CNTL 0x41c 7793aac98dSAlexander von Gluck IV 7893aac98dSAlexander von Gluck IV #define AVIVO_EXT1_PPLL_FB_DIV 0x430 7993aac98dSAlexander von Gluck IV #define AVIVO_EXT2_PPLL_FB_DIV 0x434 8093aac98dSAlexander von Gluck IV 8193aac98dSAlexander von Gluck IV #define AVIVO_EXT1_PPLL_POST_DIV_SRC 0x438 8293aac98dSAlexander von Gluck IV #define AVIVO_EXT1_PPLL_POST_DIV 0x43c 8393aac98dSAlexander von Gluck IV 8493aac98dSAlexander von Gluck IV #define AVIVO_EXT2_PPLL_POST_DIV_SRC 0x440 8593aac98dSAlexander von Gluck IV #define AVIVO_EXT2_PPLL_POST_DIV 0x444 8693aac98dSAlexander von Gluck IV 8793aac98dSAlexander von Gluck IV #define AVIVO_EXT1_PPLL_CNTL 0x448 8893aac98dSAlexander von Gluck IV #define AVIVO_EXT2_PPLL_CNTL 0x44c 8993aac98dSAlexander von Gluck IV 9093aac98dSAlexander von Gluck IV #define AVIVO_P1PLL_CNTL 0x450 9193aac98dSAlexander von Gluck IV #define AVIVO_P2PLL_CNTL 0x454 9293aac98dSAlexander von Gluck IV #define AVIVO_P1PLL_INT_SS_CNTL 0x458 9393aac98dSAlexander von Gluck IV #define AVIVO_P2PLL_INT_SS_CNTL 0x45c 9493aac98dSAlexander von Gluck IV #define AVIVO_P1PLL_TMDSA_CNTL 0x460 9593aac98dSAlexander von Gluck IV #define AVIVO_P2PLL_LVTMA_CNTL 0x464 9693aac98dSAlexander von Gluck IV 9793aac98dSAlexander von Gluck IV #define AVIVO_PCLK_CRTC1_CNTL 0x480 9893aac98dSAlexander von Gluck IV #define AVIVO_PCLK_CRTC2_CNTL 0x484 9993aac98dSAlexander von Gluck IV 10093aac98dSAlexander von Gluck IV /* first crtc */ 10193aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_H_TOTAL 0x6000 10293aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_H_BLANK_START_END 0x6004 10393aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_H_SYNC_A 0x6008 10493aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_H_SYNC_A_CNTL 0x600C 10593aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_H_SYNC_B 0x6010 10693aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_H_SYNC_B_CNTL 0x6014 10793aac98dSAlexander von Gluck IV 10893aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_V_TOTAL 0x6020 10993aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_V_BLANK_START_END 0x6024 11093aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_V_SYNC_A 0x6028 11193aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_V_SYNC_A_CNTL 0x602C 11293aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_V_SYNC_B 0x6030 11393aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_V_SYNC_B_CNTL 0x6034 11493aac98dSAlexander von Gluck IV 11593aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_CONTROL 0x6080 11693aac98dSAlexander von Gluck IV #define AVIVO_CRTC_EN (1 << 0) 11793aac98dSAlexander von Gluck IV #define AVIVO_CRTC_DISP_READ_REQUEST_DISABLE (1 << 24) 11893aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_BLANK_CONTROL 0x6084 11993aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_INTERLACE_CONTROL 0x6088 12093aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_INTERLACE_STATUS 0x608C 12193aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_STATUS 0x609C 12293aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_STATUS_POSITION 0x60A0 12393aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_FRAME_COUNT 0x60A4 12493aac98dSAlexander von Gluck IV #define AVIVO_D1CRTC_STEREO_CONTROL 0x60C4 12593aac98dSAlexander von Gluck IV 12693aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_MASTER_UPDATE_MODE 0x60e4 12793aac98dSAlexander von Gluck IV 12893aac98dSAlexander von Gluck IV /* master controls */ 12993aac98dSAlexander von Gluck IV #define AVIVO_DC_CRTC_MASTER_EN 0x60f8 13093aac98dSAlexander von Gluck IV #define AVIVO_DC_CRTC_TV_CONTROL 0x60fc 13193aac98dSAlexander von Gluck IV 13293aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_ENABLE 0x6100 13393aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL 0x6104 13493aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_DEPTH_8BPP (0 << 0) 13593aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_DEPTH_16BPP (1 << 0) 13693aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_DEPTH_32BPP (2 << 0) 13793aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_DEPTH_64BPP (3 << 0) 13893aac98dSAlexander von Gluck IV 13993aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_8BPP_INDEXED (0 << 8) 14093aac98dSAlexander von Gluck IV 14193aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_16BPP_ARGB1555 (0 << 8) 14293aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_16BPP_RGB565 (1 << 8) 14393aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_16BPP_ARGB4444 (2 << 8) 14493aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_16BPP_AI88 (3 << 8) 14593aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_16BPP_MONO16 (4 << 8) 14693aac98dSAlexander von Gluck IV 14793aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_32BPP_ARGB8888 (0 << 8) 14893aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_32BPP_ARGB2101010 (1 << 8) 14993aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_32BPP_DIGITAL (2 << 8) 15093aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_32BPP_8B_ARGB2101010 (3 << 8) 15193aac98dSAlexander von Gluck IV 15293aac98dSAlexander von Gluck IV 15393aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_CONTROL_64BPP_ARGB16161616 (0 << 8) 15493aac98dSAlexander von Gluck IV 15593aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_SWAP_RB (1 << 16) 15693aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_TILED (1 << 20) 15793aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_MACRO_ADDRESS_MODE (1 << 21) 15893aac98dSAlexander von Gluck IV 15993aac98dSAlexander von Gluck IV #define R600_D1GRPH_ARRAY_MODE_LINEAR_GENERAL (0 << 20) 16093aac98dSAlexander von Gluck IV #define R600_D1GRPH_ARRAY_MODE_LINEAR_ALIGNED (1 << 20) 16193aac98dSAlexander von Gluck IV #define R600_D1GRPH_ARRAY_MODE_1D_TILED_THIN1 (2 << 20) 16293aac98dSAlexander von Gluck IV #define R600_D1GRPH_ARRAY_MODE_2D_TILED_THIN1 (4 << 20) 16393aac98dSAlexander von Gluck IV 16493aac98dSAlexander von Gluck IV /* The R7xx *_HIGH surface regs are backwards; the D1 regs are in the D2 16593aac98dSAlexander von Gluck IV * block and vice versa. This applies to GRPH, CUR, etc. 16693aac98dSAlexander von Gluck IV */ 16793aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_LUT_SEL 0x6108 16893aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_PRIMARY_SURFACE_ADDRESS 0x6110 16993aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_SECONDARY_SURFACE_ADDRESS 0x6118 17093aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_PITCH 0x6120 17193aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_SURFACE_OFFSET_X 0x6124 17293aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_SURFACE_OFFSET_Y 0x6128 17393aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_X_START 0x612c 17493aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_Y_START 0x6130 17593aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_X_END 0x6134 17693aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_Y_END 0x6138 17793aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_UPDATE 0x6144 17893aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_SURFACE_UPDATE_PENDING (1 << 2) 17993aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_UPDATE_LOCK (1 << 16) 18093aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_FLIP_CONTROL 0x6148 18193aac98dSAlexander von Gluck IV #define AVIVO_D1GRPH_SURFACE_UPDATE_H_RETRACE_EN (1 << 0) 18293aac98dSAlexander von Gluck IV 18393aac98dSAlexander von Gluck IV #define AVIVO_D1CUR_CONTROL 0x6400 18493aac98dSAlexander von Gluck IV #define AVIVO_D1CURSOR_EN (1 << 0) 18593aac98dSAlexander von Gluck IV #define AVIVO_D1CURSOR_MODE_SHIFT 8 18693aac98dSAlexander von Gluck IV #define AVIVO_D1CURSOR_MODE_MASK (3 << 8) 18793aac98dSAlexander von Gluck IV #define AVIVO_D1CURSOR_MODE_24BPP 2 18893aac98dSAlexander von Gluck IV #define AVIVO_D1CUR_SURFACE_ADDRESS 0x6408 18993aac98dSAlexander von Gluck IV #define R700_D1CUR_SURFACE_ADDRESS_HIGH 0x6c0c 19093aac98dSAlexander von Gluck IV #define R700_D2CUR_SURFACE_ADDRESS_HIGH 0x640c 19193aac98dSAlexander von Gluck IV #define AVIVO_D1CUR_SIZE 0x6410 19293aac98dSAlexander von Gluck IV #define AVIVO_D1CUR_POSITION 0x6414 19393aac98dSAlexander von Gluck IV #define AVIVO_D1CUR_HOT_SPOT 0x6418 19493aac98dSAlexander von Gluck IV #define AVIVO_D1CUR_UPDATE 0x6424 19593aac98dSAlexander von Gluck IV #define AVIVO_D1CURSOR_UPDATE_LOCK (1 << 16) 19693aac98dSAlexander von Gluck IV 19793aac98dSAlexander von Gluck IV #define AVIVO_DC_LUT_RW_SELECT 0x6480 19893aac98dSAlexander von Gluck IV #define AVIVO_DC_LUT_RW_MODE 0x6484 19993aac98dSAlexander von Gluck IV #define AVIVO_DC_LUT_RW_INDEX 0x6488 20093aac98dSAlexander von Gluck IV #define AVIVO_DC_LUT_SEQ_COLOR 0x648c 20193aac98dSAlexander von Gluck IV #define AVIVO_DC_LUT_PWL_DATA 0x6490 20293aac98dSAlexander von Gluck IV #define AVIVO_DC_LUT_30_COLOR 0x6494 20393aac98dSAlexander von Gluck IV #define AVIVO_DC_LUT_READ_PIPE_SELECT 0x6498 20493aac98dSAlexander von Gluck IV #define AVIVO_DC_LUT_WRITE_EN_MASK 0x649c 20593aac98dSAlexander von Gluck IV #define AVIVO_DC_LUT_AUTOFILL 0x64a0 20693aac98dSAlexander von Gluck IV 20793aac98dSAlexander von Gluck IV #define AVIVO_DC_LUTA_CONTROL 0x64c0 20893aac98dSAlexander von Gluck IV #define AVIVO_DC_LUTA_BLACK_OFFSET_BLUE 0x64c4 20993aac98dSAlexander von Gluck IV #define AVIVO_DC_LUTA_BLACK_OFFSET_GREEN 0x64c8 21093aac98dSAlexander von Gluck IV #define AVIVO_DC_LUTA_BLACK_OFFSET_RED 0x64cc 21193aac98dSAlexander von Gluck IV #define AVIVO_DC_LUTA_WHITE_OFFSET_BLUE 0x64d0 21293aac98dSAlexander von Gluck IV #define AVIVO_DC_LUTA_WHITE_OFFSET_GREEN 0x64d4 21393aac98dSAlexander von Gluck IV #define AVIVO_DC_LUTA_WHITE_OFFSET_RED 0x64d8 21493aac98dSAlexander von Gluck IV 21593aac98dSAlexander von Gluck IV #define AVIVO_DC_LB_MEMORY_SPLIT 0x6520 21693aac98dSAlexander von Gluck IV #define AVIVO_DC_LB_MEMORY_SPLIT_MASK 0x3 21793aac98dSAlexander von Gluck IV #define AVIVO_DC_LB_MEMORY_SPLIT_SHIFT 0 21893aac98dSAlexander von Gluck IV #define AVIVO_DC_LB_MEMORY_SPLIT_D1HALF_D2HALF 0 21993aac98dSAlexander von Gluck IV #define AVIVO_DC_LB_MEMORY_SPLIT_D1_3Q_D2_1Q 1 22093aac98dSAlexander von Gluck IV #define AVIVO_DC_LB_MEMORY_SPLIT_D1_ONLY 2 22193aac98dSAlexander von Gluck IV #define AVIVO_DC_LB_MEMORY_SPLIT_D1_1Q_D2_3Q 3 22293aac98dSAlexander von Gluck IV #define AVIVO_DC_LB_MEMORY_SPLIT_SHIFT_MODE (1 << 2) 22393aac98dSAlexander von Gluck IV #define AVIVO_DC_LB_DISP1_END_ADR_SHIFT 4 22493aac98dSAlexander von Gluck IV #define AVIVO_DC_LB_DISP1_END_ADR_MASK 0x7ff 22593aac98dSAlexander von Gluck IV 22693aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_DATA_FORMAT 0x6528 22793aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_INTERLEAVE_EN (1 << 0) 22893aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_DESKTOP_HEIGHT 0x652C 22993aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_VBLANK_STATUS 0x6534 23093aac98dSAlexander von Gluck IV #define AVIVO_VBLANK_ACK (1 << 4) 23193aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_VLINE_START_END 0x6538 23293aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_VLINE_STATUS 0x653c 23393aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_VLINE_STAT (1 << 12) 23493aac98dSAlexander von Gluck IV #define AVIVO_DxMODE_INT_MASK 0x6540 23593aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_INT_MASK (1 << 0) 23693aac98dSAlexander von Gluck IV #define AVIVO_D2MODE_INT_MASK (1 << 8) 23793aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_VIEWPORT_START 0x6580 23893aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_VIEWPORT_SIZE 0x6584 23993aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_EXT_OVERSCAN_LEFT_RIGHT 0x6588 24093aac98dSAlexander von Gluck IV #define AVIVO_D1MODE_EXT_OVERSCAN_TOP_BOTTOM 0x658c 24193aac98dSAlexander von Gluck IV 24293aac98dSAlexander von Gluck IV #define AVIVO_D1SCL_SCALER_ENABLE 0x6590 24393aac98dSAlexander von Gluck IV #define AVIVO_D1SCL_SCALER_TAP_CONTROL 0x6594 24493aac98dSAlexander von Gluck IV #define AVIVO_D1SCL_UPDATE 0x65cc 24593aac98dSAlexander von Gluck IV #define AVIVO_D1SCL_UPDATE_LOCK (1 << 16) 24693aac98dSAlexander von Gluck IV 24793aac98dSAlexander von Gluck IV /* second crtc */ 24893aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_H_TOTAL 0x6800 24993aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_H_BLANK_START_END 0x6804 25093aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_H_SYNC_A 0x6808 25193aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_H_SYNC_A_CNTL 0x680c 25293aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_H_SYNC_B 0x6810 25393aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_H_SYNC_B_CNTL 0x6814 25493aac98dSAlexander von Gluck IV 25593aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_V_TOTAL 0x6820 25693aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_V_BLANK_START_END 0x6824 25793aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_V_SYNC_A 0x6828 25893aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_V_SYNC_A_CNTL 0x682c 25993aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_V_SYNC_B 0x6830 26093aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_V_SYNC_B_CNTL 0x6834 26193aac98dSAlexander von Gluck IV 26293aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_CONTROL 0x6880 26393aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_BLANK_CONTROL 0x6884 26493aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_INTERLACE_CONTROL 0x6888 26593aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_INTERLACE_STATUS 0x688C 26693aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_STATUS 0x689C 26793aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_STATUS_POSITION 0x68A0 26893aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_FRAME_COUNT 0x68A4 26993aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_STEREO_CONTROL 0x68C4 27093aac98dSAlexander von Gluck IV #define AVIVO_D2CRTC_UPDATE_LOCK 0x68E8 27193aac98dSAlexander von Gluck IV 27293aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_ENABLE 0x6900 27393aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_CONTROL 0x6904 27493aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_LUT_SEL 0x6908 27593aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_SWAP_CNTL 0x690C 27693aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_PRIMARY_SURFACE_ADDRESS 0x6910 27793aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_SECONDARY_SURFACE_ADDRESS 0x6918 27893aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_PITCH 0x6920 27993aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_SURFACE_OFFSET_X 0x6924 28093aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_SURFACE_OFFSET_Y 0x6928 28193aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_X_START 0x692c 28293aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_Y_START 0x6930 28393aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_X_END 0x6934 28493aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_Y_END 0x6938 28593aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_UPDATE 0x6944 28693aac98dSAlexander von Gluck IV #define AVIVO_D2GRPH_FLIP_CONTROL 0x6948 28793aac98dSAlexander von Gluck IV 28893aac98dSAlexander von Gluck IV #define AVIVO_D2CUR_CONTROL 0x6c00 28993aac98dSAlexander von Gluck IV #define AVIVO_D2CUR_SURFACE_ADDRESS 0x6c08 29093aac98dSAlexander von Gluck IV #define AVIVO_D2CUR_SIZE 0x6c10 29193aac98dSAlexander von Gluck IV #define AVIVO_D2CUR_POSITION 0x6c14 29293aac98dSAlexander von Gluck IV 29393aac98dSAlexander von Gluck IV #define AVIVO_D2MODE_VBLANK_STATUS 0x6d34 29493aac98dSAlexander von Gluck IV #define AVIVO_D2MODE_VLINE_START_END 0x6d38 29593aac98dSAlexander von Gluck IV #define AVIVO_D2MODE_VLINE_STATUS 0x6d3c 29693aac98dSAlexander von Gluck IV #define AVIVO_D2MODE_VIEWPORT_START 0x6d80 29793aac98dSAlexander von Gluck IV #define AVIVO_D2MODE_VIEWPORT_SIZE 0x6d84 29893aac98dSAlexander von Gluck IV #define AVIVO_D2MODE_EXT_OVERSCAN_LEFT_RIGHT 0x6d88 29993aac98dSAlexander von Gluck IV #define AVIVO_D2MODE_EXT_OVERSCAN_TOP_BOTTOM 0x6d8c 30093aac98dSAlexander von Gluck IV 30193aac98dSAlexander von Gluck IV #define AVIVO_D2SCL_SCALER_ENABLE 0x6d90 30293aac98dSAlexander von Gluck IV #define AVIVO_D2SCL_SCALER_TAP_CONTROL 0x6d94 30393aac98dSAlexander von Gluck IV 30493aac98dSAlexander von Gluck IV #define AVIVO_DDIA_BIT_DEPTH_CONTROL 0x7214 30593aac98dSAlexander von Gluck IV 306*7d9c1f30SBill Randle #define AVIVO_DP_VID_STREAM_CNTL 0x770C 307*7d9c1f30SBill Randle 30893aac98dSAlexander von Gluck IV #define AVIVO_DACA_ENABLE 0x7800 30993aac98dSAlexander von Gluck IV #define AVIVO_DAC_ENABLE (1 << 0) 31093aac98dSAlexander von Gluck IV #define AVIVO_DACA_SOURCE_SELECT 0x7804 31193aac98dSAlexander von Gluck IV #define AVIVO_DAC_SOURCE_CRTC1 (0 << 0) 31293aac98dSAlexander von Gluck IV #define AVIVO_DAC_SOURCE_CRTC2 (1 << 0) 31393aac98dSAlexander von Gluck IV #define AVIVO_DAC_SOURCE_TV (2 << 0) 31493aac98dSAlexander von Gluck IV 31593aac98dSAlexander von Gluck IV #define AVIVO_DACA_FORCE_OUTPUT_CNTL 0x783c 31693aac98dSAlexander von Gluck IV #define AVIVO_DACA_FORCE_OUTPUT_CNTL_FORCE_DATA_EN (1 << 0) 31793aac98dSAlexander von Gluck IV #define AVIVO_DACA_FORCE_OUTPUT_CNTL_DATA_SEL_SHIFT (8) 31893aac98dSAlexander von Gluck IV #define AVIVO_DACA_FORCE_OUTPUT_CNTL_DATA_SEL_BLUE (1 << 0) 31993aac98dSAlexander von Gluck IV #define AVIVO_DACA_FORCE_OUTPUT_CNTL_DATA_SEL_GREEN (1 << 1) 32093aac98dSAlexander von Gluck IV #define AVIVO_DACA_FORCE_OUTPUT_CNTL_DATA_SEL_RED (1 << 2) 32193aac98dSAlexander von Gluck IV #define AVIVO_DACA_FORCE_OUTPUT_CNTL_DATA_ON_BLANKB_ONLY (1 << 24) 32293aac98dSAlexander von Gluck IV #define AVIVO_DACA_POWERDOWN 0x7850 32393aac98dSAlexander von Gluck IV #define AVIVO_DACA_POWERDOWN_POWERDOWN (1 << 0) 32493aac98dSAlexander von Gluck IV #define AVIVO_DACA_POWERDOWN_BLUE (1 << 8) 32593aac98dSAlexander von Gluck IV #define AVIVO_DACA_POWERDOWN_GREEN (1 << 16) 32693aac98dSAlexander von Gluck IV #define AVIVO_DACA_POWERDOWN_RED (1 << 24) 32793aac98dSAlexander von Gluck IV 32893aac98dSAlexander von Gluck IV #define AVIVO_DACB_ENABLE 0x7a00 32993aac98dSAlexander von Gluck IV #define AVIVO_DACB_SOURCE_SELECT 0x7a04 33093aac98dSAlexander von Gluck IV #define AVIVO_DACB_FORCE_OUTPUT_CNTL 0x7a3c 33193aac98dSAlexander von Gluck IV #define AVIVO_DACB_FORCE_OUTPUT_CNTL_FORCE_DATA_EN (1 << 0) 33293aac98dSAlexander von Gluck IV #define AVIVO_DACB_FORCE_OUTPUT_CNTL_DATA_SEL_SHIFT (8) 33393aac98dSAlexander von Gluck IV #define AVIVO_DACB_FORCE_OUTPUT_CNTL_DATA_SEL_BLUE (1 << 0) 33493aac98dSAlexander von Gluck IV #define AVIVO_DACB_FORCE_OUTPUT_CNTL_DATA_SEL_GREEN (1 << 1) 33593aac98dSAlexander von Gluck IV #define AVIVO_DACB_FORCE_OUTPUT_CNTL_DATA_SEL_RED (1 << 2) 33693aac98dSAlexander von Gluck IV #define AVIVO_DACB_FORCE_OUTPUT_CNTL_DATA_ON_BLANKB_ONLY (1 << 24) 33793aac98dSAlexander von Gluck IV #define AVIVO_DACB_POWERDOWN 0x7a50 33893aac98dSAlexander von Gluck IV #define AVIVO_DACB_POWERDOWN_POWERDOWN (1 << 0) 33993aac98dSAlexander von Gluck IV #define AVIVO_DACB_POWERDOWN_BLUE (1 << 8) 34093aac98dSAlexander von Gluck IV #define AVIVO_DACB_POWERDOWN_GREEN (1 << 16) 34193aac98dSAlexander von Gluck IV #define AVIVO_DACB_POWERDOWN_RED (1 << 24) 34293aac98dSAlexander von Gluck IV 34393aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_CNTL 0x7880 34493aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_CNTL_ENABLE (1 << 0) 34593aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_CNTL_HPD_MASK (1 << 4) 34693aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_CNTL_HPD_SELECT (1 << 8) 34793aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_CNTL_SYNC_PHASE (1 << 12) 34893aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_CNTL_PIXEL_ENCODING (1 << 16) 34993aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_CNTL_DUAL_LINK_ENABLE (1 << 24) 35093aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_CNTL_SWAP (1 << 28) 35193aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_SOURCE_SELECT 0x7884 35293aac98dSAlexander von Gluck IV /* 78a8 appears to be some kind of (reasonably tolerant) clock? 35393aac98dSAlexander von Gluck IV * 78d0 definitely hits the transmitter, definitely clock. */ 35493aac98dSAlexander von Gluck IV /* MYSTERY1 This appears to control dithering? */ 35593aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_BIT_DEPTH_CONTROL 0x7894 35693aac98dSAlexander von Gluck IV #define AVIVO_TMDS_BIT_DEPTH_CONTROL_TRUNCATE_EN (1 << 0) 35793aac98dSAlexander von Gluck IV #define AVIVO_TMDS_BIT_DEPTH_CONTROL_TRUNCATE_DEPTH (1 << 4) 35893aac98dSAlexander von Gluck IV #define AVIVO_TMDS_BIT_DEPTH_CONTROL_SPATIAL_DITHER_EN (1 << 8) 35993aac98dSAlexander von Gluck IV #define AVIVO_TMDS_BIT_DEPTH_CONTROL_SPATIAL_DITHER_DEPTH (1 << 12) 36093aac98dSAlexander von Gluck IV #define AVIVO_TMDS_BIT_DEPTH_CONTROL_TEMPORAL_DITHER_EN (1 << 16) 36193aac98dSAlexander von Gluck IV #define AVIVO_TMDS_BIT_DEPTH_CONTROL_TEMPORAL_DITHER_DEPTH (1 << 20) 36293aac98dSAlexander von Gluck IV #define AVIVO_TMDS_BIT_DEPTH_CONTROL_TEMPORAL_LEVEL (1 << 24) 36393aac98dSAlexander von Gluck IV #define AVIVO_TMDS_BIT_DEPTH_CONTROL_TEMPORAL_DITHER_RESET (1 << 26) 36493aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_DCBALANCER_CONTROL 0x78d0 36593aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_DCBALANCER_CONTROL_EN (1 << 0) 36693aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_DCBALANCER_CONTROL_TEST_EN (1 << 8) 36793aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_DCBALANCER_CONTROL_TEST_IN_SHIFT (16) 36893aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_DCBALANCER_CONTROL_FORCE (1 << 24) 36993aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_DATA_SYNCHRONIZATION 0x78d8 37093aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_DATA_SYNCHRONIZATION_DSYNSEL (1 << 0) 37193aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_DATA_SYNCHRONIZATION_PFREQCHG (1 << 8) 37293aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_CLOCK_ENABLE 0x7900 37393aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE 0x7904 37493aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_TX0_ENABLE (1 << 0) 37593aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_LNKC0EN (1 << 1) 37693aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_LNKD00EN (1 << 2) 37793aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_LNKD01EN (1 << 3) 37893aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_LNKD02EN (1 << 4) 37993aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_TX1_ENABLE (1 << 8) 38093aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_LNKD10EN (1 << 10) 38193aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_LNKD11EN (1 << 11) 38293aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_LNKD12EN (1 << 12) 38393aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_TX_ENABLE_HPD_MASK (1 << 16) 38493aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_LNKCEN_HPD_MASK (1 << 17) 38593aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_ENABLE_LNKDEN_HPD_MASK (1 << 18) 38693aac98dSAlexander von Gluck IV 38793aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL 0x7910 38893aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_PLL_ENABLE (1 << 0) 38993aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_PLL_RESET (1 << 1) 39093aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_PLL_HPD_MASK_SHIFT (2) 39193aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_IDSCKSEL (1 << 4) 39293aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_BGSLEEP (1 << 5) 39393aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_PLL_PWRUP_SEQ_EN (1 << 6) 39493aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_TMCLK (1 << 8) 39593aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_TMCLK_FROM_PADS (1 << 13) 39693aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_TDCLK (1 << 14) 39793aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_TDCLK_FROM_PADS (1 << 15) 39893aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_CLK_PATTERN_SHIFT (16) 39993aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_BYPASS_PLL (1 << 28) 40093aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_USE_CLK_DATA (1 << 29) 40193aac98dSAlexander von Gluck IV #define AVIVO_TMDSA_TRANSMITTER_CONTROL_INPUT_TEST_CLK_SEL (1 << 31) 40293aac98dSAlexander von Gluck IV 40393aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_CNTL 0x7a80 40493aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_CNTL_ENABLE (1 << 0) 40593aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_CNTL_HPD_MASK (1 << 4) 40693aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_CNTL_HPD_SELECT (1 << 8) 40793aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_CNTL_SYNC_PHASE (1 << 12) 40893aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_CNTL_PIXEL_ENCODING (1 << 16) 40993aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_CNTL_DUAL_LINK_ENABLE (1 << 24) 41093aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_CNTL_SWAP (1 << 28) 41193aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_SOURCE_SELECT 0x7a84 41293aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_COLOR_FORMAT 0x7a88 41393aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BIT_DEPTH_CONTROL 0x7a94 41493aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BIT_DEPTH_CONTROL_TRUNCATE_EN (1 << 0) 41593aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BIT_DEPTH_CONTROL_TRUNCATE_DEPTH (1 << 4) 41693aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BIT_DEPTH_CONTROL_SPATIAL_DITHER_EN (1 << 8) 41793aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BIT_DEPTH_CONTROL_SPATIAL_DITHER_DEPTH (1 << 12) 41893aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BIT_DEPTH_CONTROL_TEMPORAL_DITHER_EN (1 << 16) 41993aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BIT_DEPTH_CONTROL_TEMPORAL_DITHER_DEPTH (1 << 20) 42093aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BIT_DEPTH_CONTROL_TEMPORAL_LEVEL (1 << 24) 42193aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BIT_DEPTH_CONTROL_TEMPORAL_DITHER_RESET (1 << 26) 42293aac98dSAlexander von Gluck IV 42393aac98dSAlexander von Gluck IV 42493aac98dSAlexander von Gluck IV 42593aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_DCBALANCER_CONTROL 0x7ad0 42693aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_DCBALANCER_CONTROL_EN (1 << 0) 42793aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_DCBALANCER_CONTROL_TEST_EN (1 << 8) 42893aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_DCBALANCER_CONTROL_TEST_IN_SHIFT (16) 42993aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_DCBALANCER_CONTROL_FORCE (1 << 24) 43093aac98dSAlexander von Gluck IV 43193aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_DATA_SYNCHRONIZATION 0x78d8 43293aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_DATA_SYNCHRONIZATION_DSYNSEL (1 << 0) 43393aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_DATA_SYNCHRONIZATION_PFREQCHG (1 << 8) 43493aac98dSAlexander von Gluck IV #define R500_LVTMA_CLOCK_ENABLE 0x7b00 43593aac98dSAlexander von Gluck IV #define R600_LVTMA_CLOCK_ENABLE 0x7b04 43693aac98dSAlexander von Gluck IV 43793aac98dSAlexander von Gluck IV #define R500_LVTMA_TRANSMITTER_ENABLE 0x7b04 43893aac98dSAlexander von Gluck IV #define R600_LVTMA_TRANSMITTER_ENABLE 0x7b08 43993aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_ENABLE_LNKC0EN (1 << 1) 44093aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_ENABLE_LNKD00EN (1 << 2) 44193aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_ENABLE_LNKD01EN (1 << 3) 44293aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_ENABLE_LNKD02EN (1 << 4) 44393aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_ENABLE_LNKD03EN (1 << 5) 44493aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_ENABLE_LNKC1EN (1 << 9) 44593aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_ENABLE_LNKD10EN (1 << 10) 44693aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_ENABLE_LNKD11EN (1 << 11) 44793aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_ENABLE_LNKD12EN (1 << 12) 44893aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_ENABLE_LNKCEN_HPD_MASK (1 << 17) 44993aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_ENABLE_LNKDEN_HPD_MASK (1 << 18) 45093aac98dSAlexander von Gluck IV 45193aac98dSAlexander von Gluck IV #define R500_LVTMA_TRANSMITTER_CONTROL 0x7b10 45293aac98dSAlexander von Gluck IV #define R600_LVTMA_TRANSMITTER_CONTROL 0x7b14 45393aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_PLL_ENABLE (1 << 0) 45493aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_PLL_RESET (1 << 1) 45593aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_PLL_HPD_MASK_SHIFT (2) 45693aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_IDSCKSEL (1 << 4) 45793aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_BGSLEEP (1 << 5) 45893aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_PLL_PWRUP_SEQ_EN (1 << 6) 45993aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_TMCLK (1 << 8) 46093aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_TMCLK_FROM_PADS (1 << 13) 46193aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_TDCLK (1 << 14) 46293aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_TDCLK_FROM_PADS (1 << 15) 46393aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_CLK_PATTERN_SHIFT (16) 46493aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_BYPASS_PLL (1 << 28) 46593aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_USE_CLK_DATA (1 << 29) 46693aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_TRANSMITTER_CONTROL_INPUT_TEST_CLK_SEL (1 << 31) 46793aac98dSAlexander von Gluck IV 46893aac98dSAlexander von Gluck IV #define R500_LVTMA_PWRSEQ_CNTL 0x7af0 46993aac98dSAlexander von Gluck IV #define R600_LVTMA_PWRSEQ_CNTL 0x7af4 47093aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_PWRSEQ_EN (1 << 0) 47193aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_PWRSEQ_PLL_ENABLE_MASK (1 << 2) 47293aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_PWRSEQ_PLL_RESET_MASK (1 << 3) 47393aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_PWRSEQ_TARGET_STATE (1 << 4) 47493aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_SYNCEN (1 << 8) 47593aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_SYNCEN_OVRD (1 << 9) 47693aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_SYNCEN_POL (1 << 10) 47793aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_DIGON (1 << 16) 47893aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_DIGON_OVRD (1 << 17) 47993aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_DIGON_POL (1 << 18) 48093aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BLON (1 << 24) 48193aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BLON_OVRD (1 << 25) 48293aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_BLON_POL (1 << 26) 48393aac98dSAlexander von Gluck IV 48493aac98dSAlexander von Gluck IV #define R500_LVTMA_PWRSEQ_STATE 0x7af4 48593aac98dSAlexander von Gluck IV #define R600_LVTMA_PWRSEQ_STATE 0x7af8 48693aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_PWRSEQ_STATE_TARGET_STATE_R (1 << 0) 48793aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_PWRSEQ_STATE_DIGON (1 << 1) 48893aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_PWRSEQ_STATE_SYNCEN (1 << 2) 48993aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_PWRSEQ_STATE_BLON (1 << 3) 49093aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_PWRSEQ_STATE_DONE (1 << 4) 49193aac98dSAlexander von Gluck IV #define AVIVO_LVTMA_PWRSEQ_STATE_STATUS_SHIFT (8) 49293aac98dSAlexander von Gluck IV 49393aac98dSAlexander von Gluck IV #define AVIVO_LVDS_BACKLIGHT_CNTL 0x7af8 49493aac98dSAlexander von Gluck IV #define AVIVO_LVDS_BACKLIGHT_CNTL_EN (1 << 0) 49593aac98dSAlexander von Gluck IV #define AVIVO_LVDS_BACKLIGHT_LEVEL_MASK 0x0000ff00 49693aac98dSAlexander von Gluck IV #define AVIVO_LVDS_BACKLIGHT_LEVEL_SHIFT 8 49793aac98dSAlexander von Gluck IV 49893aac98dSAlexander von Gluck IV #define AVIVO_DVOA_BIT_DEPTH_CONTROL 0x7988 49993aac98dSAlexander von Gluck IV 50093aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_HPD_A 0x7e94 50193aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_HPD_Y 0x7e9c 50293aac98dSAlexander von Gluck IV 50393aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_STATUS1 0x7d30 50493aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_DONE (1 << 0) 50593aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_NACK (1 << 1) 50693aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_HALT (1 << 2) 50793aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_GO (1 << 3) 50893aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_RESET 0x7d34 50993aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_SOFT_RESET (1 << 0) 51093aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_ABORT (1 << 8) 51193aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_CONTROL1 0x7d38 51293aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_START (1 << 0) 51393aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_STOP (1 << 1) 51493aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_RECEIVE (1 << 2) 51593aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_EN (1 << 8) 51693aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_PIN_SELECT(x) ((x) << 16) 51793aac98dSAlexander von Gluck IV #define AVIVO_SEL_DDC1 0 51893aac98dSAlexander von Gluck IV #define AVIVO_SEL_DDC2 1 51993aac98dSAlexander von Gluck IV #define AVIVO_SEL_DDC3 2 52093aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_CONTROL2 0x7d3c 52193aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_ADDR_COUNT(x) ((x) << 0) 52293aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_DATA_COUNT(x) ((x) << 8) 52393aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_CONTROL3 0x7d40 52493aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_DATA_DRIVE_EN (1 << 0) 52593aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_DATA_DRIVE_SEL (1 << 1) 52693aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_CLK_DRIVE_EN (1 << 7) 52793aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_RD_INTRA_BYTE_DELAY(x) ((x) << 8) 52893aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_WR_INTRA_BYTE_DELAY(x) ((x) << 16) 52993aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_TIME_LIMIT(x) ((x) << 24) 53093aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_DATA 0x7d44 53193aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_INTERRUPT_CONTROL 0x7d48 53293aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_INTERRUPT_STATUS (1 << 0) 53393aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_INTERRUPT_AK (1 << 8) 53493aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_INTERRUPT_ENABLE (1 << 16) 53593aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_ARBITRATION 0x7d50 53693aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_SW_WANTS_TO_USE_I2C (1 << 0) 53793aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_SW_CAN_USE_I2C (1 << 1) 53893aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_SW_DONE_USING_I2C (1 << 8) 53993aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_HW_NEEDS_I2C (1 << 9) 54093aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_ABORT_HDCP_I2C (1 << 16) 54193aac98dSAlexander von Gluck IV #define AVIVO_DC_I2C_HW_USING_I2C (1 << 17) 54293aac98dSAlexander von Gluck IV 54393aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC1_MASK 0x7e40 54493aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC1_A 0x7e44 54593aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC1_EN 0x7e48 54693aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC1_Y 0x7e4c 54793aac98dSAlexander von Gluck IV 54893aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC2_MASK 0x7e50 54993aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC2_A 0x7e54 55093aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC2_EN 0x7e58 55193aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC2_Y 0x7e5c 55293aac98dSAlexander von Gluck IV 55393aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC3_MASK 0x7e60 55493aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC3_A 0x7e64 55593aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC3_EN 0x7e68 55693aac98dSAlexander von Gluck IV #define AVIVO_DC_GPIO_DDC3_Y 0x7e6c 55793aac98dSAlexander von Gluck IV 55893aac98dSAlexander von Gluck IV #define AVIVO_DISP_INTERRUPT_STATUS 0x7edc 55993aac98dSAlexander von Gluck IV #define AVIVO_D1_VBLANK_INTERRUPT (1 << 4) 56093aac98dSAlexander von Gluck IV #define AVIVO_D2_VBLANK_INTERRUPT (1 << 5) 56193aac98dSAlexander von Gluck IV 56293aac98dSAlexander von Gluck IV 563f8af3174SAlexander von Gluck IV #endif /* __AVIVO_REG_H__ */ 564