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 __RV350D_H__ 298c2ecf20Sopenharmony_ci#define __RV350D_H__ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci/* RV350, RV380 registers */ 328c2ecf20Sopenharmony_ci/* #define R_00000D_SCLK_CNTL 0x00000D */ 338c2ecf20Sopenharmony_ci#define S_00000D_FORCE_VAP(x) (((x) & 0x1) << 21) 348c2ecf20Sopenharmony_ci#define G_00000D_FORCE_VAP(x) (((x) >> 21) & 0x1) 358c2ecf20Sopenharmony_ci#define C_00000D_FORCE_VAP 0xFFDFFFFF 368c2ecf20Sopenharmony_ci#define S_00000D_FORCE_SR(x) (((x) & 0x1) << 25) 378c2ecf20Sopenharmony_ci#define G_00000D_FORCE_SR(x) (((x) >> 25) & 0x1) 388c2ecf20Sopenharmony_ci#define C_00000D_FORCE_SR 0xFDFFFFFF 398c2ecf20Sopenharmony_ci#define S_00000D_FORCE_PX(x) (((x) & 0x1) << 26) 408c2ecf20Sopenharmony_ci#define G_00000D_FORCE_PX(x) (((x) >> 26) & 0x1) 418c2ecf20Sopenharmony_ci#define C_00000D_FORCE_PX 0xFBFFFFFF 428c2ecf20Sopenharmony_ci#define S_00000D_FORCE_TX(x) (((x) & 0x1) << 27) 438c2ecf20Sopenharmony_ci#define G_00000D_FORCE_TX(x) (((x) >> 27) & 0x1) 448c2ecf20Sopenharmony_ci#define C_00000D_FORCE_TX 0xF7FFFFFF 458c2ecf20Sopenharmony_ci#define S_00000D_FORCE_US(x) (((x) & 0x1) << 28) 468c2ecf20Sopenharmony_ci#define G_00000D_FORCE_US(x) (((x) >> 28) & 0x1) 478c2ecf20Sopenharmony_ci#define C_00000D_FORCE_US 0xEFFFFFFF 488c2ecf20Sopenharmony_ci#define S_00000D_FORCE_SU(x) (((x) & 0x1) << 30) 498c2ecf20Sopenharmony_ci#define G_00000D_FORCE_SU(x) (((x) >> 30) & 0x1) 508c2ecf20Sopenharmony_ci#define C_00000D_FORCE_SU 0xBFFFFFFF 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci#endif 53