xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,videocc-sdm845.h (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 */
2*c66ec88fSEmmanuel Vadot /*
3*c66ec88fSEmmanuel Vadot  * Copyright (c) 2018, The Linux Foundation. All rights reserved.
4*c66ec88fSEmmanuel Vadot  */
5*c66ec88fSEmmanuel Vadot 
6*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_SDM_VIDEO_CC_SDM845_H
7*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_CLK_SDM_VIDEO_CC_SDM845_H
8*c66ec88fSEmmanuel Vadot 
9*c66ec88fSEmmanuel Vadot /* VIDEO_CC clock registers */
10*c66ec88fSEmmanuel Vadot #define VIDEO_CC_APB_CLK		0
11*c66ec88fSEmmanuel Vadot #define VIDEO_CC_AT_CLK			1
12*c66ec88fSEmmanuel Vadot #define VIDEO_CC_QDSS_TRIG_CLK		2
13*c66ec88fSEmmanuel Vadot #define VIDEO_CC_QDSS_TSCTR_DIV8_CLK	3
14*c66ec88fSEmmanuel Vadot #define VIDEO_CC_VCODEC0_AXI_CLK	4
15*c66ec88fSEmmanuel Vadot #define VIDEO_CC_VCODEC0_CORE_CLK	5
16*c66ec88fSEmmanuel Vadot #define VIDEO_CC_VCODEC1_AXI_CLK	6
17*c66ec88fSEmmanuel Vadot #define VIDEO_CC_VCODEC1_CORE_CLK	7
18*c66ec88fSEmmanuel Vadot #define VIDEO_CC_VENUS_AHB_CLK		8
19*c66ec88fSEmmanuel Vadot #define VIDEO_CC_VENUS_CLK_SRC		9
20*c66ec88fSEmmanuel Vadot #define VIDEO_CC_VENUS_CTL_AXI_CLK	10
21*c66ec88fSEmmanuel Vadot #define VIDEO_CC_VENUS_CTL_CORE_CLK	11
22*c66ec88fSEmmanuel Vadot #define VIDEO_PLL0			12
23*c66ec88fSEmmanuel Vadot 
24*c66ec88fSEmmanuel Vadot /* VIDEO_CC Resets */
25*c66ec88fSEmmanuel Vadot #define VIDEO_CC_VENUS_BCR		0
26*c66ec88fSEmmanuel Vadot #define VIDEO_CC_VCODEC0_BCR		1
27*c66ec88fSEmmanuel Vadot #define VIDEO_CC_VCODEC1_BCR		2
28*c66ec88fSEmmanuel Vadot #define VIDEO_CC_INTERFACE_BCR		3
29*c66ec88fSEmmanuel Vadot 
30*c66ec88fSEmmanuel Vadot /* VIDEO_CC GDSCRs */
31*c66ec88fSEmmanuel Vadot #define VENUS_GDSC			0
32*c66ec88fSEmmanuel Vadot #define VCODEC0_GDSC			1
33*c66ec88fSEmmanuel Vadot #define VCODEC1_GDSC			2
34*c66ec88fSEmmanuel Vadot 
35*c66ec88fSEmmanuel Vadot #endif
36