]> git.sur5r.net Git - u-boot/commit
arm: socfpga: Fix delay in freeze controller
authorMarek Vasut <marex@denx.de>
Mon, 10 Aug 2015 22:49:09 +0000 (00:49 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 23 Aug 2015 09:56:19 +0000 (11:56 +0200)
commita8535c306c68eb050ad0835845ea87a856b192f1
tree9ffbad4eb997c0c7813a80bf35c7efa61f73fc15
parent35e47b7132fa515e32189077ec7b80090562c709
arm: socfpga: Fix delay in freeze controller

Based on observation, this udelay(20) was apparently too high and caused
subsequent failure to calibrate DDR when U-Boot was compiled with certain
toolchains. Lowering this delay fixed the problem.

Instead of permanently lowering the delay, calculate the correct delay
based on the original comment, that is, obtain EOSC1 frequency and use
it to calculate the precise delay.

Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-socfpga/freeze_controller.c