xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/qcom,videocc-sm8250.h (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
16be33864SEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0-only */
26be33864SEmmanuel Vadot /*
36be33864SEmmanuel Vadot  * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
46be33864SEmmanuel Vadot  */
56be33864SEmmanuel Vadot 
66be33864SEmmanuel Vadot #ifndef _DT_BINDINGS_CLK_QCOM_VIDEO_CC_SM8250_H
76be33864SEmmanuel Vadot #define _DT_BINDINGS_CLK_QCOM_VIDEO_CC_SM8250_H
86be33864SEmmanuel Vadot 
96be33864SEmmanuel Vadot /* VIDEO_CC clocks */
106be33864SEmmanuel Vadot #define VIDEO_CC_MVS0_CLK_SRC		0
116be33864SEmmanuel Vadot #define VIDEO_CC_MVS0C_CLK		1
126be33864SEmmanuel Vadot #define VIDEO_CC_MVS0C_DIV2_DIV_CLK_SRC	2
136be33864SEmmanuel Vadot #define VIDEO_CC_MVS1_CLK_SRC		3
146be33864SEmmanuel Vadot #define VIDEO_CC_MVS1_DIV2_CLK		4
156be33864SEmmanuel Vadot #define VIDEO_CC_MVS1C_CLK		5
166be33864SEmmanuel Vadot #define VIDEO_CC_MVS1C_DIV2_DIV_CLK_SRC	6
176be33864SEmmanuel Vadot #define VIDEO_CC_PLL0			7
186be33864SEmmanuel Vadot #define VIDEO_CC_PLL1			8
19*5def4c47SEmmanuel Vadot #define VIDEO_CC_MVS0_DIV_CLK_SRC	9
20*5def4c47SEmmanuel Vadot #define VIDEO_CC_MVS0_CLK		10
216be33864SEmmanuel Vadot 
226be33864SEmmanuel Vadot /* VIDEO_CC resets */
236be33864SEmmanuel Vadot #define VIDEO_CC_CVP_INTERFACE_BCR	0
246be33864SEmmanuel Vadot #define VIDEO_CC_CVP_MVS0_BCR		1
256be33864SEmmanuel Vadot #define VIDEO_CC_MVS0C_CLK_ARES		2
266be33864SEmmanuel Vadot #define VIDEO_CC_CVP_MVS0C_BCR		3
276be33864SEmmanuel Vadot #define VIDEO_CC_CVP_MVS1_BCR		4
286be33864SEmmanuel Vadot #define VIDEO_CC_MVS1C_CLK_ARES		5
296be33864SEmmanuel Vadot #define VIDEO_CC_CVP_MVS1C_BCR		6
306be33864SEmmanuel Vadot 
316be33864SEmmanuel Vadot #define MVS0C_GDSC			0
326be33864SEmmanuel Vadot #define MVS1C_GDSC			1
336be33864SEmmanuel Vadot #define MVS0_GDSC			2
346be33864SEmmanuel Vadot #define MVS1_GDSC			3
356be33864SEmmanuel Vadot 
366be33864SEmmanuel Vadot #endif
37