summaryrefslogtreecommitdiff
path: root/lib_m68k
diff options
context:
space:
mode:
authorTsiChungLiew <Tsi-Chung.Liew@freescale.com>2007-08-15 15:39:17 -0500
committerJohn Rigby <jrigby@freescale.com>2007-08-16 17:43:19 -0600
commitab77bc547ba561c25ea34457ed17aa0b2f7c2723 (patch)
treec7e9d3c146f22730638ca0c63f1e6f150bb9a6a2 /lib_m68k
parent81735b2568cf634d601c0d4a1bbc3a3882bc8eda (diff)
ColdFire: MCF5329 Update and cleanup
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
Diffstat (limited to 'lib_m68k')
-rw-r--r--lib_m68k/board.c2
-rw-r--r--lib_m68k/time.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib_m68k/board.c b/lib_m68k/board.c
index 395018c41f9..778ec788a81 100644
--- a/lib_m68k/board.c
+++ b/lib_m68k/board.c
@@ -692,7 +692,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
#endif
#if defined(CONFIG_NET_MULTI)
puts ("Net: ");
- eth_initialize (bd);
+ eth_initialize (bd);
#endif
#endif
diff --git a/lib_m68k/time.c b/lib_m68k/time.c
index 3dbce07213e..6c19059e62b 100644
--- a/lib_m68k/time.c
+++ b/lib_m68k/time.c
@@ -347,10 +347,9 @@ void udelay(unsigned long usec)
void dtimer_interrupt(void *not_used)
{
volatile dtmr_t *timerp = (dtmr_t *) (CFG_TMR_BASE);
- volatile int0_t *intp = (int0_t *) (CFG_INTR_BASE);
/* check for timer interrupt asserted */
- if ((intp->iprh0 & CFG_TMRINTR_MASK) == CFG_TMRINTR_MASK) {
+ if ((CFG_TMRPND_REG & CFG_TMRINTR_MASK) == CFG_TMRINTR_PEND) {
timerp->ter = (DTIM_DTER_CAP | DTIM_DTER_REF);
timestamp++;
return;