From b6e4c4033c4f889c452c511d38c77808c67f9cf7 Mon Sep 17 00:00:00 2001 From: wdenk Date: Fri, 2 Jan 2004 16:05:07 +0000 Subject: * Patch by Denis Peter, 8 Dec 2003 - add support for the PATI board (MPC555) - add SPI support for the MPC5xx * Patch by Anders Larsen, 08 Dec 2003: add configuration options CONFIG_SERIAL_TAG and CONFIG_REVISION_TAG to pass ATAG_SERIAL and ATAG_REVISION, resp., to the ARM target; cleanup some redundand #defines --- cpu/mpc5xx/cpu.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'cpu/mpc5xx/cpu.c') diff --git a/cpu/mpc5xx/cpu.c b/cpu/mpc5xx/cpu.c index cc695118e..0c22a31f0 100644 --- a/cpu/mpc5xx/cpu.c +++ b/cpu/mpc5xx/cpu.c @@ -122,12 +122,30 @@ unsigned long get_tbclk (void) return (oscclk / 16); } +void dcache_enable (void) +{ + return; +} + +void dcache_disable (void) +{ + return; +} + +int dcache_status (void) +{ + return 0; /* always off */ +} /* * Reset board */ int do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) { +#if defined(CONFIG_PATI) + volatile ulong *addr = (ulong *) CFG_RESET_ADDRESS; + *addr = 1; +#else ulong addr; /* Interrupts off, enable reset */ @@ -150,5 +168,6 @@ int do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) addr = CFG_MONITOR_BASE - sizeof (ulong); #endif ((void (*) (void)) addr) (); +#endif /* #if defined(CONFIG_PATI) */ return 1; } -- cgit v1.2.3-70-g09d2