common: Move get_tbclk() to time.h

This function related to timer and most of the timer functions are in
time.h, so move this function there.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2019-12-28 10:44:59 -07:00
committed by Tom Rini
parent d96c26040e
commit 049f8d6f4a
27 changed files with 29 additions and 8 deletions

View File

@@ -153,7 +153,7 @@ unsigned long long get_ticks(void)
* Return the timebase clock frequency
* i.e. how often the timer decrements
*/
ulong get_tbclk (void)
ulong get_tbclk(void)
{
unsigned long long tmp = CONFIG_SYS_HZ_CLOCK;

View File

@@ -9,6 +9,7 @@
#include <env.h>
#include <init.h>
#include <pci.h>
#include <time.h>
#include <asm/processor.h>
#include <asm/mmu.h>
#include <asm/fsl_pci.h>
@@ -337,7 +338,7 @@ int get_clocks(void)
return 0;
}
unsigned long get_tbclk (void)
unsigned long get_tbclk(void)
{
void *fdt = get_fdt_virt();
int cpus_node = fdt_path_offset(fdt, "/cpus");