/* SPDX-License-Identifier: GPL-2.0-or-later */

#ifndef K210_SYSCTL_H
#define K210_SYSCTL_H


#define K210_SYSCTL_GIT_ID	0x00 
#define K210_SYSCTL_UART_BAUD	0x04 
#define K210_SYSCTL_PLL0	0x08 
#define K210_SYSCTL_PLL1	0x0C 
#define K210_SYSCTL_PLL2	0x10 
#define K210_SYSCTL_PLL_LOCK	0x18 
#define K210_SYSCTL_ROM_ERROR	0x1C 
#define K210_SYSCTL_SEL0	0x20 
#define K210_SYSCTL_SEL1	0x24 
#define K210_SYSCTL_EN_CENT	0x28 
#define K210_SYSCTL_EN_PERI	0x2C 
#define K210_SYSCTL_SOFT_RESET	0x30 
#define K210_SYSCTL_PERI_RESET	0x34 
#define K210_SYSCTL_THR0	0x38 
#define K210_SYSCTL_THR1	0x3C 
#define K210_SYSCTL_THR2	0x40 
#define K210_SYSCTL_THR3	0x44 
#define K210_SYSCTL_THR4	0x48 
#define K210_SYSCTL_THR5	0x4C 
#define K210_SYSCTL_THR6	0x50 
#define K210_SYSCTL_MISC	0x54 
#define K210_SYSCTL_PERI	0x58 
#define K210_SYSCTL_SPI_SLEEP	0x5C 
#define K210_SYSCTL_RESET_STAT	0x60 
#define K210_SYSCTL_DMA_SEL0	0x64 
#define K210_SYSCTL_DMA_SEL1	0x68 
#define K210_SYSCTL_POWER_SEL	0x6C 

void k210_clk_early_init(void __iomem *regs);

#endif
