diff options
| author | wdenk <wdenk> | 2004-02-12 00:47:09 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2004-02-12 00:47:09 +0000 | 
| commit | bf9e3b38f77c2eac620263dd60437c6ec47a27bf (patch) | |
| tree | d03891090553d167f3eb08d7f9c3f2532e43fcc2 /cpu/coldfire/cpu.c | |
| parent | a2d18bb7d31e7b971386fef505ff0218f3b6e893 (diff) | |
| download | olio-uboot-2014.01-bf9e3b38f77c2eac620263dd60437c6ec47a27bf.tar.xz olio-uboot-2014.01-bf9e3b38f77c2eac620263dd60437c6ec47a27bf.zip | |
* Some code cleanup
* Patch by Josef Baumgartner, 10 Feb 2004:
  Fixes for Coldfire port
* Patch by Brad Kemp, 11 Feb 2004:
  Fix CFI flash driver problems
Diffstat (limited to 'cpu/coldfire/cpu.c')
| -rw-r--r-- | cpu/coldfire/cpu.c | 87 | 
1 files changed, 0 insertions, 87 deletions
| diff --git a/cpu/coldfire/cpu.c b/cpu/coldfire/cpu.c deleted file mode 100644 index 5ce063990..000000000 --- a/cpu/coldfire/cpu.c +++ /dev/null @@ -1,87 +0,0 @@ -/* - * (C) Copyright 2000-2003 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - */ - -#include <common.h> -#include <watchdog.h> -#include <command.h> -#ifdef CONFIG_M5272 -#include <asm/m5272.h> -#endif -#ifdef CONFIG_M5282 -#include <asm/m5282.h> -#endif -#include <asm/cache.h> - -int do_reset (cmd_tbl_t * cmdtp, bd_t * bd, int flag, int argc, char *argv[]) -{ -	return 0; -} - -unsigned long get_tbclk (void) -{ -	return CFG_HZ; -} - -int checkcpu (void) -{ -#ifdef CONFIG_M5272 -	puts ("MOTOROLA Coldfire MCF5272\n"); -#endif -#ifdef CONFIG_M5282 -	puts ("MOTOROLA Coldfire MCF5282\n"); -#endif -	return 0; -} - -void do_exception (void) -{ -	printf ("\n\n*** Unexpected exception ... Reset Board! ***\n"); -	for (;;); -} - -void do_buserror (void) -{ -	printf ("\n\n*** Bus error ... Reset Board! ***\n"); -	for (;;); -} - -void do_addresserror (void) -{ -	printf ("\n\n*** Address error ... Reset Board! ***\n"); -	for (;;); -} - -void trap_init (ulong value) -{ -	extern void buserror_handler (void); -	extern void addresserror_handler (void); -	extern void exception_handler (void); -	unsigned long *vec = 0; -	int i; - -	vec[2] = buserror_handler; -	vec[3] = addresserror_handler; -	for (i = 4; i < 256; i++) { -		vec[i] = exception_handler; -	} -} |