From f4863a7aec41f1f78fe93eade700b15b287a5ef7 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sat, 7 Feb 2004 01:27:10 +0000 Subject: * Patch by liang a lei, 9 Jan 2004: Fix Intel 28F128J3 ID in include/flash.h * Patch by Masami Komiya, 09 Jan 2004: add support for TB0229 board (NEC VR4131 MIPS processor) * Patch by Leon Kukovec, 12 Dec 2003: changed extern __inline__ into static __inline__ in include/linux/byteorder/swab.h --- cpu/mips/cpu.c | 2 +- cpu/mips/start.S | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'cpu') diff --git a/cpu/mips/cpu.c b/cpu/mips/cpu.c index e73d138..f48675e 100644 --- a/cpu/mips/cpu.c +++ b/cpu/mips/cpu.c @@ -30,7 +30,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { #if defined(CONFIG_INCA_IP) *INCA_IP_WDT_RST_REQ = 0x3f; -#elif defined(CONFIG_PURPLE) +#elif defined(CONFIG_PURPLE) || defined(CONFIG_TB0229) void (*f)(void) = (void *) 0xbfc00000; f(); diff --git a/cpu/mips/start.S b/cpu/mips/start.S index 59c6acf..45a90a8 100644 --- a/cpu/mips/start.S +++ b/cpu/mips/start.S @@ -214,7 +214,11 @@ reset: mtc0 zero, CP0_WATCHHI /* STATUS register */ +#ifdef CONFIG_TB0229 + li k0, ST0_CU0 +#else mfc0 k0, CP0_STATUS +#endif li k1, ~ST0_IE and k0, k1 mtc0 k0, CP0_STATUS -- cgit v1.1