forked from Mirrors/opensbi
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:
@@ -145,7 +145,7 @@ static int ariane_timer_init(bool cold_boot)
|
||||
|
||||
if (cold_boot) {
|
||||
ret = clint_cold_timer_init(ARIANE_CLINT_ADDR,
|
||||
ARIANE_HART_COUNT);
|
||||
ARIANE_HART_COUNT, TRUE);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user