]> git.dujemihanovic.xyz Git - u-boot.git/commit
socfpga: arria10: Replace delays with busy waiting in cm_full_cfg
authorPaweł Anikiel <pan@semihalf.com>
Fri, 17 Jun 2022 10:47:23 +0000 (12:47 +0200)
committerTien Fong Chee <tien.fong.chee@intel.com>
Fri, 1 Jul 2022 06:57:14 +0000 (14:57 +0800)
commitaea0e80a9feff740a6cb6323c67452bc5a752e4d
treeba87cea14386800f12640ba8a03631f8f0d497c5
parent9ebca7095bdbb2843a37b1f36d7896a6cb21e4ab
socfpga: arria10: Replace delays with busy waiting in cm_full_cfg

Using udelay while the clocks aren't fully configured causes the timer
system to save the wrong clock rate. Use sdelay and wait_on_value
instead (the values used in these functions were found experimentally).

Signed-off-by: Paweł Anikiel <pan@semihalf.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@intel.com>
arch/arm/mach-socfpga/clock_manager_arria10.c