From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 19 Aug 2015 00:06:22 +0200 Subject: [U-Boot] [PATCH] arm: socfpga: Fix delay in clock manager In-Reply-To: <55D39587.1090105@opensource.altera.com> References: <1439247632-9037-1-git-send-email-marex@denx.de> <55D39587.1090105@opensource.altera.com> Message-ID: <201508190006.22566.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > --- > > > > 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 Applied to u-boot-socfpga/master, thanks! Best regards, Marek Vasut