]> git.baikalelectronics.ru Git - uboot.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)
commit81767eecdebd45b6debbf2cabd4c139b8d58a09a
treeba87cea14386800f12640ba8a03631f8f0d497c5
parent3e79fa1d0687c5db65395ed9cd75827863fc137e
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