linux/include/soc/canaan/k210-sysctl.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2019-20 Sean Anderson <[email protected]>
 * Copyright (c) 2020 Western Digital Corporation or its affiliates.
 */
#ifndef K210_SYSCTL_H
#define K210_SYSCTL_H

/*
 * Kendryte K210 SoC system controller registers offsets.
 * Taken from Kendryte SDK (kendryte-standalone-sdk).
 */
#define K210_SYSCTL_GIT_ID
#define K210_SYSCTL_UART_BAUD
#define K210_SYSCTL_PLL0
#define K210_SYSCTL_PLL1
#define K210_SYSCTL_PLL2
#define K210_SYSCTL_PLL_LOCK
#define K210_SYSCTL_ROM_ERROR
#define K210_SYSCTL_SEL0
#define K210_SYSCTL_SEL1
#define K210_SYSCTL_EN_CENT
#define K210_SYSCTL_EN_PERI
#define K210_SYSCTL_SOFT_RESET
#define K210_SYSCTL_PERI_RESET
#define K210_SYSCTL_THR0
#define K210_SYSCTL_THR1
#define K210_SYSCTL_THR2
#define K210_SYSCTL_THR3
#define K210_SYSCTL_THR4
#define K210_SYSCTL_THR5
#define K210_SYSCTL_THR6
#define K210_SYSCTL_MISC
#define K210_SYSCTL_PERI
#define K210_SYSCTL_SPI_SLEEP
#define K210_SYSCTL_RESET_STAT
#define K210_SYSCTL_DMA_SEL0
#define K210_SYSCTL_DMA_SEL1
#define K210_SYSCTL_POWER_SEL

void k210_clk_early_init(void __iomem *regs);

#endif