summaryrefslogtreecommitdiff
path: root/lib_m68k
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2006-12-20 00:27:32 +0100
committerBartlomiej Sieka <tur@semihalf.com>2006-12-20 00:27:32 +0100
commitdaa6e418bcc0c717752e8de939c213c790286096 (patch)
treeecff62dbff2d7935374c919c9329d5a3d91cc33d /lib_m68k
parentcdb97a6678826f85e7c69eae6a1c113d034c9b10 (diff)
Preliminary support for the iDMR board (ColdFire).
Diffstat (limited to 'lib_m68k')
-rw-r--r--lib_m68k/time.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib_m68k/time.c b/lib_m68k/time.c
index d45e470aeb9..12e38f0577f 100644
--- a/lib_m68k/time.c
+++ b/lib_m68k/time.c
@@ -153,7 +153,11 @@ void udelay(unsigned long usec)
timerp[MCFTIMER_PMR] = 0;
/* set period to 1 us */
timerp[MCFTIMER_PCSR] =
+#ifdef CONFIG_M5271
+ (6 << 8) | MCFTIMER_PCSR_EN | MCFTIMER_PCSR_OVW;
+#else /* !CONFIG_M5271 */
(5 << 8) | MCFTIMER_PCSR_EN | MCFTIMER_PCSR_OVW;
+#endif /* CONFIG_M5271 */
timerp[MCFTIMER_PMR] = tmp;
while (timerp[MCFTIMER_PCNTR] > 0);
@@ -171,7 +175,11 @@ void timer_init (void)
timerp[MCFTIMER_PCSR] = MCFTIMER_PCSR_OVW;
timerp[MCFTIMER_PMR] = lastinc = 0;
timerp[MCFTIMER_PCSR] =
+#ifdef CONFIG_M5271
+ (6 << 8) | MCFTIMER_PCSR_EN | MCFTIMER_PCSR_OVW;
+#else /* !CONFIG_M5271 */
(5 << 8) | MCFTIMER_PCSR_EN | MCFTIMER_PCSR_OVW;
+#endif /* CONFIG_M5271 */
}
void set_timer (ulong t)