1*926deccbSFrançois Tigeot /* 2*926deccbSFrançois Tigeot * Copyright 2008 Advanced Micro Devices, Inc. 3*926deccbSFrançois Tigeot * Copyright 2008 Red Hat Inc. 4*926deccbSFrançois Tigeot * Copyright 2009 Jerome Glisse. 5*926deccbSFrançois Tigeot * 6*926deccbSFrançois Tigeot * Permission is hereby granted, free of charge, to any person obtaining a 7*926deccbSFrançois Tigeot * copy of this software and associated documentation files (the "Software"), 8*926deccbSFrançois Tigeot * to deal in the Software without restriction, including without limitation 9*926deccbSFrançois Tigeot * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10*926deccbSFrançois Tigeot * and/or sell copies of the Software, and to permit persons to whom the 11*926deccbSFrançois Tigeot * Software is furnished to do so, subject to the following conditions: 12*926deccbSFrançois Tigeot * 13*926deccbSFrançois Tigeot * The above copyright notice and this permission notice shall be included in 14*926deccbSFrançois Tigeot * all copies or substantial portions of the Software. 15*926deccbSFrançois Tigeot * 16*926deccbSFrançois Tigeot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17*926deccbSFrançois Tigeot * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18*926deccbSFrançois Tigeot * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19*926deccbSFrançois Tigeot * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 20*926deccbSFrançois Tigeot * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21*926deccbSFrançois Tigeot * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22*926deccbSFrançois Tigeot * OTHER DEALINGS IN THE SOFTWARE. 23*926deccbSFrançois Tigeot * 24*926deccbSFrançois Tigeot * Authors: Dave Airlie 25*926deccbSFrançois Tigeot * Alex Deucher 26*926deccbSFrançois Tigeot * Jerome Glisse 27*926deccbSFrançois Tigeot */ 28*926deccbSFrançois Tigeot #ifndef __RV350D_H__ 29*926deccbSFrançois Tigeot #define __RV350D_H__ 30*926deccbSFrançois Tigeot 31*926deccbSFrançois Tigeot /* RV350, RV380 registers */ 32*926deccbSFrançois Tigeot /* #define R_00000D_SCLK_CNTL 0x00000D */ 33*926deccbSFrançois Tigeot #define S_00000D_FORCE_VAP(x) (((x) & 0x1) << 21) 34*926deccbSFrançois Tigeot #define G_00000D_FORCE_VAP(x) (((x) >> 21) & 0x1) 35*926deccbSFrançois Tigeot #define C_00000D_FORCE_VAP 0xFFDFFFFF 36*926deccbSFrançois Tigeot #define S_00000D_FORCE_SR(x) (((x) & 0x1) << 25) 37*926deccbSFrançois Tigeot #define G_00000D_FORCE_SR(x) (((x) >> 25) & 0x1) 38*926deccbSFrançois Tigeot #define C_00000D_FORCE_SR 0xFDFFFFFF 39*926deccbSFrançois Tigeot #define S_00000D_FORCE_PX(x) (((x) & 0x1) << 26) 40*926deccbSFrançois Tigeot #define G_00000D_FORCE_PX(x) (((x) >> 26) & 0x1) 41*926deccbSFrançois Tigeot #define C_00000D_FORCE_PX 0xFBFFFFFF 42*926deccbSFrançois Tigeot #define S_00000D_FORCE_TX(x) (((x) & 0x1) << 27) 43*926deccbSFrançois Tigeot #define G_00000D_FORCE_TX(x) (((x) >> 27) & 0x1) 44*926deccbSFrançois Tigeot #define C_00000D_FORCE_TX 0xF7FFFFFF 45*926deccbSFrançois Tigeot #define S_00000D_FORCE_US(x) (((x) & 0x1) << 28) 46*926deccbSFrançois Tigeot #define G_00000D_FORCE_US(x) (((x) >> 28) & 0x1) 47*926deccbSFrançois Tigeot #define C_00000D_FORCE_US 0xEFFFFFFF 48*926deccbSFrançois Tigeot #define S_00000D_FORCE_SU(x) (((x) & 0x1) << 30) 49*926deccbSFrançois Tigeot #define G_00000D_FORCE_SU(x) (((x) >> 30) & 0x1) 50*926deccbSFrançois Tigeot #define C_00000D_FORCE_SU 0xBFFFFFFF 51*926deccbSFrançois Tigeot 52*926deccbSFrançois Tigeot #endif 53