summaryrefslogtreecommitdiff
path: root/cpu/mcf52x2/cpu.c
diff options
context:
space:
mode:
authorstroese <stroese>2004-12-16 18:09:49 +0000
committerstroese <stroese>2004-12-16 18:09:49 +0000
commit8c725b9364ac92338d659dd31457223ed0e7f538 (patch)
tree1b3b242cc9c885fbab4fa338868f78a7218536be /cpu/mcf52x2/cpu.c
parenta20b27a36b7b1f593e18b4efd506e5f01a392dc6 (diff)
downloadu-boot-imx-8c725b9364ac92338d659dd31457223ed0e7f538.zip
u-boot-imx-8c725b9364ac92338d659dd31457223ed0e7f538.tar.gz
u-boot-imx-8c725b9364ac92338d659dd31457223ed0e7f538.tar.bz2
Coldfire MCF5249 support added
Diffstat (limited to 'cpu/mcf52x2/cpu.c')
-rw-r--r--cpu/mcf52x2/cpu.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/cpu/mcf52x2/cpu.c b/cpu/mcf52x2/cpu.c
index b012222..32a524f 100644
--- a/cpu/mcf52x2/cpu.c
+++ b/cpu/mcf52x2/cpu.c
@@ -34,6 +34,10 @@
#endif
+#ifdef CONFIG_M5249
+#include <asm/m5249.h>
+#endif
+
#ifdef CONFIG_M5272
int do_reset (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[]) {
@@ -121,3 +125,22 @@ int do_reset (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[]) {
return 0;
};
#endif
+
+#ifdef CONFIG_M5249 /* test-only: todo... */
+int checkcpu (void)
+{
+ char buf[32];
+
+ printf ("CPU: MOTOROLA Coldfire MCF5249 at %s MHz\n", strmhz(buf, CFG_CLK));
+ return 0;
+}
+
+int do_reset (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[]) {
+ /* enable watchdog, set timeout to 0 and wait */
+ mbar_writeByte(MCFSIM_SYPCR, 0xc0);
+ while (1);
+
+ /* we don't return! */
+ return 0;
+};
+#endif