xref: /linux/drivers/clk/sunxi-ng/ccu-sun8i-v3s.h (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1c942fddfSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
2d0f11d14SIcenowy Zheng /*
3d0f11d14SIcenowy Zheng  * Copyright (c) 2016 Icenowy Zheng <icenowy@aosc.xyz>
4d0f11d14SIcenowy Zheng  *
5d0f11d14SIcenowy Zheng  * Based on ccu-sun8i-h3.h, which is:
6d0f11d14SIcenowy Zheng  * Copyright (c) 2016 Maxime Ripard <maxime.ripard@free-electrons.com>
7d0f11d14SIcenowy Zheng  */
8d0f11d14SIcenowy Zheng 
9*d550f6b0SWei Li #ifndef _CCU_SUN8I_V3S_H_
10*d550f6b0SWei Li #define _CCU_SUN8I_V3S_H_
11d0f11d14SIcenowy Zheng 
12d0f11d14SIcenowy Zheng #include <dt-bindings/clock/sun8i-v3s-ccu.h>
13d0f11d14SIcenowy Zheng #include <dt-bindings/reset/sun8i-v3s-ccu.h>
14d0f11d14SIcenowy Zheng 
15d0f11d14SIcenowy Zheng #define CLK_PLL_CPU		0
16d0f11d14SIcenowy Zheng #define CLK_PLL_AUDIO_BASE	1
17d0f11d14SIcenowy Zheng #define CLK_PLL_AUDIO		2
18d0f11d14SIcenowy Zheng #define CLK_PLL_AUDIO_2X	3
19d0f11d14SIcenowy Zheng #define CLK_PLL_AUDIO_4X	4
20d0f11d14SIcenowy Zheng #define CLK_PLL_AUDIO_8X	5
21d0f11d14SIcenowy Zheng #define CLK_PLL_VIDEO		6
22d0f11d14SIcenowy Zheng #define CLK_PLL_VE		7
23c5ed9475SIcenowy Zheng #define CLK_PLL_DDR0		8
24d0f11d14SIcenowy Zheng #define CLK_PLL_PERIPH0		9
25d0f11d14SIcenowy Zheng #define CLK_PLL_PERIPH0_2X	10
26d0f11d14SIcenowy Zheng #define CLK_PLL_ISP		11
27d0f11d14SIcenowy Zheng #define CLK_PLL_PERIPH1		12
28d0f11d14SIcenowy Zheng /* Reserve one number for not implemented and not used PLL_DDR1 */
29d0f11d14SIcenowy Zheng 
30d0f11d14SIcenowy Zheng /* The CPU clock is exported */
31d0f11d14SIcenowy Zheng 
32d0f11d14SIcenowy Zheng #define CLK_AXI			15
33d0f11d14SIcenowy Zheng #define CLK_AHB1		16
34d0f11d14SIcenowy Zheng #define CLK_APB1		17
35d0f11d14SIcenowy Zheng #define CLK_APB2		18
36d0f11d14SIcenowy Zheng #define CLK_AHB2		19
37d0f11d14SIcenowy Zheng 
38d0f11d14SIcenowy Zheng /* All the bus gates are exported */
39d0f11d14SIcenowy Zheng 
40d0f11d14SIcenowy Zheng /* The first bunch of module clocks are exported */
41d0f11d14SIcenowy Zheng 
42d0f11d14SIcenowy Zheng #define CLK_DRAM		58
43d0f11d14SIcenowy Zheng 
44d0f11d14SIcenowy Zheng /* All the DRAM gates are exported */
45d0f11d14SIcenowy Zheng 
46d0f11d14SIcenowy Zheng /* Some more module clocks are exported */
47d0f11d14SIcenowy Zheng 
48d0f11d14SIcenowy Zheng #define CLK_MBUS		72
49d0f11d14SIcenowy Zheng 
50d0f11d14SIcenowy Zheng /* And the GPU module clock is exported */
51d0f11d14SIcenowy Zheng 
52c5ed9475SIcenowy Zheng #define CLK_PLL_DDR1		74
53c5ed9475SIcenowy Zheng 
54*d550f6b0SWei Li #endif /* _CCU_SUN8I_V3S_H_ */
55