]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arm: socfpga: Fix delay in freeze controller
authorMarek Vasut <marex@denx.de>
Mon, 10 Aug 2015 22:49:09 +0000 (00:49 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:30:34 +0000 (10:30 +0200)
commit2069f2622e3a111c8d3b45677b71d4af1030bd09
tree3675dd9d0829d1347aa4c6fc0e0e6bf1b80e0705
parent8c0d928c3650fcdb5034f03417b78d3e7d65bd8e
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