1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2016 Icenowy Zheng <icenowy@aosc.xyz>
5 * Based on ccu-sun8i-h3.h, which is:
6 * Copyright (c) 2016 Maxime Ripard <maxime.ripard@free-electrons.com>
9 #ifndef _CCU_SUN8I_H3_H_
10 #define _CCU_SUN8I_H3_H_
12 #include <dt-bindings/clock/sun8i-v3s-ccu.h>
13 #include <dt-bindings/reset/sun8i-v3s-ccu.h>
16 #define CLK_PLL_AUDIO_BASE 1
17 #define CLK_PLL_AUDIO 2
18 #define CLK_PLL_AUDIO_2X 3
19 #define CLK_PLL_AUDIO_4X 4
20 #define CLK_PLL_AUDIO_8X 5
21 #define CLK_PLL_VIDEO 6
24 #define CLK_PLL_PERIPH0 9
25 #define CLK_PLL_PERIPH0_2X 10
26 #define CLK_PLL_ISP 11
27 #define CLK_PLL_PERIPH1 12
28 /* Reserve one number for not implemented and not used PLL_DDR1 */
30 /* The CPU clock is exported */
38 /* All the bus gates are exported */
40 /* The first bunch of module clocks are exported */
44 /* All the DRAM gates are exported */
46 /* Some more module clocks are exported */
50 /* And the GPU module clock is exported */
52 #define CLK_NUMBER (CLK_MIPI_CSI + 1)
54 #endif /* _CCU_SUN8I_H3_H_ */