forked from Mirrors/opensbi
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>
This commit is contained in:
@@ -43,8 +43,12 @@ static struct aclint_mswi_data mswi = {
|
||||
};
|
||||
|
||||
static struct aclint_mtimer_data mtimer = {
|
||||
.addr = PLATFORM_ACLINT_MTIMER_ADDR,
|
||||
.size = ACLINT_MTIMER_SIZE,
|
||||
.mtime_addr = PLATFORM_ACLINT_MTIMER_ADDR +
|
||||
ACLINT_DEFAULT_MTIME_OFFSET,
|
||||
.mtime_size = ACLINT_DEFAULT_MTIME_SIZE,
|
||||
.mtimecmp_addr = PLATFORM_ACLINT_MTIMER_ADDR +
|
||||
ACLINT_DEFAULT_MTIMECMP_OFFSET,
|
||||
.mtimecmp_size = ACLINT_DEFAULT_MTIMECMP_SIZE,
|
||||
.first_hartid = 0,
|
||||
.hart_count = PLATFORM_HART_COUNT,
|
||||
.has_64bit_mmio = TRUE,
|
||||
|
Reference in New Issue
Block a user