aboutsummaryrefslogtreecommitdiff
path: root/drivers/timer/riscv_aclint_timer.c
Commit message (Collapse)AuthorAgeFilesLines
* timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGEChanho Park2023-10-041-0/+23
| | | | | | | | | | | | | timer_get_boot_us function is required to record the boot stages as us-based timestamp. To get a micro-second time from a timer tick, this converts the formula like below to avoid zero result of (tick / rate) part. From: time(us) = (tick / rate) * 1000000 To : time(us) = (tick * 1000) / (rate / 1000) Signed-off-by: Chanho Park <chanho61.park@samsung.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
* riscv: Rename SiFive CLINT to RISC-V ALINTBin Meng2023-07-121-0/+74
As the RISC-V ACLINT specification is defined to be backward compatible with the SiFive CLINT specification, we rename SiFive CLINT to RISC-V ALINT in the source tree to be future-proof. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Rick Chen <rick@andestech.com>