From: DENX Support System Date: Fri, 31 Mar 2006 23:50:40 +0200 Subject: [DNX#2006033142000963] [U-Boot-Users] [PATCH] Add support for Freescale M [...] Message-ID: <1143841840.102944.044811861@castor.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello list, inside the automatic U-Boot patch tracking system a new ticket [DNX#2006033142000963] was created: > > > This change (and the two that will follow it) can be pulled from > http://labxtechnologies.com/u-boot.git. This is in preparation for the > next patch adds a new board that uses the 5271. Please let me know if > this patch or the following ones need any work. > > CHANGELOG > * Add support for Freescale M5271 processor > Patch by Zachary Landau, 26 Jan 2006 > > Signed-off-by: Zachary P. Landau > > > --- > > CHANGELOG | 3 +++ > cpu/mcf52x2/cpu.c | 40 > ++++++++++++++++++++++++++++++++++++++++ > cpu/mcf52x2/cpu_init.c | 37 > +++++++++++++++++++++++++++++++++++++ > cpu/mcf52x2/fec.c | 22 +++++++++++++++++++++- > cpu/mcf52x2/interrupts.c | 7 ++++++- > cpu/mcf52x2/serial.c | 8 +++++++- > cpu/mcf52x2/start.S | 34 +++++++++++++++++++++++++++++++++- > include/asm-m68k/mcftimer.h | 2 +- > include/asm-m68k/mcfuart.h | 2 +- > include/asm-m68k/ptrace.h | 2 +- > lib_m68k/time.c | 9 +++++++-- > 11 files changed, 157 insertions(+), 9 deletions(-) > > eacbd317757327e8e7f018f5701c950429c4c6ae > diff --git a/CHANGELOG b/CHANGELOG > index 2f10f7f..607cde1 100644 > --- a/CHANGELOG > +++ b/CHANGELOG > @@ -2,6 +2,9 @@ > Changes since U-Boot 1.1.4: > ====================================================================== > > +* Add support for Freescale M5271 processor > + Patch by Zachary Landau, 26 Jan 2006 > + > * Fix 28F256J3A support on PM520 board > (without bank-switching only 32 MB can be accessed) > > diff --git a/cpu/mcf52x2/cpu.c b/cpu/mcf52x2/cpu.c > index 32a524f..302832b 100644 > --- a/cpu/mcf52x2/cpu.c > +++ b/cpu/mcf52x2/cpu.c > @@ -25,6 +25,11 @@ > #include > #include > > +#ifdef CONFIG_M5271 > +#include > +#include > +#endif > + > #ifdef CONFIG_M5272 > #include > #include > @@ -38,6 +43,41 @@ > #include > #endif > > +#ifdef CONFIG_M5271 > +int checkcpu (void) > +{ > + puts ("CPU: MOTOROLA Coldfire MCF5271\n"); > + return 0; > +} > + > +int do_reset (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char > *argv[]) { > + mbar_writeByte(MCF_RCM_RCR, > + MCF_RCM_RCR_SOFTRST | MCF_RCM_RCR_FRCRSTOUT); > + return 0; > +}; > + > +#if defined(CONFIG_WATCHDOG) > +void watchdog_reset (void) > +{ > + mbar_writeShort(MCF_WTM_WSR, 0x5555); > + mbar_writeShort(MCF_WTM_WSR, 0xAAAA); > +} > + > +int watchdog_disable (void) > +{ > + mbar_writeShort(MCF_WTM_WCR, 0); > + return (0); > +} > + > +int watchdog_init (void) > +{ > + mbar_writeShort(MCF_WTM_WCNTR, CONFIG_WATCHDOG_TIMEOUT); > + mbar_writeShort(MCF_WTM_WCR, MCF_WTM_WCR_EN); > + return (0); > +} > +#endif /* #ifdef CONFIG_WATCHDOG */ Your U-Boot support team