xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,gpucc-sm8150.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 */
2*c66ec88fSEmmanuel Vadot /*
3*c66ec88fSEmmanuel Vadot  * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
4*c66ec88fSEmmanuel Vadot  */
5*c66ec88fSEmmanuel Vadot 
6*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_GPU_CC_SM8150_H
7*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_GPU_CC_SM8150_H
8*c66ec88fSEmmanuel Vadot 
9*c66ec88fSEmmanuel Vadot /* GPU_CC clock registers */
10*c66ec88fSEmmanuel Vadot #define GPU_CC_AHB_CLK				0
11*c66ec88fSEmmanuel Vadot #define GPU_CC_CRC_AHB_CLK			1
12*c66ec88fSEmmanuel Vadot #define GPU_CC_CX_APB_CLK			2
13*c66ec88fSEmmanuel Vadot #define GPU_CC_CX_GMU_CLK			3
14*c66ec88fSEmmanuel Vadot #define GPU_CC_CX_SNOC_DVM_CLK			4
15*c66ec88fSEmmanuel Vadot #define GPU_CC_CXO_AON_CLK			5
16*c66ec88fSEmmanuel Vadot #define GPU_CC_CXO_CLK				6
17*c66ec88fSEmmanuel Vadot #define GPU_CC_GMU_CLK_SRC			7
18*c66ec88fSEmmanuel Vadot #define GPU_CC_GX_GMU_CLK			8
19*c66ec88fSEmmanuel Vadot #define GPU_CC_PLL1				9
20*c66ec88fSEmmanuel Vadot 
21*c66ec88fSEmmanuel Vadot /* GPU_CC Resets */
22*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_CX_BCR			0
23*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_GFX3D_AON_BCR		1
24*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_GMU_BCR			2
25*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_GX_BCR			3
26*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_SPDM_BCR			4
27*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_XO_BCR			5
28*c66ec88fSEmmanuel Vadot 
29*c66ec88fSEmmanuel Vadot /* GPU_CC GDSCRs */
30*c66ec88fSEmmanuel Vadot #define GPU_CX_GDSC				0
31*c66ec88fSEmmanuel Vadot #define GPU_GX_GDSC				1
32*c66ec88fSEmmanuel Vadot 
33*c66ec88fSEmmanuel Vadot #endif
34