Christoph Hellwig
4f9bbcefa1
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>
2019-11-13 14:10:40 -08:00
..
2019-06-19 17:09:07 +02:00
2019-07-03 10:50:21 +02:00
2019-07-03 10:50:21 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:26:32 -07:00
2018-12-18 22:22:23 +01:00
2017-06-14 11:58:45 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:26:32 -07:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:55 +02:00
2019-08-27 00:31:39 +02:00
2019-07-03 10:50:21 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-08-23 16:59:54 +02:00
2018-11-04 11:04:46 +01:00
2019-08-08 15:30:08 -07:00
2017-06-14 11:58:45 +02:00
2019-09-22 09:30:30 -07:00
2019-08-08 15:30:08 -07:00
2019-03-22 22:59:33 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2018-05-23 07:39:09 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:36:37 +02:00
2019-08-27 00:31:39 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2019-08-27 00:31:39 +02:00
2018-10-03 14:36:55 +02:00
2019-08-27 00:31:39 +02:00
2018-10-03 14:37:02 +02:00
2018-07-26 11:26:30 +02:00
2019-05-21 11:28:40 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2019-08-27 00:31:39 +02:00
2019-06-05 17:36:37 +02:00
2019-05-30 11:29:53 -07:00
2019-06-25 20:46:14 +02:00
2017-06-14 11:58:45 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2018-12-18 22:22:23 +01:00
2018-11-02 19:41:12 +01:00
2018-12-18 22:22:23 +01:00
2019-08-27 00:31:39 +02:00
2018-12-18 22:22:23 +01:00
2019-05-30 11:26:35 -07:00
2019-06-25 19:49:18 +02:00
2019-06-19 17:09:55 +02:00
2018-10-03 14:37:02 +02:00
2019-05-30 11:26:37 -07:00
2019-06-25 19:49:18 +02:00
2019-05-02 21:55:58 +02:00
2018-12-31 23:17:23 +08:00
2019-08-27 00:31:39 +02:00
2017-06-14 11:58:45 +02:00
2019-10-02 16:16:07 -07:00
2018-01-08 17:57:24 +01:00
2018-10-03 14:37:02 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:52 -07:00
2018-10-03 14:37:02 +02:00
2019-05-21 11:28:40 +02:00
2019-08-27 00:31:39 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:36:37 +02:00
2018-12-18 22:22:23 +01:00
2019-11-13 14:10:40 -08:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:35 -07:00
2017-11-02 11:10:55 +01:00
2018-07-26 11:26:34 +02:00
2019-05-30 11:29:22 -07:00
2019-08-27 00:31:39 +02:00
2019-02-23 12:13:45 +01:00
2019-02-23 12:13:45 +01:00
2019-06-25 19:49:18 +02:00
2019-06-05 17:37:07 +02:00
2019-05-24 15:51:30 +02:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00