All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] [PATCH] ipipe i.MXL freeze's boot
@ 2009-02-25 11:05 Gwenhaël
  2009-02-25 13:06 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 6+ messages in thread
From: Gwenhaël @ 2009-02-25 11:05 UTC (permalink / raw)
  To: adeos-main


With i.MXL processor, kernel patched with
adeos-2.6.27-ipipe-1.12-00.patch wait indefinitly for timer
calibration.
Tick event never appear. This patch modify acktimer() in
arch/arm/mach-imx/time.c.

I need to know if this modification is good (without adding
new errors).

Thank you very much

Gwenhael

Signed-off-by: gwenhael.goavec-merou@domain.hid


---- diff -ru a/arch/arm/mach-imx/irq.c b/arch/arm/mach-imx/irq.c
--- a/arch/arm/mach-imx/irq.c    2009-02-17 11:32:52.000000000 +0100
+++ b/arch/arm/mach-imx/irq.c       2009-02-23 14:12:43.000000000 +0100
@@ -35,7 +35,7 @@
 #include <asm/io.h>
 
 #include <asm/mach/irq.h>
-#include <asm/arch/imx-regs.h>
+#include <mach/imx-regs.h>
 
 
 /* Used for IMX INTERRUPT priority: Still Experimental */ 
diff -ru a/arch/arm/mach-imx/time.c b/arch/arm/mach-imx/time.c
--- a/arch/arm/mach-imx/time.c  2009-02-24 15:26:42.000000000 +0100
+++ b/arch/arm/mach-imx/time.c      2009-02-24 15:24:45.000000000 +0100
@@ -294,7 +294,12 @@
 #ifdef CONFIG_IPIPE
 void __ipipe_mach_acktimer(void)
 {  
+  uint32_t tstat;
+  tstat = IMX_TSTAT(TIMER_BASE);
   IMX_TSTAT(TIMER_BASE) = 0;
+  if (likely(tstat & TSTAT_COMP)) {
+    ipipe_mach_update_tsc(void);
+  }
 }
 
 static void ipipe_mach_update_tsc(void)


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

end of thread, other threads:[~2009-02-27 21:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-25 11:05 [Adeos-main] [PATCH] ipipe i.MXL freeze's boot Gwenhaël
2009-02-25 13:06 ` Gilles Chanteperdrix
2009-02-25 15:09   ` Gwenhaël
2009-02-25 15:14     ` Gilles Chanteperdrix
2009-02-26 16:33       ` Gilles Chanteperdrix
2009-02-27 21:23         ` gwenhael.goavec

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.