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_SUN8I_A83T_H_
98c2ecf20Sopenharmony_ci#define _CCU_SUN8I_A83T_H_
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#include <dt-bindings/clock/sun8i-a83t-ccu.h>
128c2ecf20Sopenharmony_ci#include <dt-bindings/reset/sun8i-a83t-ccu.h>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define CLK_PLL_C0CPUX		0
158c2ecf20Sopenharmony_ci#define CLK_PLL_C1CPUX		1
168c2ecf20Sopenharmony_ci#define CLK_PLL_AUDIO		2
178c2ecf20Sopenharmony_ci#define CLK_PLL_VIDEO0		3
188c2ecf20Sopenharmony_ci#define CLK_PLL_VE		4
198c2ecf20Sopenharmony_ci#define CLK_PLL_DDR		5
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci/* pll-periph is exported to the PRCM block */
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#define CLK_PLL_GPU		7
248c2ecf20Sopenharmony_ci#define CLK_PLL_HSIC		8
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci/* pll-de is exported for the display engine */
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#define CLK_PLL_VIDEO1		10
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci/* The CPUX clocks are exported */
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#define CLK_AXI0		13
338c2ecf20Sopenharmony_ci#define CLK_AXI1		14
348c2ecf20Sopenharmony_ci#define CLK_AHB1		15
358c2ecf20Sopenharmony_ci#define CLK_AHB2		16
368c2ecf20Sopenharmony_ci#define CLK_APB1		17
378c2ecf20Sopenharmony_ci#define CLK_APB2		18
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci/* bus gates exported */
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci#define CLK_CCI400		58
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci/* module and usb clocks exported */
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci#define CLK_DRAM		82
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci/* dram gates and more module clocks exported */
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci#define CLK_MBUS		95
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci/* more module clocks exported */
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci#define CLK_NUMBER		(CLK_GPU_HYD + 1)
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci#endif /* _CCU_SUN8I_A83T_H_ */
56