]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: remove A9 timer prescaling
authorJohn Linn <john.linn@xilinx.com>
Fri, 9 Jul 2010 16:47:20 +0000 (10:47 -0600)
committerJohn Linn <john.linn@xilinx.com>
Fri, 9 Jul 2010 16:47:20 +0000 (10:47 -0600)
It seems like the timer should not be prescaled as the time is way
off using the sleep command.

cpu/arm_cortexa8/pele/timer.c

index 48433b524bf3dedfb76c840b550ac534bc689cf3..6bbafbc34c38a20f62b20e283ee08a3d1f936b60 100644 (file)
@@ -87,7 +87,7 @@ int timer_init()
        /* Clear prescaler control bits */
        val &= ~XSCUTIMER_CONTROL_PRESCALER_MASK;
        /* Set prescaler value */
-       val |= (0xFF << XSCUTIMER_CONTROL_PRESCALER_SHIFT);
+//     val |= (0xFF << XSCUTIMER_CONTROL_PRESCALER_SHIFT);
        /* Enable the decrementer */
        val |= XSCUTIMER_CONTROL_ENABLE_MASK;
        XScuTimer_WriteReg(XSCUTIMER_CONTROL_OFFSET, val);