xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,gpucc-sm8250.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_SM8250_H
7*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_GPU_CC_SM8250_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 #define GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK		10
21*c66ec88fSEmmanuel Vadot 
22*c66ec88fSEmmanuel Vadot /* GPU_CC Resets */
23*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_ACD_BCR			0
24*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_CX_BCR			1
25*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_GFX3D_AON_BCR		2
26*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_GMU_BCR			3
27*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_GX_BCR			4
28*c66ec88fSEmmanuel Vadot #define GPUCC_GPU_CC_XO_BCR			5
29*c66ec88fSEmmanuel Vadot 
30*c66ec88fSEmmanuel Vadot /* GPU_CC GDSCRs */
31*c66ec88fSEmmanuel Vadot #define GPU_CX_GDSC				0
32*c66ec88fSEmmanuel Vadot #define GPU_GX_GDSC				1
33*c66ec88fSEmmanuel Vadot 
34*c66ec88fSEmmanuel Vadot #endif
35