18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright 2016 Chen-Yu Tsai
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Chen-Yu Tsai <wens@csie.org>
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef _CCU_SUN6I_A31_H_
98c2ecf20Sopenharmony_ci#define _CCU_SUN6I_A31_H_
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <dt-bindings/clock/sun6i-a31-ccu.h>
128c2ecf20Sopenharmony_ci#include <dt-bindings/reset/sun6i-a31-ccu.h>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define CLK_PLL_CPU		0
158c2ecf20Sopenharmony_ci#define CLK_PLL_AUDIO_BASE	1
168c2ecf20Sopenharmony_ci#define CLK_PLL_AUDIO		2
178c2ecf20Sopenharmony_ci#define CLK_PLL_AUDIO_2X	3
188c2ecf20Sopenharmony_ci#define CLK_PLL_AUDIO_4X	4
198c2ecf20Sopenharmony_ci#define CLK_PLL_AUDIO_8X	5
208c2ecf20Sopenharmony_ci#define CLK_PLL_VIDEO0		6
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci/* The PLL_VIDEO0_2X clock is exported */
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#define CLK_PLL_VE		8
258c2ecf20Sopenharmony_ci#define CLK_PLL_DDR		9
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci/* The PLL_PERIPH clock is exported */
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#define CLK_PLL_PERIPH_2X	11
308c2ecf20Sopenharmony_ci#define CLK_PLL_VIDEO1		12
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci/* The PLL_VIDEO1_2X clock is exported */
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#define CLK_PLL_GPU		14
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci/* The PLL_VIDEO1_2X clock is exported */
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci#define CLK_PLL9		16
398c2ecf20Sopenharmony_ci#define CLK_PLL10		17
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci/* The CPUX clock is exported */
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci#define CLK_AXI			19
448c2ecf20Sopenharmony_ci#define CLK_AHB1		20
458c2ecf20Sopenharmony_ci#define CLK_APB1		21
468c2ecf20Sopenharmony_ci#define CLK_APB2		22
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci/* All the bus gates are exported */
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci/* The first bunch of module clocks are exported */
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci/* EMAC clock is not implemented */
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci#define CLK_MDFS		107
558c2ecf20Sopenharmony_ci#define CLK_SDRAM0		108
568c2ecf20Sopenharmony_ci#define CLK_SDRAM1		109
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci/* All the DRAM gates are exported */
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci/* Some more module clocks are exported */
618c2ecf20Sopenharmony_ci
628c2ecf20Sopenharmony_ci#define CLK_MBUS0		141
638c2ecf20Sopenharmony_ci#define CLK_MBUS1		142
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci/* Some more module clocks and external clock outputs are exported */
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci#define CLK_NUMBER		(CLK_OUT_C + 1)
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ci#endif /* _CCU_SUN6I_A31_H_ */
70