162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * Copyright 2008 Advanced Micro Devices, Inc. 362306a36Sopenharmony_ci * Copyright 2008 Red Hat Inc. 462306a36Sopenharmony_ci * Copyright 2009 Jerome Glisse. 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 762306a36Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 862306a36Sopenharmony_ci * to deal in the Software without restriction, including without limitation 962306a36Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 1062306a36Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 1162306a36Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 1262306a36Sopenharmony_ci * 1362306a36Sopenharmony_ci * The above copyright notice and this permission notice shall be included in 1462306a36Sopenharmony_ci * all copies or substantial portions of the Software. 1562306a36Sopenharmony_ci * 1662306a36Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1762306a36Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1862306a36Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1962306a36Sopenharmony_ci * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 2062306a36Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 2162306a36Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2262306a36Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 2362306a36Sopenharmony_ci * 2462306a36Sopenharmony_ci * Authors: Dave Airlie 2562306a36Sopenharmony_ci * Alex Deucher 2662306a36Sopenharmony_ci * Jerome Glisse 2762306a36Sopenharmony_ci */ 2862306a36Sopenharmony_ci#ifndef __RV250D_H__ 2962306a36Sopenharmony_ci#define __RV250D_H__ 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ci#define R_00000D_SCLK_CNTL_M6 0x00000D 3262306a36Sopenharmony_ci#define S_00000D_SCLK_SRC_SEL(x) (((x) & 0x7) << 0) 3362306a36Sopenharmony_ci#define G_00000D_SCLK_SRC_SEL(x) (((x) >> 0) & 0x7) 3462306a36Sopenharmony_ci#define C_00000D_SCLK_SRC_SEL 0xFFFFFFF8 3562306a36Sopenharmony_ci#define S_00000D_CP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 3) 3662306a36Sopenharmony_ci#define G_00000D_CP_MAX_DYN_STOP_LAT(x) (((x) >> 3) & 0x1) 3762306a36Sopenharmony_ci#define C_00000D_CP_MAX_DYN_STOP_LAT 0xFFFFFFF7 3862306a36Sopenharmony_ci#define S_00000D_HDP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 4) 3962306a36Sopenharmony_ci#define G_00000D_HDP_MAX_DYN_STOP_LAT(x) (((x) >> 4) & 0x1) 4062306a36Sopenharmony_ci#define C_00000D_HDP_MAX_DYN_STOP_LAT 0xFFFFFFEF 4162306a36Sopenharmony_ci#define S_00000D_TV_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 5) 4262306a36Sopenharmony_ci#define G_00000D_TV_MAX_DYN_STOP_LAT(x) (((x) >> 5) & 0x1) 4362306a36Sopenharmony_ci#define C_00000D_TV_MAX_DYN_STOP_LAT 0xFFFFFFDF 4462306a36Sopenharmony_ci#define S_00000D_E2_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 6) 4562306a36Sopenharmony_ci#define G_00000D_E2_MAX_DYN_STOP_LAT(x) (((x) >> 6) & 0x1) 4662306a36Sopenharmony_ci#define C_00000D_E2_MAX_DYN_STOP_LAT 0xFFFFFFBF 4762306a36Sopenharmony_ci#define S_00000D_SE_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 7) 4862306a36Sopenharmony_ci#define G_00000D_SE_MAX_DYN_STOP_LAT(x) (((x) >> 7) & 0x1) 4962306a36Sopenharmony_ci#define C_00000D_SE_MAX_DYN_STOP_LAT 0xFFFFFF7F 5062306a36Sopenharmony_ci#define S_00000D_IDCT_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 8) 5162306a36Sopenharmony_ci#define G_00000D_IDCT_MAX_DYN_STOP_LAT(x) (((x) >> 8) & 0x1) 5262306a36Sopenharmony_ci#define C_00000D_IDCT_MAX_DYN_STOP_LAT 0xFFFFFEFF 5362306a36Sopenharmony_ci#define S_00000D_VIP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 9) 5462306a36Sopenharmony_ci#define G_00000D_VIP_MAX_DYN_STOP_LAT(x) (((x) >> 9) & 0x1) 5562306a36Sopenharmony_ci#define C_00000D_VIP_MAX_DYN_STOP_LAT 0xFFFFFDFF 5662306a36Sopenharmony_ci#define S_00000D_RE_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 10) 5762306a36Sopenharmony_ci#define G_00000D_RE_MAX_DYN_STOP_LAT(x) (((x) >> 10) & 0x1) 5862306a36Sopenharmony_ci#define C_00000D_RE_MAX_DYN_STOP_LAT 0xFFFFFBFF 5962306a36Sopenharmony_ci#define S_00000D_PB_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 11) 6062306a36Sopenharmony_ci#define G_00000D_PB_MAX_DYN_STOP_LAT(x) (((x) >> 11) & 0x1) 6162306a36Sopenharmony_ci#define C_00000D_PB_MAX_DYN_STOP_LAT 0xFFFFF7FF 6262306a36Sopenharmony_ci#define S_00000D_TAM_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 12) 6362306a36Sopenharmony_ci#define G_00000D_TAM_MAX_DYN_STOP_LAT(x) (((x) >> 12) & 0x1) 6462306a36Sopenharmony_ci#define C_00000D_TAM_MAX_DYN_STOP_LAT 0xFFFFEFFF 6562306a36Sopenharmony_ci#define S_00000D_TDM_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 13) 6662306a36Sopenharmony_ci#define G_00000D_TDM_MAX_DYN_STOP_LAT(x) (((x) >> 13) & 0x1) 6762306a36Sopenharmony_ci#define C_00000D_TDM_MAX_DYN_STOP_LAT 0xFFFFDFFF 6862306a36Sopenharmony_ci#define S_00000D_RB_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 14) 6962306a36Sopenharmony_ci#define G_00000D_RB_MAX_DYN_STOP_LAT(x) (((x) >> 14) & 0x1) 7062306a36Sopenharmony_ci#define C_00000D_RB_MAX_DYN_STOP_LAT 0xFFFFBFFF 7162306a36Sopenharmony_ci#define S_00000D_FORCE_DISP2(x) (((x) & 0x1) << 15) 7262306a36Sopenharmony_ci#define G_00000D_FORCE_DISP2(x) (((x) >> 15) & 0x1) 7362306a36Sopenharmony_ci#define C_00000D_FORCE_DISP2 0xFFFF7FFF 7462306a36Sopenharmony_ci#define S_00000D_FORCE_CP(x) (((x) & 0x1) << 16) 7562306a36Sopenharmony_ci#define G_00000D_FORCE_CP(x) (((x) >> 16) & 0x1) 7662306a36Sopenharmony_ci#define C_00000D_FORCE_CP 0xFFFEFFFF 7762306a36Sopenharmony_ci#define S_00000D_FORCE_HDP(x) (((x) & 0x1) << 17) 7862306a36Sopenharmony_ci#define G_00000D_FORCE_HDP(x) (((x) >> 17) & 0x1) 7962306a36Sopenharmony_ci#define C_00000D_FORCE_HDP 0xFFFDFFFF 8062306a36Sopenharmony_ci#define S_00000D_FORCE_DISP1(x) (((x) & 0x1) << 18) 8162306a36Sopenharmony_ci#define G_00000D_FORCE_DISP1(x) (((x) >> 18) & 0x1) 8262306a36Sopenharmony_ci#define C_00000D_FORCE_DISP1 0xFFFBFFFF 8362306a36Sopenharmony_ci#define S_00000D_FORCE_TOP(x) (((x) & 0x1) << 19) 8462306a36Sopenharmony_ci#define G_00000D_FORCE_TOP(x) (((x) >> 19) & 0x1) 8562306a36Sopenharmony_ci#define C_00000D_FORCE_TOP 0xFFF7FFFF 8662306a36Sopenharmony_ci#define S_00000D_FORCE_E2(x) (((x) & 0x1) << 20) 8762306a36Sopenharmony_ci#define G_00000D_FORCE_E2(x) (((x) >> 20) & 0x1) 8862306a36Sopenharmony_ci#define C_00000D_FORCE_E2 0xFFEFFFFF 8962306a36Sopenharmony_ci#define S_00000D_FORCE_SE(x) (((x) & 0x1) << 21) 9062306a36Sopenharmony_ci#define G_00000D_FORCE_SE(x) (((x) >> 21) & 0x1) 9162306a36Sopenharmony_ci#define C_00000D_FORCE_SE 0xFFDFFFFF 9262306a36Sopenharmony_ci#define S_00000D_FORCE_IDCT(x) (((x) & 0x1) << 22) 9362306a36Sopenharmony_ci#define G_00000D_FORCE_IDCT(x) (((x) >> 22) & 0x1) 9462306a36Sopenharmony_ci#define C_00000D_FORCE_IDCT 0xFFBFFFFF 9562306a36Sopenharmony_ci#define S_00000D_FORCE_VIP(x) (((x) & 0x1) << 23) 9662306a36Sopenharmony_ci#define G_00000D_FORCE_VIP(x) (((x) >> 23) & 0x1) 9762306a36Sopenharmony_ci#define C_00000D_FORCE_VIP 0xFF7FFFFF 9862306a36Sopenharmony_ci#define S_00000D_FORCE_RE(x) (((x) & 0x1) << 24) 9962306a36Sopenharmony_ci#define G_00000D_FORCE_RE(x) (((x) >> 24) & 0x1) 10062306a36Sopenharmony_ci#define C_00000D_FORCE_RE 0xFEFFFFFF 10162306a36Sopenharmony_ci#define S_00000D_FORCE_PB(x) (((x) & 0x1) << 25) 10262306a36Sopenharmony_ci#define G_00000D_FORCE_PB(x) (((x) >> 25) & 0x1) 10362306a36Sopenharmony_ci#define C_00000D_FORCE_PB 0xFDFFFFFF 10462306a36Sopenharmony_ci#define S_00000D_FORCE_TAM(x) (((x) & 0x1) << 26) 10562306a36Sopenharmony_ci#define G_00000D_FORCE_TAM(x) (((x) >> 26) & 0x1) 10662306a36Sopenharmony_ci#define C_00000D_FORCE_TAM 0xFBFFFFFF 10762306a36Sopenharmony_ci#define S_00000D_FORCE_TDM(x) (((x) & 0x1) << 27) 10862306a36Sopenharmony_ci#define G_00000D_FORCE_TDM(x) (((x) >> 27) & 0x1) 10962306a36Sopenharmony_ci#define C_00000D_FORCE_TDM 0xF7FFFFFF 11062306a36Sopenharmony_ci#define S_00000D_FORCE_RB(x) (((x) & 0x1) << 28) 11162306a36Sopenharmony_ci#define G_00000D_FORCE_RB(x) (((x) >> 28) & 0x1) 11262306a36Sopenharmony_ci#define C_00000D_FORCE_RB 0xEFFFFFFF 11362306a36Sopenharmony_ci#define S_00000D_FORCE_TV_SCLK(x) (((x) & 0x1) << 29) 11462306a36Sopenharmony_ci#define G_00000D_FORCE_TV_SCLK(x) (((x) >> 29) & 0x1) 11562306a36Sopenharmony_ci#define C_00000D_FORCE_TV_SCLK 0xDFFFFFFF 11662306a36Sopenharmony_ci#define S_00000D_FORCE_SUBPIC(x) (((x) & 0x1) << 30) 11762306a36Sopenharmony_ci#define G_00000D_FORCE_SUBPIC(x) (((x) >> 30) & 0x1) 11862306a36Sopenharmony_ci#define C_00000D_FORCE_SUBPIC 0xBFFFFFFF 11962306a36Sopenharmony_ci#define S_00000D_FORCE_OV0(x) (((x) & 0x1) << 31) 12062306a36Sopenharmony_ci#define G_00000D_FORCE_OV0(x) (((x) >> 31) & 0x1) 12162306a36Sopenharmony_ci#define C_00000D_FORCE_OV0 0x7FFFFFFF 12262306a36Sopenharmony_ci 12362306a36Sopenharmony_ci#endif 124