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>
This commit is contained in:
Anup Patel
2019-12-30 11:31:59 +05:30
committed by Anup Patel
parent fc6bd90457
commit 46a90d90e7
8 changed files with 65 additions and 50 deletions

View File

@@ -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