public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@mvista.com>
To: linux-omap-open-source@linux.omap.com
Subject: [PATCH 1/2] ARM: OMAP: Need to enable 32k-sync clock
Date: Tue, 13 Nov 2007 14:45:42 -0800	[thread overview]
Message-ID: <20071113224626.653078724@mvista.com> (raw)
In-Reply-To: 20071113224541.567151514@mvista.com

[-- Attachment #1: use-sync-32k-clock.patch --]
[-- Type: text/plain, Size: 865 bytes --]

When CONFIG_OMAP_RESET_CLOCKS=y is enabled on OMAP3, the 32k sync
clock is disabled, resulting in a crash when any access to it is done,
including a sched_clock().

Signed-off-by: Kevin Hilman <khilman@mvista.com>
---
 arch/arm/plat-omap/common.c |    6 ++++++
 1 file changed, 6 insertions(+)

Index: dev/arch/arm/plat-omap/common.c
===================================================================
--- dev.orig/arch/arm/plat-omap/common.c
+++ dev/arch/arm/plat-omap/common.c
@@ -236,6 +236,12 @@ static int __init omap_init_clocksource_
 			"%s: can't register clocksource!\n";
 
 	if (cpu_is_omap16xx() || cpu_class_is_omap2()) {
+		struct clk *sync_32k_ick;
+
+		sync_32k_ick = clk_get(NULL, "omap_32ksync_ick");
+		if (sync_32k_ick)
+			clk_enable(sync_32k_ick);
+
 		clocksource_32k.mult = clocksource_hz2mult(32768,
 					    clocksource_32k.shift);
 

--

  reply	other threads:[~2007-11-13 22:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-13 22:45 [PATCH 0/2] OMAP3 updates for 32k timer reorg Kevin Hilman
2007-11-13 22:45 ` Kevin Hilman [this message]
2007-11-13 22:45 ` [PATCH 2/2] ARM: OMAP: Update 32k sync timer for OMAP3 Kevin Hilman
2007-11-23 20:27 ` [PATCH 0/2] OMAP3 updates for 32k timer reorg Tony Lindgren

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=20071113224626.653078724@mvista.com \
    --to=khilman@mvista.com \
    --cc=linux-omap-open-source@linux.omap.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