imx: cpu.c: give access to reset cause in spl
[oweals/u-boot.git] / arch / arm / mach-imx / syscounter.c
index 34bdb9597e47c9f7a911bc8556c79d0dc1da2756..c888a939385be128627c55510a82886af0bfdf54 100644 (file)
@@ -55,6 +55,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 +77,7 @@ int timer_init(void)
 
        return 0;
 }
+#endif
 
 unsigned long long get_ticks(void)
 {