lib: utils/timer: Add FDT based ACLINT MTIMER driver

We add a new FDT based ACLINT MTIMER driver which works for
both CLINT device and standalone ACLINT MTIMER device.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Xiang W <wxjstz@126.com>
This commit is contained in:
Anup Patel
2021-05-20 15:32:46 +05:30
committed by Anup Patel
parent 56fc5f7618
commit 03d6bb51ba
4 changed files with 77 additions and 60 deletions

View File

@@ -12,10 +12,10 @@
#include <sbi_utils/fdt/fdt_helper.h>
#include <sbi_utils/timer/fdt_timer.h>
extern struct fdt_timer fdt_timer_clint;
extern struct fdt_timer fdt_timer_mtimer;
static struct fdt_timer *timer_drivers[] = {
&fdt_timer_clint
&fdt_timer_mtimer
};
static struct fdt_timer dummy = {