mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-05 18:23:27 +08:00
arm64: timer: Create timer_get_bootus for bootstage support
Implement timer_get_boot_us() based on available functions to support bootstage command. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
9de4f95929
commit
d0f855f221
@ -61,3 +61,10 @@ unsigned long usec2ticks(unsigned long usec)
|
||||
|
||||
return ticks;
|
||||
}
|
||||
|
||||
ulong timer_get_boot_us(void)
|
||||
{
|
||||
u64 val = get_ticks() * 1000000;
|
||||
|
||||
return val / get_tbclk();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user