diff options
author | Christoph Hellwig <[email protected]> | 2019-10-28 13:10:37 +0100 |
---|---|---|
committer | Paul Walmsley <[email protected]> | 2019-11-13 14:10:40 -0800 |
commit | 4f9bbcefa142862782275a4b29f390ca8d8b9242 (patch) | |
tree | 5a2bf6fa74323148ba54e12bd828b16a77a26604 /lib/test-string_helpers.c | |
parent | 8bf90f320d9ab4d642cdc0c1c5f05e8aa0a68db6 (diff) |
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 <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Acked-by: Thomas Gleixner <[email protected]> # for drivers/clocksource
[[email protected]: updated to apply; fixed checkpatch
issue; timex.h now includes asm/mmio.h to resolve header file
problems]
Signed-off-by: Paul Walmsley <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions