summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7
diff options
context:
space:
mode:
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>2014-02-12 21:38:35 +0530
committerMichal Simek <michal.simek@xilinx.com>2014-02-19 09:41:22 +0100
commite158665c1e4c4665302f0d95e26b7c7e6b70a83c (patch)
tree2dc754e033f395eaa2e3dc34e2606684aef717a3 /arch/arm/cpu/armv7
parentd7e269cfbdd5fe0bbc0961bcf89845484bf28de7 (diff)
downloadu-boot-imx-e158665c1e4c4665302f0d95e26b7c7e6b70a83c.zip
u-boot-imx-e158665c1e4c4665302f0d95e26b7c7e6b70a83c.tar.gz
u-boot-imx-e158665c1e4c4665302f0d95e26b7c7e6b70a83c.tar.bz2
arm: zynq: correct the argument to lldiv
Typecast the argument with unsigned long long for proper calculation of lldiv Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r--arch/arm/cpu/armv7/zynq/timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/zynq/timer.c b/arch/arm/cpu/armv7/zynq/timer.c
index 174e5a1..303dbcf 100644
--- a/arch/arm/cpu/armv7/zynq/timer.c
+++ b/arch/arm/cpu/armv7/zynq/timer.c
@@ -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;