[PATCH 08/11] socfpga: arria10: Replace delays with busy waiting in cm_full_cfg

Simon Glass sjg at chromium.org
Mon Apr 11 20:35:12 CEST 2022


On Fri, 1 Apr 2022 at 06:44, Paweł Anikiel <pan at semihalf.com> wrote:
>
> 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 at semihalf.com>
> ---
>  arch/arm/mach-socfpga/clock_manager.c              |  7 ++++---
>  arch/arm/mach-socfpga/clock_manager_arria10.c      | 12 ++++++------
>  arch/arm/mach-socfpga/include/mach/clock_manager.h |  4 ++++
>  3 files changed, 14 insertions(+), 9 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list