mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-04 02:20:25 +00:00
644a3cd77e
This adds U-Boot syscon driver for SiFive's Core Local Interruptor (CLINT). The CLINT block holds memory-mapped control and status registers associated with software and timer interrupts. This driver implements the riscv_get_time() API as required by the generic RISC-V timer driver, as well as some other APIs that are needed for handling IPI. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Reviewed-by: Anup Patel <anup@brainfault.org>
19 lines
373 B
C
19 lines
373 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
|
|
*/
|
|
|
|
#ifndef _ASM_SYSCON_H
|
|
#define _ASM_SYSCON_H
|
|
|
|
/*
|
|
* System controllers in a RISC-V system
|
|
*
|
|
* So far only SiFive's Core Local Interruptor (CLINT) is defined.
|
|
*/
|
|
enum {
|
|
RISCV_NONE,
|
|
RISCV_SYSCON_CLINT, /* Core Local Interruptor (CLINT) */
|
|
};
|
|
|
|
#endif /* _ASM_SYSCON_H */
|