From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Wed, 08 Jan 2014 11:54:48 +0100 Subject: [U-Boot] [PATCH 5/5] imx6: make use of lldiv(..) In-Reply-To: <1389165866-17509-5-git-send-email-christian.gmeiner@gmail.com> References: <1389165866-17509-1-git-send-email-christian.gmeiner@gmail.com> <1389165866-17509-5-git-send-email-christian.gmeiner@gmail.com> Message-ID: <52CD2E78.3030707@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 Hi Christian, On 08/01/2014 08:24, Christian Gmeiner wrote: > Commit 762a88ccf8540948fbf8c31b40a29d1e0684a25b introduces > a 64-bit division without using the lldiv() function, > which pulls in previously unused libgcc stuff. > > Signed-off-by: M?ns Rullg?rd > Signed-off-by: Christian Gmeiner > --- > arch/arm/cpu/armv7/mx6/clock.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c > index 873d9d0..4eeb09b 100644 > --- a/arch/arm/cpu/armv7/mx6/clock.c > +++ b/arch/arm/cpu/armv7/mx6/clock.c > @@ -5,6 +5,7 @@ > */ > > #include > +#include > #include > #include > #include > @@ -123,7 +124,7 @@ static u32 mxc_get_pll_pfd(enum pll_clocks pll, int pfd_num) > return 0; > } > > - return (freq * 18) / ((div & ANATOP_PFD_FRAC_MASK(pfd_num)) >> > + return lldiv(freq * 18, (div & ANATOP_PFD_FRAC_MASK(pfd_num)) >> > ANATOP_PFD_FRAC_SHIFT(pfd_num)); > } > > Thanks to repost this patch. I will apply it for the current release. Acked-by: Stefano Babic 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 =====================================================================