blob: b6e2680ef35411567c754a6ed1ebd7cd71fb2952 [file] [log] [blame]
Thomas Gleixnerc942fdd2019-05-27 08:55:06 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Maxime Ripard0577e482016-06-29 21:05:34 +02002/*
3 * Copyright 2016 Maxime Ripard
4 *
5 * Maxime Ripard <maxime.ripard@free-electrons.com>
Maxime Ripard0577e482016-06-29 21:05:34 +02006 */
7
8#ifndef _CCU_SUN8I_H3_H_
9#define _CCU_SUN8I_H3_H_
10
11#include <dt-bindings/clock/sun8i-h3-ccu.h>
12#include <dt-bindings/reset/sun8i-h3-ccu.h>
13
14#define CLK_PLL_CPUX 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
Jernej Skrabec55de0f32018-03-01 22:34:30 +010020
21/* PLL_VIDEO is exported */
22
Maxime Ripard0577e482016-06-29 21:05:34 +020023#define CLK_PLL_VE 7
24#define CLK_PLL_DDR 8
Chen-Yu Tsaic4be8c62017-05-31 15:58:21 +080025
26/* PLL_PERIPH0 exported for PRCM */
27
Maxime Ripard0577e482016-06-29 21:05:34 +020028#define CLK_PLL_PERIPH0_2X 10
29#define CLK_PLL_GPU 11
30#define CLK_PLL_PERIPH1 12
31#define CLK_PLL_DE 13
32
33/* The CPUX clock is exported */
34
35#define CLK_AXI 15
36#define CLK_AHB1 16
37#define CLK_APB1 17
38#define CLK_APB2 18
39#define CLK_AHB2 19
40
41/* All the bus gates are exported */
42
43/* The first bunch of module clocks are exported */
44
45#define CLK_DRAM 96
46
47/* All the DRAM gates are exported */
48
49/* Some more module clocks are exported */
50
51#define CLK_MBUS 113
52
53/* And the GPU module clock is exported */
54
Icenowy Zheng9be1c8a2017-03-02 04:13:39 +080055#define CLK_NUMBER_H3 (CLK_GPU + 1)
56#define CLK_NUMBER_H5 (CLK_BUS_SCR1 + 1)
Maxime Ripard0577e482016-06-29 21:05:34 +020057
58#endif /* _CCU_SUN8I_H3_H_ */