[U-Boot] [PATCH v3 08/25] riscv: Add a SYSCON driver for SiFive's Core Local Interruptor

Auer, Lukas lukas.auer at aisec.fraunhofer.de
Tue Dec 11 23:10:11 UTC 2018


On Tue, 2018-12-11 at 01:34 -0800, Bin Meng wrote:
> 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 at gmail.com>
> 
> ---
> 
> Changes in v3:
> - check return value of syscon_get_first_range()
> 
> Changes in v2:
> - rename the driver name to sifive_clint
> - save the clint base address to arch specific global data to support
>   pre-relocation stage
> - remove the probe routine
> - add riscv_clear_ipi() API
> 
>  arch/riscv/Kconfig                   |  9 ++++
>  arch/riscv/include/asm/global_data.h |  3 ++
>  arch/riscv/include/asm/syscon.h      | 19 ++++++++
>  arch/riscv/lib/Makefile              |  1 +
>  arch/riscv/lib/sifive_clint.c        | 84
> ++++++++++++++++++++++++++++++++++++
>  5 files changed, 116 insertions(+)
>  create mode 100644 arch/riscv/include/asm/syscon.h
>  create mode 100644 arch/riscv/lib/sifive_clint.c
> 

Reviewed-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>


More information about the U-Boot mailing list