18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright 2016 Icenowy Zheng <icenowy@aosc.io>
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _CCU_SUN50I_H6_H_
78c2ecf20Sopenharmony_ci#define _CCU_SUN50I_H6_H_
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <dt-bindings/clock/sun50i-h6-ccu.h>
108c2ecf20Sopenharmony_ci#include <dt-bindings/reset/sun50i-h6-ccu.h>
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define CLK_OSC12M		0
138c2ecf20Sopenharmony_ci#define CLK_PLL_CPUX		1
148c2ecf20Sopenharmony_ci#define CLK_PLL_DDR0		2
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci/* PLL_PERIPH0 exported for PRCM */
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#define CLK_PLL_PERIPH0_2X	4
198c2ecf20Sopenharmony_ci#define CLK_PLL_PERIPH0_4X	5
208c2ecf20Sopenharmony_ci#define CLK_PLL_PERIPH1		6
218c2ecf20Sopenharmony_ci#define CLK_PLL_PERIPH1_2X	7
228c2ecf20Sopenharmony_ci#define CLK_PLL_PERIPH1_4X	8
238c2ecf20Sopenharmony_ci#define CLK_PLL_GPU		9
248c2ecf20Sopenharmony_ci#define CLK_PLL_VIDEO0		10
258c2ecf20Sopenharmony_ci#define CLK_PLL_VIDEO0_4X	11
268c2ecf20Sopenharmony_ci#define CLK_PLL_VIDEO1		12
278c2ecf20Sopenharmony_ci#define CLK_PLL_VIDEO1_4X	13
288c2ecf20Sopenharmony_ci#define CLK_PLL_VE		14
298c2ecf20Sopenharmony_ci#define CLK_PLL_DE		15
308c2ecf20Sopenharmony_ci#define CLK_PLL_HSIC		16
318c2ecf20Sopenharmony_ci#define CLK_PLL_AUDIO_BASE	17
328c2ecf20Sopenharmony_ci#define CLK_PLL_AUDIO		18
338c2ecf20Sopenharmony_ci#define CLK_PLL_AUDIO_2X	19
348c2ecf20Sopenharmony_ci#define CLK_PLL_AUDIO_4X	20
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci/* CPUX clock exported for DVFS */
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci#define CLK_AXI			22
398c2ecf20Sopenharmony_ci#define CLK_CPUX_APB		23
408c2ecf20Sopenharmony_ci#define CLK_PSI_AHB1_AHB2	24
418c2ecf20Sopenharmony_ci#define CLK_AHB3		25
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci/* APB1 clock exported for PIO */
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci#define CLK_APB2		27
468c2ecf20Sopenharmony_ci#define CLK_MBUS		28
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci/* All module clocks and bus gates are exported except DRAM */
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci#define CLK_DRAM		52
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci#define CLK_BUS_DRAM		60
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci#define CLK_NUMBER		(CLK_BUS_HDCP + 1)
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci#endif /* _CCU_SUN50I_H6_H_ */
57