aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/sunxi-ng/ccu-sun8i-a83t.h
blob: d67edaf76748be05029cb9ec72247fc86fe41697 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 * Copyright 2016 Chen-Yu Tsai
 *
 * Chen-Yu Tsai <wens@csie.org>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifndef _CCU_SUN8I_A83T_H_
#define _CCU_SUN8I_A83T_H_

#include <dt-bindings/clock/sun8i-a83t-ccu.h>
#include <dt-bindings/reset/sun8i-a83t-ccu.h>

#define CLK_PLL_C0CPUX		0
#define CLK_PLL_C1CPUX		1
#define CLK_PLL_AUDIO		2
#define CLK_PLL_VIDEO0		3
#define CLK_PLL_VE		4
#define CLK_PLL_DDR		5

/* pll-periph is exported to the PRCM block */

#define CLK_PLL_GPU		7
#define CLK_PLL_HSIC		8

/* pll-de is exported for the display engine */

#define CLK_PLL_VIDEO1		10

/* The CPUX clocks are exported */

#define CLK_AXI0		13
#define CLK_AXI1		14
#define CLK_AHB1		15
#define CLK_AHB2		16
#define CLK_APB1		17
#define CLK_APB2		18

/* bus gates exported */

#define CLK_CCI400		58

/* module and usb clocks exported */

#define CLK_DRAM		82

/* dram gates and more module clocks exported */

#define CLK_MBUS		95

/* more module clocks exported */

#define CLK_NUMBER		(CLK_GPU_HYD + 1)

#endif /* _CCU_SUN8I_A83T_H_ */