mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 16:38:53 +09:00
![Bin Meng](/assets/img/avatar_default.png)
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>
20 lines
373 B
C
20 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 */
|