riscv: Add a SYSCON driver for SiFive's Core Local Interruptor
authorBin Meng <bmeng.cn@gmail.com>
Wed, 12 Dec 2018 14:12:30 +0000 (06:12 -0800)
committerAndes <uboot@andestech.com>
Tue, 18 Dec 2018 01:56:26 +0000 (09:56 +0800)
commit644a3cd77e840d1be6a714b8ce284d6ef3ad2f06
tree1d9270086f38d553463821a2ea220087d6391867
parent3cfc825261d90472fa11ea72d7ed2d293b744140
riscv: Add a SYSCON driver for SiFive's Core Local Interruptor

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>
arch/riscv/Kconfig
arch/riscv/include/asm/global_data.h
arch/riscv/include/asm/syscon.h [new file with mode: 0644]
arch/riscv/lib/Makefile
arch/riscv/lib/sifive_clint.c [new file with mode: 0644]