summaryrefslogtreecommitdiff
path: root/include/sbi_utils/sys/clint.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-12-30 09:01:59 +0300
committerAnup Patel <anup@brainfault.org>2020-01-02 06:44:36 +0300
commit46a90d90e7dca6eeb66700b6970171119c51fd66 (patch)
tree1e4c6902a0e8b68277a46e6610a33b898f9391bb /include/sbi_utils/sys/clint.h
parentfc6bd90457b5553fbb0a17f0b58adb2da28e8db0 (diff)
downloadopensbi-46a90d90e7dca6eeb66700b6970171119c51fd66.tar.xz
lib: utils: Support CLINT with 32bit MMIO access on RV64 system
It is possible to have a CLINT implementation which supports only 32bit MMIO accesses on RV64 system so this patch extends our CLINT driver such that platform code can specify whether CLINT supports 64bit MMIO access. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra<atish.patra@wdc.com> Reviewed-by: Zong Li <zong.li@sifive.com>
Diffstat (limited to 'include/sbi_utils/sys/clint.h')
-rw-r--r--include/sbi_utils/sys/clint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sbi_utils/sys/clint.h b/include/sbi_utils/sys/clint.h
index 78e1209..5749d46 100644
--- a/include/sbi_utils/sys/clint.h
+++ b/include/sbi_utils/sys/clint.h
@@ -30,6 +30,7 @@ void clint_timer_event_start(u64 next_event);
int clint_warm_timer_init(void);
-int clint_cold_timer_init(unsigned long base, u32 hart_count);
+int clint_cold_timer_init(unsigned long base, u32 hart_count,
+ bool has_64bit_mmio);
#endif