On Fri, 2018-12-07 at 06:14 -0800, Bin Meng wrote: > From: Anup Patel <a...@brainfault.org> > > This adds an implementation of riscv_get_time() API that is using > rdtime instruction. > > This is the case for S-mode U-Boot, and is useful for processors > that support rdtime in M-mode too. > > Signed-off-by: Anup Patel <a...@brainfault.org> > Signed-off-by: Bin Meng <bmeng...@gmail.com> > > --- > > Changes in v2: > - incorporated and reworked Anup's S-mode timer patch > @ http://patchwork.ozlabs.org/patch/1006663/ > > arch/riscv/Kconfig | 8 ++++++++ > arch/riscv/lib/Makefile | 1 + > arch/riscv/lib/rdtime.c | 36 ++++++++++++++++++++++++++++++++++++ > 3 files changed, 45 insertions(+) > create mode 100644 arch/riscv/lib/rdtime.c >
Reviewed-by: Lukas Auer <lukas.a...@aisec.fraunhofer.de> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot