summary refs log tree commit diff
path: root/net/caif/cfcnfg.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-10-28 13:10:37 +0100
committerPaul Walmsley <paul.walmsley@sifive.com>2019-11-13 14:10:40 -0800
commit4f9bbcefa142862782275a4b29f390ca8d8b9242 (patch)
tree5a2bf6fa74323148ba54e12bd828b16a77a26604 /net/caif/cfcnfg.c
parent8bf90f320d9ab4d642cdc0c1c5f05e8aa0a68db6 (diff)
downloadlinux-4f9bbcefa142862782275a4b29f390ca8d8b9242.tar.gz
riscv: add support for MMIO access to the timer registers
When running in M-mode we can't use the SBI to set the timer, and
don't have access to the time CSR as that usually is emulated by
M-mode.  Instead provide code that directly accesses the MMIO for
the timer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de> # for drivers/clocksource
[paul.walmsley@sifive.com: updated to apply; fixed checkpatch
 issue; timex.h now includes asm/mmio.h to resolve header file
 problems]
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Diffstat (limited to 'net/caif/cfcnfg.c')
0 files changed, 0 insertions, 0 deletions