1926deccbSFrançois Tigeot /* 2926deccbSFrançois Tigeot * Copyright 2010 Advanced Micro Devices, Inc. 3926deccbSFrançois Tigeot * 4926deccbSFrançois Tigeot * Permission is hereby granted, free of charge, to any person obtaining a 5926deccbSFrançois Tigeot * copy of this software and associated documentation files (the "Software"), 6926deccbSFrançois Tigeot * to deal in the Software without restriction, including without limitation 7926deccbSFrançois Tigeot * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8926deccbSFrançois Tigeot * and/or sell copies of the Software, and to permit persons to whom the 9926deccbSFrançois Tigeot * Software is furnished to do so, subject to the following conditions: 10926deccbSFrançois Tigeot * 11926deccbSFrançois Tigeot * The above copyright notice and this permission notice shall be included in 12926deccbSFrançois Tigeot * all copies or substantial portions of the Software. 13926deccbSFrançois Tigeot * 14926deccbSFrançois Tigeot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15926deccbSFrançois Tigeot * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16926deccbSFrançois Tigeot * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17926deccbSFrançois Tigeot * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18926deccbSFrançois Tigeot * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19926deccbSFrançois Tigeot * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20926deccbSFrançois Tigeot * OTHER DEALINGS IN THE SOFTWARE. 21926deccbSFrançois Tigeot * 22926deccbSFrançois Tigeot * Authors: Alex Deucher 23926deccbSFrançois Tigeot */ 24926deccbSFrançois Tigeot #ifndef __NI_REG_H__ 25926deccbSFrançois Tigeot #define __NI_REG_H__ 26926deccbSFrançois Tigeot 27926deccbSFrançois Tigeot /* northern islands - DCE5 */ 28926deccbSFrançois Tigeot 29926deccbSFrançois Tigeot #define NI_INPUT_GAMMA_CONTROL 0x6840 30926deccbSFrançois Tigeot # define NI_GRPH_INPUT_GAMMA_MODE(x) (((x) & 0x3) << 0) 31926deccbSFrançois Tigeot # define NI_INPUT_GAMMA_USE_LUT 0 32926deccbSFrançois Tigeot # define NI_INPUT_GAMMA_BYPASS 1 33926deccbSFrançois Tigeot # define NI_INPUT_GAMMA_SRGB_24 2 34926deccbSFrançois Tigeot # define NI_INPUT_GAMMA_XVYCC_222 3 35926deccbSFrançois Tigeot # define NI_OVL_INPUT_GAMMA_MODE(x) (((x) & 0x3) << 4) 36926deccbSFrançois Tigeot 37926deccbSFrançois Tigeot #define NI_PRESCALE_GRPH_CONTROL 0x68b4 38926deccbSFrançois Tigeot # define NI_GRPH_PRESCALE_BYPASS (1 << 4) 39926deccbSFrançois Tigeot 40926deccbSFrançois Tigeot #define NI_PRESCALE_OVL_CONTROL 0x68c4 41926deccbSFrançois Tigeot # define NI_OVL_PRESCALE_BYPASS (1 << 4) 42926deccbSFrançois Tigeot 43926deccbSFrançois Tigeot #define NI_INPUT_CSC_CONTROL 0x68d4 44926deccbSFrançois Tigeot # define NI_INPUT_CSC_GRPH_MODE(x) (((x) & 0x3) << 0) 45926deccbSFrançois Tigeot # define NI_INPUT_CSC_BYPASS 0 46926deccbSFrançois Tigeot # define NI_INPUT_CSC_PROG_COEFF 1 47926deccbSFrançois Tigeot # define NI_INPUT_CSC_PROG_SHARED_MATRIXA 2 48926deccbSFrançois Tigeot # define NI_INPUT_CSC_OVL_MODE(x) (((x) & 0x3) << 4) 49926deccbSFrançois Tigeot 50926deccbSFrançois Tigeot #define NI_OUTPUT_CSC_CONTROL 0x68f0 51926deccbSFrançois Tigeot # define NI_OUTPUT_CSC_GRPH_MODE(x) (((x) & 0x7) << 0) 52926deccbSFrançois Tigeot # define NI_OUTPUT_CSC_BYPASS 0 53926deccbSFrançois Tigeot # define NI_OUTPUT_CSC_TV_RGB 1 54926deccbSFrançois Tigeot # define NI_OUTPUT_CSC_YCBCR_601 2 55926deccbSFrançois Tigeot # define NI_OUTPUT_CSC_YCBCR_709 3 56926deccbSFrançois Tigeot # define NI_OUTPUT_CSC_PROG_COEFF 4 57926deccbSFrançois Tigeot # define NI_OUTPUT_CSC_PROG_SHARED_MATRIXB 5 58926deccbSFrançois Tigeot # define NI_OUTPUT_CSC_OVL_MODE(x) (((x) & 0x7) << 4) 59926deccbSFrançois Tigeot 60926deccbSFrançois Tigeot #define NI_DEGAMMA_CONTROL 0x6960 61926deccbSFrançois Tigeot # define NI_GRPH_DEGAMMA_MODE(x) (((x) & 0x3) << 0) 62926deccbSFrançois Tigeot # define NI_DEGAMMA_BYPASS 0 63926deccbSFrançois Tigeot # define NI_DEGAMMA_SRGB_24 1 64926deccbSFrançois Tigeot # define NI_DEGAMMA_XVYCC_222 2 65926deccbSFrançois Tigeot # define NI_OVL_DEGAMMA_MODE(x) (((x) & 0x3) << 4) 66926deccbSFrançois Tigeot # define NI_ICON_DEGAMMA_MODE(x) (((x) & 0x3) << 8) 67926deccbSFrançois Tigeot # define NI_CURSOR_DEGAMMA_MODE(x) (((x) & 0x3) << 12) 68926deccbSFrançois Tigeot 69926deccbSFrançois Tigeot #define NI_GAMUT_REMAP_CONTROL 0x6964 70926deccbSFrançois Tigeot # define NI_GRPH_GAMUT_REMAP_MODE(x) (((x) & 0x3) << 0) 71926deccbSFrançois Tigeot # define NI_GAMUT_REMAP_BYPASS 0 72926deccbSFrançois Tigeot # define NI_GAMUT_REMAP_PROG_COEFF 1 73926deccbSFrançois Tigeot # define NI_GAMUT_REMAP_PROG_SHARED_MATRIXA 2 74926deccbSFrançois Tigeot # define NI_GAMUT_REMAP_PROG_SHARED_MATRIXB 3 75926deccbSFrançois Tigeot # define NI_OVL_GAMUT_REMAP_MODE(x) (((x) & 0x3) << 4) 76926deccbSFrançois Tigeot 77926deccbSFrançois Tigeot #define NI_REGAMMA_CONTROL 0x6a80 78926deccbSFrançois Tigeot # define NI_GRPH_REGAMMA_MODE(x) (((x) & 0x7) << 0) 79926deccbSFrançois Tigeot # define NI_REGAMMA_BYPASS 0 80926deccbSFrançois Tigeot # define NI_REGAMMA_SRGB_24 1 81926deccbSFrançois Tigeot # define NI_REGAMMA_XVYCC_222 2 82926deccbSFrançois Tigeot # define NI_REGAMMA_PROG_A 3 83926deccbSFrançois Tigeot # define NI_REGAMMA_PROG_B 4 84926deccbSFrançois Tigeot # define NI_OVL_REGAMMA_MODE(x) (((x) & 0x7) << 4) 85926deccbSFrançois Tigeot 86c59a5c48SFrançois Tigeot #define NI_DP_MSE_LINK_TIMING 0x73a0 87c59a5c48SFrançois Tigeot # define NI_DP_MSE_LINK_FRAME (((x) & 0x3ff) << 0) 88c59a5c48SFrançois Tigeot # define NI_DP_MSE_LINK_LINE (((x) & 0x3) << 16) 89c59a5c48SFrançois Tigeot 90c59a5c48SFrançois Tigeot #define NI_DP_MSE_MISC_CNTL 0x736c 91c59a5c48SFrançois Tigeot # define NI_DP_MSE_BLANK_CODE (((x) & 0x1) << 0) 92c59a5c48SFrançois Tigeot # define NI_DP_MSE_TIMESTAMP_MODE (((x) & 0x1) << 4) 93c59a5c48SFrançois Tigeot # define NI_DP_MSE_ZERO_ENCODER (((x) & 0x1) << 8) 94c59a5c48SFrançois Tigeot 95c59a5c48SFrançois Tigeot #define NI_DP_MSE_RATE_CNTL 0x7384 96c59a5c48SFrançois Tigeot # define NI_DP_MSE_RATE_Y(x) (((x) & 0x3ffffff) << 0) 97c59a5c48SFrançois Tigeot # define NI_DP_MSE_RATE_X(x) (((x) & 0x3f) << 26) 98c59a5c48SFrançois Tigeot 99c59a5c48SFrançois Tigeot #define NI_DP_MSE_RATE_UPDATE 0x738c 100c59a5c48SFrançois Tigeot 101c59a5c48SFrançois Tigeot #define NI_DP_MSE_SAT0 0x7390 102c59a5c48SFrançois Tigeot # define NI_DP_MSE_SAT_SRC0(x) (((x) & 0x7) << 0) 103c59a5c48SFrançois Tigeot # define NI_DP_MSE_SAT_SLOT_COUNT0(x) (((x) & 0x3f) << 8) 104c59a5c48SFrançois Tigeot # define NI_DP_MSE_SAT_SRC1(x) (((x) & 0x7) << 16) 105c59a5c48SFrançois Tigeot # define NI_DP_MSE_SAT_SLOT_COUNT1(x) (((x) & 0x3f) << 24) 106c59a5c48SFrançois Tigeot 107c59a5c48SFrançois Tigeot #define NI_DP_MSE_SAT1 0x7394 108c59a5c48SFrançois Tigeot 109c59a5c48SFrançois Tigeot #define NI_DP_MSE_SAT2 0x7398 110c59a5c48SFrançois Tigeot 111c59a5c48SFrançois Tigeot #define NI_DP_MSE_SAT_UPDATE 0x739c 112*d78d3a22SFrançois Tigeot # define NI_DP_MSE_SAT_UPDATE_MASK 0x3 113*d78d3a22SFrançois Tigeot # define NI_DP_MSE_16_MTP_KEEPOUT 0x100 114c59a5c48SFrançois Tigeot 115c59a5c48SFrançois Tigeot #define NI_DIG_BE_CNTL 0x7140 116c59a5c48SFrançois Tigeot # define NI_DIG_FE_SOURCE_SELECT(x) (((x) & 0x7f) << 8) 117c59a5c48SFrançois Tigeot # define NI_DIG_FE_DIG_MODE(x) (((x) & 0x7) << 16) 118c59a5c48SFrançois Tigeot # define NI_DIG_MODE_DP_SST 0 119c59a5c48SFrançois Tigeot # define NI_DIG_MODE_LVDS 1 120c59a5c48SFrançois Tigeot # define NI_DIG_MODE_TMDS_DVI 2 121c59a5c48SFrançois Tigeot # define NI_DIG_MODE_TMDS_HDMI 3 122c59a5c48SFrançois Tigeot # define NI_DIG_MODE_DP_MST 5 123c59a5c48SFrançois Tigeot # define NI_DIG_HPD_SELECT(x) (((x) & 0x7) << 28) 124c59a5c48SFrançois Tigeot 125c59a5c48SFrançois Tigeot #define NI_DIG_FE_CNTL 0x7000 126c59a5c48SFrançois Tigeot # define NI_DIG_SOURCE_SELECT(x) (((x) & 0x3) << 0) 127c59a5c48SFrançois Tigeot # define NI_DIG_STEREOSYNC_SELECT(x) (((x) & 0x3) << 4) 128c59a5c48SFrançois Tigeot # define NI_DIG_STEREOSYNC_GATE_EN(x) (((x) & 0x1) << 8) 129c59a5c48SFrançois Tigeot # define NI_DIG_DUAL_LINK_ENABLE(x) (((x) & 0x1) << 16) 130c59a5c48SFrançois Tigeot # define NI_DIG_SWAP(x) (((x) & 0x1) << 18) 131c59a5c48SFrançois Tigeot # define NI_DIG_SYMCLK_FE_ON (0x1 << 24) 132926deccbSFrançois Tigeot #endif 133