diff options
author | Bartlomiej Sieka <tur@semihalf.com> | 2006-12-20 00:27:32 +0100 |
---|---|---|
committer | Bartlomiej Sieka <tur@semihalf.com> | 2006-12-20 00:27:32 +0100 |
commit | daa6e418bcc0c717752e8de939c213c790286096 (patch) | |
tree | ecff62dbff2d7935374c919c9329d5a3d91cc33d /lib_m68k/time.c | |
parent | cdb97a6678826f85e7c69eae6a1c113d034c9b10 (diff) | |
download | u-boot-imx-daa6e418bcc0c717752e8de939c213c790286096.zip u-boot-imx-daa6e418bcc0c717752e8de939c213c790286096.tar.gz u-boot-imx-daa6e418bcc0c717752e8de939c213c790286096.tar.bz2 |
Preliminary support for the iDMR board (ColdFire).
Diffstat (limited to 'lib_m68k/time.c')
-rw-r--r-- | lib_m68k/time.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib_m68k/time.c b/lib_m68k/time.c index d45e470..12e38f0 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) |