* [PATCH] ARM: S5PC100: Bug fix EPLL_CON MASK settings
@ 2010-09-28 9:23 Kukjin Kim
2010-09-28 23:05 ` Ben Dooks
0 siblings, 1 reply; 2+ messages in thread
From: Kukjin Kim @ 2010-09-28 9:23 UTC (permalink / raw)
To: linux-samsung-soc; +Cc: ben-linux, Seungwhan Youn, Kukjin Kim
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));
for (i = 0; i < ARRAY_SIZE(epll_div); i++) {
if (epll_div[i][0] == rate) {
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: S5PC100: Bug fix EPLL_CON MASK settings
2010-09-28 9:23 [PATCH] ARM: S5PC100: Bug fix EPLL_CON MASK settings Kukjin Kim
@ 2010-09-28 23:05 ` Ben Dooks
0 siblings, 0 replies; 2+ messages in thread
From: Ben Dooks @ 2010-09-28 23:05 UTC (permalink / raw)
To: Kukjin Kim; +Cc: linux-samsung-soc, ben-linux, Seungwhan Youn
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-28 23:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-28 9:23 [PATCH] ARM: S5PC100: Bug fix EPLL_CON MASK settings Kukjin Kim
2010-09-28 23:05 ` Ben Dooks
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.