* [PATCH] sh: fix sh7785 master clock value
@ 2008-05-15 8:44 Yoshihiro Shimoda
2008-05-15 8:48 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Yoshihiro Shimoda @ 2008-05-15 8:44 UTC (permalink / raw)
To: linux-sh
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
---
arch/sh/kernel/cpu/sh4a/clock-sh7785.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
index 805535a..27fa81b 100644
--- a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
+++ b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
@@ -26,7 +26,7 @@ static int pfc_divisors[] = { 1, 1, 1, 1, 1, 1, 1, 18,
static void master_clk_init(struct clk *clk)
{
- clk->rate *= 36;
+ clk->rate *= pfc_divisors[ctrl_inl(FRQMR1) & 0x000f];
}
static struct clk_ops sh7785_master_clk_ops = {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sh: fix sh7785 master clock value
2008-05-15 8:44 [PATCH] sh: fix sh7785 master clock value Yoshihiro Shimoda
@ 2008-05-15 8:48 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2008-05-15 8:48 UTC (permalink / raw)
To: linux-sh
On Thu, May 15, 2008 at 05:44:00PM +0900, Yoshihiro Shimoda wrote:
> Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
> ---
> arch/sh/kernel/cpu/sh4a/clock-sh7785.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
> index 805535a..27fa81b 100644
> --- a/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
> +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7785.c
> @@ -26,7 +26,7 @@ static int pfc_divisors[] = { 1, 1, 1, 1, 1, 1, 1, 18,
>
> static void master_clk_init(struct clk *clk)
> {
> - clk->rate *= 36;
> + clk->rate *= pfc_divisors[ctrl_inl(FRQMR1) & 0x000f];
> }
>
> static struct clk_ops sh7785_master_clk_ops = {
>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-15 8:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-15 8:44 [PATCH] sh: fix sh7785 master clock value Yoshihiro Shimoda
2008-05-15 8:48 ` Paul Mundt
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).