mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-20 20:04:46 +00: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
1 changed files with 7 additions and 0 deletions
|
@ -61,3 +61,10 @@ unsigned long usec2ticks(unsigned long usec)
|
||||||
|
|
||||||
return ticks;
|
return ticks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ulong timer_get_boot_us(void)
|
||||||
|
{
|
||||||
|
u64 val = get_ticks() * 1000000;
|
||||||
|
|
||||||
|
return val / get_tbclk();
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue