diff options
author | Simon Glass | 2019-12-28 10:44:59 -0700 |
---|---|---|
committer | Jagan Teki | 2020-01-24 23:06:49 +0530 |
commit | 98c338bcb66bc1f844d4d9523d786eb1db17d036 (patch) | |
tree | 2634057b78e7acff085bb9df4bd548c9b0de062f /arch/powerpc/cpu/mpc85xx/cpu.c | |
parent | b63ff2ae54a74e68fb67ea7f150e9f01174eb535 (diff) |
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>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/cpu.c')
-rw-r--r-- | arch/powerpc/cpu/mpc85xx/cpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c index 18556629c3d..9f9eed165bc 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu.c +++ b/arch/powerpc/cpu/mpc85xx/cpu.c @@ -12,6 +12,7 @@ #include <common.h> #include <cpu_func.h> #include <irq_func.h> +#include <time.h> #include <vsprintf.h> #include <watchdog.h> #include <command.h> @@ -332,7 +333,7 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) #ifndef CONFIG_SYS_FSL_TBCLK_DIV #define CONFIG_SYS_FSL_TBCLK_DIV 8 #endif -__weak unsigned long get_tbclk (void) +__weak unsigned long get_tbclk(void) { unsigned long tbclk_div = CONFIG_SYS_FSL_TBCLK_DIV; |