On Fri, 1 Apr 2022 at 06:44, Paweł Anikiel <p...@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 <p...@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 <s...@chromium.org>

