[U-Boot] [PATCH] arm: socfpga: Fix delay in clock manager

Marek Vasut marex at denx.de
Wed Aug 19 00:06:22 CEST 2015


On Tuesday, August 18, 2015 at 10:28:55 PM, Dinh Nguyen wrote:
> On 8/10/15 6:00 PM, Marek Vasut wrote:
> > This code claims it needs to wait 7us, yet it uses get_timer() function
> > which operates with millisecond granularity. Use timer_get_us() instead,
> > which operates with microsecond granularity.
> > 
> > Signed-off-by: Marek Vasut <marex at denx.de>
> > ---
> > 
> >  arch/arm/mach-socfpga/clock_manager.c | 12 +++++-------
> >  1 file changed, 5 insertions(+), 7 deletions(-)
> > 
> > diff --git a/arch/arm/mach-socfpga/clock_manager.c
> > b/arch/arm/mach-socfpga/clock_manager.c index 1341df4..aa71636 100644
> > --- a/arch/arm/mach-socfpga/clock_manager.c
> > +++ b/arch/arm/mach-socfpga/clock_manager.c
> > @@ -90,7 +90,7 @@ static void cm_write_with_phase(uint32_t value,
> 
> Acked-by: Dinh Nguyen <dinguyen at opensource.altera.com>

Applied to u-boot-socfpga/master, thanks!

Best regards,
Marek Vasut


More information about the U-Boot mailing list