[U-Boot] [PATCH v4 2/6] riscv: Add a SYSCON driver for Andestech's PLMT
Auer, Lukas
lukas.auer at aisec.fraunhofer.de
Tue Apr 2 21:16:03 UTC 2019
On Tue, 2019-04-02 at 15:56 +0800, Andes wrote:
> From: Rick Chen <rick at andestech.com>
>
> The platform-Level Machine Timer (PLMT) block
> holds memory-mapped mtime register associated
> with timer tick.
>
> This driver implements the riscv_get_time() which
> is required by the generic RISC-V timer driver.
>
> Signed-off-by: Rick Chen <rick at andestech.com>
> Cc: Greentime Hu <greentime at andestech.com>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
> Changes in v4:
> - Rename nds_plmt as andes_plmt
>
> arch/riscv/Kconfig | 9 ++++++
> arch/riscv/include/asm/global_data.h | 3 ++
> arch/riscv/include/asm/syscon.h | 1 +
> arch/riscv/lib/Makefile | 1 +
> arch/riscv/lib/andes_plmt.c | 53 ++++++++++++++++++++++++++++++++++++
> 5 files changed, 67 insertions(+)
> create mode 100644 arch/riscv/lib/andes_plmt.c
>
Reviewed-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
More information about the U-Boot
mailing list