Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / clk / sunxi-ng / ccu-sun8i-v3s.h
blob108eeeedcbf7602dfbe55b40624ccae9786b27d0
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
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>
7 */
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>
15 #define CLK_PLL_CPU 0
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
22 #define CLK_PLL_VE 7
23 #define CLK_PLL_DDR0 8
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 */
32 #define CLK_AXI 15
33 #define CLK_AHB1 16
34 #define CLK_APB1 17
35 #define CLK_APB2 18
36 #define CLK_AHB2 19
38 /* All the bus gates are exported */
40 /* The first bunch of module clocks are exported */
42 #define CLK_DRAM 58
44 /* All the DRAM gates are exported */
46 /* Some more module clocks are exported */
48 #define CLK_MBUS 72
50 /* And the GPU module clock is exported */
52 #define CLK_PLL_DDR1 74
54 #endif /* _CCU_SUN8I_H3_H_ */