Merge tag 'trace-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux/fpc-iii.git] / drivers / clk / sunxi-ng / ccu-sun6i-a31.h
blob3ed2a59b0dc6ef53825d80044ac5c2ec51576512
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright 2016 Chen-Yu Tsai
5 * Chen-Yu Tsai <wens@csie.org>
6 */
8 #ifndef _CCU_SUN6I_A31_H_
9 #define _CCU_SUN6I_A31_H_
11 #include <dt-bindings/clock/sun6i-a31-ccu.h>
12 #include <dt-bindings/reset/sun6i-a31-ccu.h>
14 #define CLK_PLL_CPU 0
15 #define CLK_PLL_AUDIO_BASE 1
16 #define CLK_PLL_AUDIO 2
17 #define CLK_PLL_AUDIO_2X 3
18 #define CLK_PLL_AUDIO_4X 4
19 #define CLK_PLL_AUDIO_8X 5
20 #define CLK_PLL_VIDEO0 6
22 /* The PLL_VIDEO0_2X clock is exported */
24 #define CLK_PLL_VE 8
25 #define CLK_PLL_DDR 9
27 /* The PLL_PERIPH clock is exported */
29 #define CLK_PLL_PERIPH_2X 11
30 #define CLK_PLL_VIDEO1 12
32 /* The PLL_VIDEO1_2X clock is exported */
34 #define CLK_PLL_GPU 14
36 /* The PLL_VIDEO1_2X clock is exported */
38 #define CLK_PLL9 16
39 #define CLK_PLL10 17
41 /* The CPUX clock is exported */
43 #define CLK_AXI 19
44 #define CLK_AHB1 20
45 #define CLK_APB1 21
46 #define CLK_APB2 22
48 /* All the bus gates are exported */
50 /* The first bunch of module clocks are exported */
52 /* EMAC clock is not implemented */
54 #define CLK_MDFS 107
55 #define CLK_SDRAM0 108
56 #define CLK_SDRAM1 109
58 /* All the DRAM gates are exported */
60 /* Some more module clocks are exported */
62 #define CLK_MBUS0 141
63 #define CLK_MBUS1 142
65 /* Some more module clocks and external clock outputs are exported */
67 #define CLK_NUMBER (CLK_OUT_C + 1)
69 #endif /* _CCU_SUN6I_A31_H_ */