18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright 2008 Advanced Micro Devices, Inc. 38c2ecf20Sopenharmony_ci * Copyright 2008 Red Hat Inc. 48c2ecf20Sopenharmony_ci * Copyright 2009 Jerome Glisse. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 78c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the "Software"), 88c2ecf20Sopenharmony_ci * to deal in the Software without restriction, including without limitation 98c2ecf20Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 108c2ecf20Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 118c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following conditions: 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice shall be included in 148c2ecf20Sopenharmony_ci * all copies or substantial portions of the Software. 158c2ecf20Sopenharmony_ci * 168c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 178c2ecf20Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 188c2ecf20Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 198c2ecf20Sopenharmony_ci * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 208c2ecf20Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 218c2ecf20Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 228c2ecf20Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 238c2ecf20Sopenharmony_ci * 248c2ecf20Sopenharmony_ci * Authors: Dave Airlie 258c2ecf20Sopenharmony_ci * Alex Deucher 268c2ecf20Sopenharmony_ci * Jerome Glisse 278c2ecf20Sopenharmony_ci */ 288c2ecf20Sopenharmony_ci#ifndef __RV250D_H__ 298c2ecf20Sopenharmony_ci#define __RV250D_H__ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define R_00000D_SCLK_CNTL_M6 0x00000D 328c2ecf20Sopenharmony_ci#define S_00000D_SCLK_SRC_SEL(x) (((x) & 0x7) << 0) 338c2ecf20Sopenharmony_ci#define G_00000D_SCLK_SRC_SEL(x) (((x) >> 0) & 0x7) 348c2ecf20Sopenharmony_ci#define C_00000D_SCLK_SRC_SEL 0xFFFFFFF8 358c2ecf20Sopenharmony_ci#define S_00000D_CP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 3) 368c2ecf20Sopenharmony_ci#define G_00000D_CP_MAX_DYN_STOP_LAT(x) (((x) >> 3) & 0x1) 378c2ecf20Sopenharmony_ci#define C_00000D_CP_MAX_DYN_STOP_LAT 0xFFFFFFF7 388c2ecf20Sopenharmony_ci#define S_00000D_HDP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 4) 398c2ecf20Sopenharmony_ci#define G_00000D_HDP_MAX_DYN_STOP_LAT(x) (((x) >> 4) & 0x1) 408c2ecf20Sopenharmony_ci#define C_00000D_HDP_MAX_DYN_STOP_LAT 0xFFFFFFEF 418c2ecf20Sopenharmony_ci#define S_00000D_TV_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 5) 428c2ecf20Sopenharmony_ci#define G_00000D_TV_MAX_DYN_STOP_LAT(x) (((x) >> 5) & 0x1) 438c2ecf20Sopenharmony_ci#define C_00000D_TV_MAX_DYN_STOP_LAT 0xFFFFFFDF 448c2ecf20Sopenharmony_ci#define S_00000D_E2_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 6) 458c2ecf20Sopenharmony_ci#define G_00000D_E2_MAX_DYN_STOP_LAT(x) (((x) >> 6) & 0x1) 468c2ecf20Sopenharmony_ci#define C_00000D_E2_MAX_DYN_STOP_LAT 0xFFFFFFBF 478c2ecf20Sopenharmony_ci#define S_00000D_SE_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 7) 488c2ecf20Sopenharmony_ci#define G_00000D_SE_MAX_DYN_STOP_LAT(x) (((x) >> 7) & 0x1) 498c2ecf20Sopenharmony_ci#define C_00000D_SE_MAX_DYN_STOP_LAT 0xFFFFFF7F 508c2ecf20Sopenharmony_ci#define S_00000D_IDCT_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 8) 518c2ecf20Sopenharmony_ci#define G_00000D_IDCT_MAX_DYN_STOP_LAT(x) (((x) >> 8) & 0x1) 528c2ecf20Sopenharmony_ci#define C_00000D_IDCT_MAX_DYN_STOP_LAT 0xFFFFFEFF 538c2ecf20Sopenharmony_ci#define S_00000D_VIP_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 9) 548c2ecf20Sopenharmony_ci#define G_00000D_VIP_MAX_DYN_STOP_LAT(x) (((x) >> 9) & 0x1) 558c2ecf20Sopenharmony_ci#define C_00000D_VIP_MAX_DYN_STOP_LAT 0xFFFFFDFF 568c2ecf20Sopenharmony_ci#define S_00000D_RE_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 10) 578c2ecf20Sopenharmony_ci#define G_00000D_RE_MAX_DYN_STOP_LAT(x) (((x) >> 10) & 0x1) 588c2ecf20Sopenharmony_ci#define C_00000D_RE_MAX_DYN_STOP_LAT 0xFFFFFBFF 598c2ecf20Sopenharmony_ci#define S_00000D_PB_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 11) 608c2ecf20Sopenharmony_ci#define G_00000D_PB_MAX_DYN_STOP_LAT(x) (((x) >> 11) & 0x1) 618c2ecf20Sopenharmony_ci#define C_00000D_PB_MAX_DYN_STOP_LAT 0xFFFFF7FF 628c2ecf20Sopenharmony_ci#define S_00000D_TAM_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 12) 638c2ecf20Sopenharmony_ci#define G_00000D_TAM_MAX_DYN_STOP_LAT(x) (((x) >> 12) & 0x1) 648c2ecf20Sopenharmony_ci#define C_00000D_TAM_MAX_DYN_STOP_LAT 0xFFFFEFFF 658c2ecf20Sopenharmony_ci#define S_00000D_TDM_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 13) 668c2ecf20Sopenharmony_ci#define G_00000D_TDM_MAX_DYN_STOP_LAT(x) (((x) >> 13) & 0x1) 678c2ecf20Sopenharmony_ci#define C_00000D_TDM_MAX_DYN_STOP_LAT 0xFFFFDFFF 688c2ecf20Sopenharmony_ci#define S_00000D_RB_MAX_DYN_STOP_LAT(x) (((x) & 0x1) << 14) 698c2ecf20Sopenharmony_ci#define G_00000D_RB_MAX_DYN_STOP_LAT(x) (((x) >> 14) & 0x1) 708c2ecf20Sopenharmony_ci#define C_00000D_RB_MAX_DYN_STOP_LAT 0xFFFFBFFF 718c2ecf20Sopenharmony_ci#define S_00000D_FORCE_DISP2(x) (((x) & 0x1) << 15) 728c2ecf20Sopenharmony_ci#define G_00000D_FORCE_DISP2(x) (((x) >> 15) & 0x1) 738c2ecf20Sopenharmony_ci#define C_00000D_FORCE_DISP2 0xFFFF7FFF 748c2ecf20Sopenharmony_ci#define S_00000D_FORCE_CP(x) (((x) & 0x1) << 16) 758c2ecf20Sopenharmony_ci#define G_00000D_FORCE_CP(x) (((x) >> 16) & 0x1) 768c2ecf20Sopenharmony_ci#define C_00000D_FORCE_CP 0xFFFEFFFF 778c2ecf20Sopenharmony_ci#define S_00000D_FORCE_HDP(x) (((x) & 0x1) << 17) 788c2ecf20Sopenharmony_ci#define G_00000D_FORCE_HDP(x) (((x) >> 17) & 0x1) 798c2ecf20Sopenharmony_ci#define C_00000D_FORCE_HDP 0xFFFDFFFF 808c2ecf20Sopenharmony_ci#define S_00000D_FORCE_DISP1(x) (((x) & 0x1) << 18) 818c2ecf20Sopenharmony_ci#define G_00000D_FORCE_DISP1(x) (((x) >> 18) & 0x1) 828c2ecf20Sopenharmony_ci#define C_00000D_FORCE_DISP1 0xFFFBFFFF 838c2ecf20Sopenharmony_ci#define S_00000D_FORCE_TOP(x) (((x) & 0x1) << 19) 848c2ecf20Sopenharmony_ci#define G_00000D_FORCE_TOP(x) (((x) >> 19) & 0x1) 858c2ecf20Sopenharmony_ci#define C_00000D_FORCE_TOP 0xFFF7FFFF 868c2ecf20Sopenharmony_ci#define S_00000D_FORCE_E2(x) (((x) & 0x1) << 20) 878c2ecf20Sopenharmony_ci#define G_00000D_FORCE_E2(x) (((x) >> 20) & 0x1) 888c2ecf20Sopenharmony_ci#define C_00000D_FORCE_E2 0xFFEFFFFF 898c2ecf20Sopenharmony_ci#define S_00000D_FORCE_SE(x) (((x) & 0x1) << 21) 908c2ecf20Sopenharmony_ci#define G_00000D_FORCE_SE(x) (((x) >> 21) & 0x1) 918c2ecf20Sopenharmony_ci#define C_00000D_FORCE_SE 0xFFDFFFFF 928c2ecf20Sopenharmony_ci#define S_00000D_FORCE_IDCT(x) (((x) & 0x1) << 22) 938c2ecf20Sopenharmony_ci#define G_00000D_FORCE_IDCT(x) (((x) >> 22) & 0x1) 948c2ecf20Sopenharmony_ci#define C_00000D_FORCE_IDCT 0xFFBFFFFF 958c2ecf20Sopenharmony_ci#define S_00000D_FORCE_VIP(x) (((x) & 0x1) << 23) 968c2ecf20Sopenharmony_ci#define G_00000D_FORCE_VIP(x) (((x) >> 23) & 0x1) 978c2ecf20Sopenharmony_ci#define C_00000D_FORCE_VIP 0xFF7FFFFF 988c2ecf20Sopenharmony_ci#define S_00000D_FORCE_RE(x) (((x) & 0x1) << 24) 998c2ecf20Sopenharmony_ci#define G_00000D_FORCE_RE(x) (((x) >> 24) & 0x1) 1008c2ecf20Sopenharmony_ci#define C_00000D_FORCE_RE 0xFEFFFFFF 1018c2ecf20Sopenharmony_ci#define S_00000D_FORCE_PB(x) (((x) & 0x1) << 25) 1028c2ecf20Sopenharmony_ci#define G_00000D_FORCE_PB(x) (((x) >> 25) & 0x1) 1038c2ecf20Sopenharmony_ci#define C_00000D_FORCE_PB 0xFDFFFFFF 1048c2ecf20Sopenharmony_ci#define S_00000D_FORCE_TAM(x) (((x) & 0x1) << 26) 1058c2ecf20Sopenharmony_ci#define G_00000D_FORCE_TAM(x) (((x) >> 26) & 0x1) 1068c2ecf20Sopenharmony_ci#define C_00000D_FORCE_TAM 0xFBFFFFFF 1078c2ecf20Sopenharmony_ci#define S_00000D_FORCE_TDM(x) (((x) & 0x1) << 27) 1088c2ecf20Sopenharmony_ci#define G_00000D_FORCE_TDM(x) (((x) >> 27) & 0x1) 1098c2ecf20Sopenharmony_ci#define C_00000D_FORCE_TDM 0xF7FFFFFF 1108c2ecf20Sopenharmony_ci#define S_00000D_FORCE_RB(x) (((x) & 0x1) << 28) 1118c2ecf20Sopenharmony_ci#define G_00000D_FORCE_RB(x) (((x) >> 28) & 0x1) 1128c2ecf20Sopenharmony_ci#define C_00000D_FORCE_RB 0xEFFFFFFF 1138c2ecf20Sopenharmony_ci#define S_00000D_FORCE_TV_SCLK(x) (((x) & 0x1) << 29) 1148c2ecf20Sopenharmony_ci#define G_00000D_FORCE_TV_SCLK(x) (((x) >> 29) & 0x1) 1158c2ecf20Sopenharmony_ci#define C_00000D_FORCE_TV_SCLK 0xDFFFFFFF 1168c2ecf20Sopenharmony_ci#define S_00000D_FORCE_SUBPIC(x) (((x) & 0x1) << 30) 1178c2ecf20Sopenharmony_ci#define G_00000D_FORCE_SUBPIC(x) (((x) >> 30) & 0x1) 1188c2ecf20Sopenharmony_ci#define C_00000D_FORCE_SUBPIC 0xBFFFFFFF 1198c2ecf20Sopenharmony_ci#define S_00000D_FORCE_OV0(x) (((x) & 0x1) << 31) 1208c2ecf20Sopenharmony_ci#define G_00000D_FORCE_OV0(x) (((x) >> 31) & 0x1) 1218c2ecf20Sopenharmony_ci#define C_00000D_FORCE_OV0 0x7FFFFFFF 1228c2ecf20Sopenharmony_ci 1238c2ecf20Sopenharmony_ci#endif 124