Re: [U-Boot] [PATCH 6/9] mx1: improve PLL freq computation

2011-08-11 Thread Stefano Babic
On 08/12/2011 02:03 AM, Eric Jarrige wrote: > Hi Stefano, > > On 11 août 2011, at 11:22, Stefano Babic wrote: > >> On 08/10/2011 10:33 PM, Eric Jarrige wrote: >>> Improve PLL freq computation by using the full resolution of the PLL >>> registers >> >> Hi Eric, >> >>> + return (2*(u64)sys_clk_f

Re: [U-Boot] [PATCH 6/9] mx1: improve PLL freq computation

2011-08-11 Thread Eric Jarrige
Hi Stefano, > > On 11 août 2011, at 11:22, Stefano Babic wrote: > >> On 08/10/2011 10:33 PM, Eric Jarrige wrote: >>> Improve PLL freq computation by using the full resolution of the PLL >>> registers >> >> Hi Eric, >> >>> + return (2*(u64)sys_clk_freq * (mfi*(mfd+1) + mfn))/((mfd+1)*(pd+1));

Re: [U-Boot] [PATCH 6/9] mx1: improve PLL freq computation

2011-08-11 Thread Eric Jarrige
Hi Stefano, On 11 août 2011, at 11:22, Stefano Babic wrote: > On 08/10/2011 10:33 PM, Eric Jarrige wrote: >> Improve PLL freq computation by using the full resolution of the PLL >> registers > > Hi Eric, > >> +return (2*(u64)sys_clk_freq * (mfi*(mfd+1) + mfn))/((mfd+1)*(pd+1)); >> +} >> >

Re: [U-Boot] [PATCH 6/9] mx1: improve PLL freq computation

2011-08-11 Thread Stefano Babic
On 08/10/2011 10:33 PM, Eric Jarrige wrote: > Improve PLL freq computation by using the full resolution of the PLL registers Hi Eric, > + return (2*(u64)sys_clk_freq * (mfi*(mfd+1) + mfn))/((mfd+1)*(pd+1)); > +} > > - return (2*(CONFIG_SYSPLL_CLK_FREQ>>10)*( (mfi<<10) + > (mfn<<10)/(mf

[U-Boot] [PATCH 6/9] mx1: improve PLL freq computation

2011-08-10 Thread Eric Jarrige
Improve PLL freq computation by using the full resolution of the PLL registers Signed-off-by: Eric Jarrige Cc: Stefano Babic --- arch/arm/cpu/arm920t/imx/speed.c | 29 +++-- 1 files changed, 11 insertions(+), 18 deletions(-) diff --git a/arch/arm/cpu/arm920t/imx/speed