]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/armv7/zynq/timer.c
clock_am43xx:Set the MAC clock to /5 for OPP100
[u-boot] / arch / arm / cpu / armv7 / zynq / timer.c
index 174e5a18f674dc6cb6de63984ba97c512dc7ba93..303dbcfceafb3fe6d515a6a091c7ece6061561db 100644 (file)
@@ -110,7 +110,8 @@ void __udelay(unsigned long usec)
        if (usec == 0)
                return;
 
-       countticks = lldiv(gd->arch.timer_rate_hz * usec, 1000000);
+       countticks = lldiv(((unsigned long long)gd->arch.timer_rate_hz * usec),
+                          1000000);
 
        /* decrementing timer */
        timeend = readl(&timer_base->counter) - countticks;