From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SvODz-0004nj-Nt for barebox@lists.infradead.org; Sun, 29 Jul 2012 07:47:40 +0000 Received: by pbbrq13 with SMTP id rq13so8523321pbb.36 for ; Sun, 29 Jul 2012 00:47:38 -0700 (PDT) From: Marc Reilly Date: Sun, 29 Jul 2012 17:41:48 +1000 Message-Id: <1343547714-32740-2-git-send-email-marc@cpdesign.com.au> In-Reply-To: <1343547714-32740-1-git-send-email-marc@cpdesign.com.au> References: <1343547714-32740-1-git-send-email-marc@cpdesign.com.au> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/7] imx35: 6-bit divider helper To: barebox@lists.infradead.org Signed-off-by: Marc Reilly --- arch/arm/mach-imx/speed-imx35.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-imx/speed-imx35.c b/arch/arm/mach-imx/speed-imx35.c index 684dc14..905ab47 100644 --- a/arch/arm/mach-imx/speed-imx35.c +++ b/arch/arm/mach-imx/speed-imx35.c @@ -97,6 +97,11 @@ static unsigned long get_3_3_div(unsigned long in) return (((in >> 3) & 0x7) + 1) * ((in & 0x7) + 1); } +static unsigned long get_6_div(unsigned long in) +{ + return ((in & 0x3f) + 1); +} + static unsigned long imx_get_ipg_perclk(void) { ulong pdr0 = readl(IMX_CCM_BASE + CCM_PDR0); -- 1.7.7 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox