]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/imx-common/timer.c
merged tx6dl-devel into denx master branch
[karo-tx-uboot.git] / arch / arm / imx-common / timer.c
index c63f78f6823cee5432e395bc8a7550564a6dee58..a4b0137cf3f68986accca9c42889ff64d5de6727 100644 (file)
@@ -68,6 +68,7 @@ int timer_init(void)
        gd->arch.tbl = __raw_readl(&cur_gpt->counter);
        gd->arch.tbu = 0;
 
+       gd->arch.timer_rate_hz = MXC_CLK32;
        return 0;
 }
 
@@ -117,5 +118,5 @@ void __udelay(unsigned long usec)
  */
 ulong get_tbclk(void)
 {
-       return MXC_CLK32;
+       return gd->arch.timer_rate_hz;
 }