Linux Samsung SOC development
 help / color / mirror / Atom feed
From: Ben Dooks <ben@trinity.fluff.org>
To: Kukjin Kim <kgene.kim@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org, ben-linux@fluff.org,
	Seungwhan Youn <sw.youn@samsung.com>
Subject: Re: [PATCH] ARM: S5PC100: Bug fix EPLL_CON MASK settings
Date: Wed, 29 Sep 2010 00:05:56 +0100	[thread overview]
Message-ID: <20100928230556.GO27885@trinity.fluff.org> (raw)
In-Reply-To: <1285665804-8922-1-git-send-email-kgene.kim@samsung.com>

On Tue, Sep 28, 2010 at 06:23:24PM +0900, Kukjin Kim wrote:
> From: Seungwhan Youn <sw.youn@samsung.com>
> 
> This patch fixes EPLL_CON MASK settings which did not contain its
> shift values when set epll rate on S5PC100.
> 
> Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
> ---
>  arch/arm/mach-s5pc100/clock.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-s5pc100/clock.c b/arch/arm/mach-s5pc100/clock.c
> index 084abd1..ff125b4 100644
> --- a/arch/arm/mach-s5pc100/clock.c
> +++ b/arch/arm/mach-s5pc100/clock.c
> @@ -323,7 +323,9 @@ static int s5pc100_epll_set_rate(struct clk *clk, unsigned long rate)
>  
>  	epll_con = __raw_readl(S5P_EPLL_CON);
>  
> -	epll_con &= ~(PLL65XX_MDIV_MASK | PLL65XX_PDIV_MASK | PLL65XX_SDIV_MASK);
> +	epll_con &= ~((PLL65XX_MDIV_MASK << PLL65XX_MDIV_SHIFT) |
> +		      (PLL65XX_PDIV_MASK << PLL65XX_PDIV_SHIFT) |
> +		      (PLL65XX_SDIV_MASK << PLL65XX_SDIV_SHIFT));

you know, it'd probably be easier to calculatet what you need to keep
from this register.

-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.

      reply	other threads:[~2010-09-28 23:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-28  9:23 [PATCH] ARM: S5PC100: Bug fix EPLL_CON MASK settings Kukjin Kim
2010-09-28 23:05 ` Ben Dooks [this message]

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=20100928230556.GO27885@trinity.fluff.org \
    --to=ben@trinity.fluff.org \
    --cc=ben-linux@fluff.org \
    --cc=kgene.kim@samsung.com \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=sw.youn@samsung.com \
    /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