diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-12-30 11:31:59 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-01-02 09:14:36 +0530 |
commit | 46a90d90e7dca6eeb66700b6970171119c51fd66 (patch) | |
tree | 1e4c6902a0e8b68277a46e6610a33b898f9391bb /platform/template | |
parent | fc6bd90457b5553fbb0a17f0b58adb2da28e8db0 (diff) |
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 'platform/template')
-rw-r--r-- | platform/template/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/template/platform.c b/platform/template/platform.c index d36af48..20ae579 100644 --- a/platform/template/platform.c +++ b/platform/template/platform.c @@ -143,7 +143,7 @@ static int platform_timer_init(bool cold_boot) /* Example if the generic CLINT driver is used */ if (cold_boot) { ret = clint_cold_timer_init(PLATFORM_CLINT_ADDR, - PLATFORM_HART_COUNT); + PLATFORM_HART_COUNT, TRUE); if (ret) return ret; } |