Skip to content
Snippets Groups Projects
Commit d0f855f2 authored by Michal Simek's avatar Michal Simek Committed by Tom Rini
Browse files

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: default avatarMichal Simek <michal.simek@xilinx.com>
parent 9de4f959
No related branches found
No related tags found
No related merge requests found
...@@ -61,3 +61,10 @@ unsigned long usec2ticks(unsigned long usec) ...@@ -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();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment