public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] OMAP3 updates for 32k timer reorg
@ 2007-11-13 22:45 Kevin Hilman
  2007-11-13 22:45 ` [PATCH 1/2] ARM: OMAP: Need to enable 32k-sync clock Kevin Hilman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kevin Hilman @ 2007-11-13 22:45 UTC (permalink / raw)
  To: linux-omap-open-source

A couple fixups to get OMAP3 working again after my previous 32k
sync timer updates.

Tested on 3430SDP and 2430SDP.

Kevin
--

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] ARM: OMAP: Need to enable 32k-sync clock
  2007-11-13 22:45 [PATCH 0/2] OMAP3 updates for 32k timer reorg Kevin Hilman
@ 2007-11-13 22:45 ` Kevin Hilman
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Kevin Hilman @ 2007-11-13 22:45 UTC (permalink / raw)
  To: linux-omap-open-source

[-- 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);
 

--

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: OMAP: Update 32k sync timer for OMAP3
  2007-11-13 22:45 [PATCH 0/2] OMAP3 updates for 32k timer reorg Kevin Hilman
  2007-11-13 22:45 ` [PATCH 1/2] ARM: OMAP: Need to enable 32k-sync clock Kevin Hilman
@ 2007-11-13 22:45 ` Kevin Hilman
  2007-11-23 20:27 ` [PATCH 0/2] OMAP3 updates for 32k timer reorg Tony Lindgren
  2 siblings, 0 replies; 4+ messages in thread
From: Kevin Hilman @ 2007-11-13 22:45 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: omap3-32k-sync-support.patch --]
[-- Type: text/plain, Size: 650 bytes --]

Signed-off-by: Kevin Hilman <khilman@mvista.com>

---
 arch/arm/plat-omap/common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: dev/arch/arm/plat-omap/common.c
===================================================================
--- dev.orig/arch/arm/plat-omap/common.c
+++ dev/arch/arm/plat-omap/common.c
@@ -191,7 +191,7 @@ console_initcall(omap_add_serial_console
 
 #if defined(CONFIG_ARCH_OMAP16XX)
 #define TIMER_32K_SYNCHRONIZED		0xfffbc410
-#elif defined(CONFIG_ARCH_OMAP24XX)
+#elif defined(CONFIG_ARCH_OMAP24XX) || defined(CONFIG_ARCH_OMAP34XX)
 #define TIMER_32K_SYNCHRONIZED		(OMAP2_32KSYNCT_BASE + 0x10)
 #endif
 

--

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] OMAP3 updates for 32k timer reorg
  2007-11-13 22:45 [PATCH 0/2] OMAP3 updates for 32k timer reorg Kevin Hilman
  2007-11-13 22:45 ` [PATCH 1/2] ARM: OMAP: Need to enable 32k-sync clock Kevin Hilman
  2007-11-13 22:45 ` [PATCH 2/2] ARM: OMAP: Update 32k sync timer for OMAP3 Kevin Hilman
@ 2007-11-23 20:27 ` Tony Lindgren
  2 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2007-11-23 20:27 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: linux-omap-open-source

* Kevin Hilman <khilman@mvista.com> [071113 14:50]:
> A couple fixups to get OMAP3 working again after my previous 32k
> sync timer updates.
> 
> Tested on 3430SDP and 2430SDP.

Pushing today.

Tony

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-23 20:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-13 22:45 [PATCH 0/2] OMAP3 updates for 32k timer reorg Kevin Hilman
2007-11-13 22:45 ` [PATCH 1/2] ARM: OMAP: Need to enable 32k-sync clock Kevin Hilman
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox