u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/5] imx6: make use of lldiv(..)
Date: Wed, 08 Jan 2014 11:54:48 +0100	[thread overview]
Message-ID: <52CD2E78.3030707@denx.de> (raw)
In-Reply-To: <1389165866-17509-5-git-send-email-christian.gmeiner@gmail.com>

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 <mans@mansr.com>
> Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
> ---
>  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 <common.h>
> +#include <div64.h>
>  #include <asm/io.h>
>  #include <asm/errno.h>
>  #include <asm/arch/imx-regs.h>
> @@ -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 <sbabic@denx.de>

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
=====================================================================

  reply	other threads:[~2014-01-08 10:54 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-08  7:24 [U-Boot] [PATCH 1/5] edid: add function to convert edid to fb_videomode Christian Gmeiner
2014-01-08  7:24 ` [U-Boot] [PATCH 2/5] imx: mx6q_4x_mt41j128.cfg: enable ecspi3 clocks Christian Gmeiner
2014-01-08 10:44   ` Stefano Babic
2014-01-08 14:45     ` Christian Gmeiner
2014-01-09  7:07       ` Christian Gmeiner
2014-01-09 10:41         ` Stefano Babic
2014-01-08  7:24 ` [U-Boot] [PATCH 3/5] fdt: add fdt_add_display_timings(..) Christian Gmeiner
2014-01-08 10:53   ` Stefano Babic
2014-01-09  7:12     ` Christian Gmeiner
2014-01-09 10:44       ` Stefano Babic
2014-01-09 14:52         ` Eric Nelson
2014-01-09 15:06           ` Stefano Babic
2014-01-09 17:00           ` Stephen Warren
2014-01-09 17:19             ` Christian Gmeiner
2014-01-12 21:21     ` Anatolij Gustschin
2014-01-14  7:58       ` Christian Gmeiner
2014-01-16 11:44         ` Christian Gmeiner
2014-09-15 12:27           ` Christian Gmeiner
2014-01-08  7:24 ` [U-Boot] [PATCH 4/5] imx6: add ot1200 mr board Christian Gmeiner
2014-01-08 11:21   ` Stefano Babic
2014-01-08 14:53     ` Christian Gmeiner
2014-01-08  7:24 ` [U-Boot] [PATCH 5/5] imx6: make use of lldiv(..) Christian Gmeiner
2014-01-08 10:54   ` Stefano Babic [this message]
2014-01-08 14:46     ` Christian Gmeiner
2014-01-13 10:57   ` Stefano Babic
2014-01-08 10:40 ` [U-Boot] [PATCH 1/5] edid: add function to convert edid to fb_videomode Stefano Babic
2014-01-10 21:36 ` Eric Nelson
2014-01-14  0:36   ` Fabio Estevam
2014-01-14  2:55     ` Eric Nelson
2014-01-12 20:34 ` Anatolij Gustschin
2014-01-14  7:56   ` Christian Gmeiner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52CD2E78.3030707@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).