Skip to contentSkip to conversation

Coldfire M5271: Activate u-boot system timer interrupt.

PATCH New Richard Retanubun 1 participant 1 message Mar 26, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Coldfire M5271: Activate u-boot system timer interrupt.

From abd87852f80b84e77ab264acdb36e7814302b097 Mon Sep 17 00:00:00 2001
From: Richard Retanubun <[email protected]>
Date: Thu, 26 Mar 2009 15:26:01 -0400
Subject: [PATCH] Coldfire M5271: Activate u-boot system timer interrupt.

This patch assigns the u-boot system timer interrupt to interrupt level 3, priority 6. Without this patch the interrupt will be a level 0, priority 0, which disables it and cause u-boot functions that relies on the timer (e.g. sleep command) to never return.

---
  include/asm-m68k/immap.h |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
include/asm-m68k/immap.h +1 -1
index 93f730f..6a3ef03 100644
@@ -149,7 +149,7 @@
  #define CONFIG_SYS_TMRINTR_NO		(INT0_LO_DTMR3)
  #define CONFIG_SYS_TMRINTR_MASK	(INTC_IPRL_INT22)
  #define CONFIG_SYS_TMRINTR_PEND	(CONFIG_SYS_TMRINTR_MASK)
-#define CONFIG_SYS_TMRINTR_PRI		(0)		/* Level must include inorder to work */
+#define CONFIG_SYS_TMRINTR_PRI		(0x1E) /* Interrupt level 3, priority 6 */
  #define CONFIG_SYS_TIMER_PRESCALER	(((gd->bus_clk / 1000000) - 1) << 8)
  #endif
 
Signature · 1 line
1.5.6.5