public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP1: Fix CONFIG_DEBUG_LL
@ 2006-10-28  6:15 Dirk Behme
  0 siblings, 0 replies; only message in thread
From: Dirk Behme @ 2006-10-28  6:15 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]


Fix broken CONFIG_DEBUG_LL. In case of low level debugging
reconfigure some clocks early.

See

http://source.mvista.com/git/gitweb.cgi?p=linux-omap-2.6.git;a=commitdiff;h=3bfb289ccc6c4624fd5ff0381546935e105f4093

too.

   Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>



[-- Attachment #2: omap1_CONFIG_DEBUG_LL_patch.txt --]
[-- Type: text/plain, Size: 640 bytes --]

Index: linux-osk/arch/arm/mach-omap1/clock.c
===================================================================
--- linux-osk.orig/arch/arm/mach-omap1/clock.c
+++ linux-osk/arch/arm/mach-omap1/clock.c
@@ -649,6 +649,13 @@ int __init omap1_clk_init(void)
 	int crystal_type = 0; /* Default 12 MHz */
 	u32 reg;
 
+#ifdef CONFIG_DEBUG_LL
+	/* Resets some clocks that may be left on from bootloader,
+ 	 * but leaves serial clocks on.
+ 	 */
+	omap_writel(0x3 << 29, MOD_CONF_CTRL_0);
+#endif
+
 	/* USB_REQ_EN will be disabled later if necessary (usb_dc_ck) */
 	reg = omap_readw(SOFT_REQ_REG) & (1 << 4);
 	omap_writew(reg, SOFT_REQ_REG);


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-28  6:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-28  6:15 [PATCH] ARM: OMAP1: Fix CONFIG_DEBUG_LL Dirk Behme

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