2 * (C) Copyright 2000-2003
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
28 #include <asm/m5272.h>
31 #include <asm/m5282.h>
33 #include <asm/cache.h>
35 int do_reset (cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char *argv[])
40 unsigned long get_tbclk (void)
48 puts ("MOTOROLA Coldfire MCF5272\n");
51 puts ("MOTOROLA Coldfire MCF5282\n");
56 void do_exception (void)
58 printf ("\n\n*** Unexpected exception ... Reset Board! ***\n");
62 void do_buserror (void)
64 printf ("\n\n*** Bus error ... Reset Board! ***\n");
68 void do_addresserror (void)
70 printf ("\n\n*** Address error ... Reset Board! ***\n");
74 void trap_init (ulong value)
76 extern void buserror_handler (void);
77 extern void addresserror_handler (void);
78 extern void exception_handler (void);
79 unsigned long *vec = 0;
82 vec[2] = buserror_handler;
83 vec[3] = addresserror_handler;
84 for (i = 4; i < 256; i++) {
85 vec[i] = exception_handler;