Re: [PATCH] ARM: S5PC100: Bug fix EPLL_CON MASK settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 28, 2010 at 06:23:24PM +0900, Kukjin Kim wrote:
> From: Seungwhan Youn <sw.youn@xxxxxxxxxxx>
> 
> 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@xxxxxxxxxxx>
> Signed-off-by: Kukjin Kim <kgene.kim@xxxxxxxxxxx>
> ---
>  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.

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux