diff options
author | Anup Patel <anup.patel@wdc.com> | 2021-07-23 14:09:43 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-08-14 09:02:33 +0530 |
commit | e0d1b9db8abd8288afbaa4f93a4ace6a9b6f0100 (patch) | |
tree | a404340f4c146ae45de2ed5d50a4427de8e78672 /platform/nuclei | |
parent | 47a47654e8d3997b059d11bb8845ed0037e88c8e (diff) | |
download | opensbi-e0d1b9db8abd8288afbaa4f93a4ace6a9b6f0100.zip opensbi-e0d1b9db8abd8288afbaa4f93a4ace6a9b6f0100.tar.gz opensbi-e0d1b9db8abd8288afbaa4f93a4ace6a9b6f0100.tar.bz2 |
lib: utils/timer: Allow separate base addresses for MTIME and MTIMECMP
We extend the ACLINT library to support separate base addresses
for MTIME and MTIMECMP registers.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'platform/nuclei')
-rw-r--r-- | platform/nuclei/ux600/platform.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/platform/nuclei/ux600/platform.c b/platform/nuclei/ux600/platform.c index 22ca4c9..ab0becc 100644 --- a/platform/nuclei/ux600/platform.c +++ b/platform/nuclei/ux600/platform.c @@ -74,8 +74,12 @@ static struct aclint_mswi_data mswi = { }; static struct aclint_mtimer_data mtimer = { - .addr = UX600_ACLINT_MTIMER_ADDR, - .size = ACLINT_MTIMER_SIZE, + .mtime_addr = UX600_ACLINT_MTIMER_ADDR + + ACLINT_DEFAULT_MTIME_OFFSET, + .mtime_size = ACLINT_DEFAULT_MTIME_SIZE, + .mtimecmp_addr = UX600_ACLINT_MTIMER_ADDR + + ACLINT_DEFAULT_MTIMECMP_OFFSET, + .mtimecmp_size = ACLINT_DEFAULT_MTIMECMP_SIZE, .first_hartid = 0, .hart_count = UX600_HART_COUNT, .has_64bit_mmio = TRUE, |