From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Wed, 09 Jul 2014 14:56:44 +0200 Subject: [U-Boot] [PATCH] MX6: Correct calculation of PLL_SYS In-Reply-To: <1402346833-14679-1-git-send-email-andre@bluewatersys.com> References: <1402346833-14679-1-git-send-email-andre@bluewatersys.com> Message-ID: <53BD3C0C.5050406@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 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 > --- > 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 =====================================================================