All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH] ARM: mach-shmobile: clock-sh73a0: tidyup CKSCR main clock selecter
Date: Fri, 26 Aug 2011 07:27:45 +0000	[thread overview]
Message-ID: <874o14pr82.wl%kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <w3pmxozyxra.wl%kuninori.morimoto.gx@renesas.com>

MAINCKSEL is [29:28], not [27:24]

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 arch/arm/mach-shmobile/clock-sh73a0.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-shmobile/clock-sh73a0.c b/arch/arm/mach-shmobile/clock-sh73a0.c
index 7da8af6..84fd33c 100644
--- a/arch/arm/mach-shmobile/clock-sh73a0.c
+++ b/arch/arm/mach-shmobile/clock-sh73a0.c
@@ -365,7 +365,7 @@ void __init sh73a0_clock_init(void)
 	__raw_writel(0x108, SD2CKCR);
 
 	/* detect main clock parent */
-	switch ((__raw_readl(CKSCR) >> 24) & 0x03) {
+	switch ((__raw_readl(CKSCR) >> 28) & 0x03) {
 	case 0:
 		main_clk.parent = &sh73a0_extal1_clk;
 		break;
-- 
1.7.4.1


  parent reply	other threads:[~2011-08-26  7:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-24  7:41 [PATCH] ARM: mach-shmobile: clock-sh73a0: modify MSTP order Kuninori Morimoto
2010-11-25  7:28 ` Paul Mundt
2011-08-26  7:27 ` Kuninori Morimoto [this message]
2011-08-29  3:36 ` [PATCH] ARM: mach-shmobile: clock-sh73a0: tidyup CKSCR main clock selecter Magnus Damm
2011-08-29  4:13 ` Kuninori Morimoto
2011-08-29  7:27 ` Paul Mundt
2012-01-23  5:10 ` [PATCH] ARM: mach-shmobile: clock-sh73a0: add DSIxPHY clock support Kuninori Morimoto
2012-01-24  1:41 ` Paul Mundt

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=874o14pr82.wl%kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=linux-sh@vger.kernel.org \
    /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 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.