ARM: imx8m: Don't use the addr parameter of reset_cpu()
[oweals/u-boot.git] / arch / arm / mach-imx / syscounter.c
index 34bdb9597e47c9f7a911bc8556c79d0dc1da2756..5a292c396433308ffc98155429afd2ffa50eb633 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <time.h>
 #include <asm/io.h>
 #include <div64.h>
 #include <asm/arch/imx-regs.h>
@@ -55,6 +56,7 @@ static inline unsigned long long us_to_tick(unsigned long long usec)
        return usec;
 }
 
+#ifndef CONFIG_SKIP_LOWLEVEL_INIT
 int timer_init(void)
 {
        struct sctr_regs *sctr = (struct sctr_regs *)SCTR_BASE_ADDR;
@@ -76,6 +78,7 @@ int timer_init(void)
 
        return 0;
 }
+#endif
 
 unsigned long long get_ticks(void)
 {