[U-Boot] [PATCH] MX6: Correct calculation of PLL_SYS

Stefano Babic sbabic at denx.de
Wed Jul 9 14:56:44 CEST 2014


On 09/06/2014 22:47, Andre Renaud wrote:
> DIV_SELECT is used as Fout = Fin * div_select / 2.0, so we should do
> the shift after the multiply to avoid rounding errors
> 
> Signed-off-by: Andre Renaud <andre at bluewatersys.com>
> ---
>  arch/arm/cpu/armv7/mx6/clock.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c
> index bd65a08..7dd83ec 100644
> --- a/arch/arm/cpu/armv7/mx6/clock.c

Applied to u-boot-imx, as a fix, thanks !

Best regards,
Stefano Babic


-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list