zynq: timer: Fix hangs if network activity attempted after about one hour
authorMichal Simek <michal.simek@xilinx.com>
Fri, 22 Nov 2013 14:29:38 +0000 (15:29 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 19 Feb 2014 08:41:21 +0000 (09:41 +0100)
commit2826fd320cf364077ccc64e645af468adcbe567e
tree2cc33aad1d27a9e8ea10343a5c5a9911335e8539
parent614c27251196b7567fdb6e98a8b1fe2905367c0c
zynq: timer: Fix hangs if network activity attempted after about one hour

Cortex-A9 MPCore TRM' from ARM (ARM DDI 0407G ID072711) describes
in the section 4.1.1 how this value calculation should be done.

This patch fixes the problem if network activity such as ping or
tftp is attempted after u-boot has been idle for an hour,
it hangs, and cannot control-C out of it.

Signed-off-by: Uday Hegde <udayh@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv7/zynq/timer.c