linux/drivers/clk/sunxi-ng/ccu-sun50i-h616.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright 2020 Arm Ltd.
 */

#ifndef _CCU_SUN50I_H616_H_
#define _CCU_SUN50I_H616_H_

#include <dt-bindings/clock/sun50i-h616-ccu.h>
#include <dt-bindings/reset/sun50i-h616-ccu.h>

#define CLK_OSC12M
#define CLK_PLL_CPUX
#define CLK_PLL_DDR0
#define CLK_PLL_DDR1

/* PLL_PERIPH0 exported for PRCM */

#define CLK_PLL_PERIPH0_2X
#define CLK_PLL_PERIPH1
#define CLK_PLL_PERIPH1_2X
#define CLK_PLL_GPU
#define CLK_PLL_VIDEO0
#define CLK_PLL_VIDEO0_4X
#define CLK_PLL_VIDEO1
#define CLK_PLL_VIDEO1_4X
#define CLK_PLL_VIDEO2
#define CLK_PLL_VIDEO2_4X
#define CLK_PLL_VE
#define CLK_PLL_DE
#define CLK_PLL_AUDIO_HS
#define CLK_PLL_AUDIO_1X
#define CLK_PLL_AUDIO_2X
#define CLK_PLL_AUDIO_4X

/* CPUX clock exported for DVFS */

#define CLK_AXI
#define CLK_CPUX_APB
#define CLK_PSI_AHB1_AHB2
#define CLK_AHB3

/* APB1 clock exported for PIO */

#define CLK_APB2
#define CLK_MBUS

/* All module clocks and bus gates are exported except DRAM */

#define CLK_DRAM

#define CLK_BUS_DRAM

#define CLK_NUMBER

#endif /* _CCU_SUN50I_H616_H_ */