ppc/85xx: Simplify the top makefile for 36-bit config for MPC8572DS
[oweals/u-boot.git] / cpu / mcf532x / start.S
index 7a3eb5f98c558cb1f288e5df3ba8586777946793..a46c47adcaa3ff0ba3ac43defa1df981623d7abb 100644 (file)
@@ -2,6 +2,9 @@
  * Copyright (C) 2003  Josef Baumgartner <josef.baumgartner@telex.de>
  * Based on code from Bernhard Kuhn <bkuhn@metrowerks.com>
  *
+ * (C) Copyright 2004-2008 Freescale Semiconductor, Inc.
+ * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
+ *
  * See file CREDITS for list of people who contributed to this
  * project.
  *
@@ -22,6 +25,7 @@
  */
 
 #include <config.h>
+#include <timestamp.h>
 #include "version.h"
 
 #ifndef         CONFIG_IDENT_STRING
@@ -140,6 +144,14 @@ _start:
        movec   %d0, %ACR0
        movec   %d0, %ACR1
 
+#ifdef CONFIG_MCF5301x
+       move.l  #(0xFC0a0010), %a0
+       move.w  (%a0), %d0
+       and.l   %d0, 0xEFFF
+
+       move.w  %d0, (%a0)
+#endif
+
        /* initialize general use internal ram */
        move.l #0, %d0
        move.l #(CONFIG_SYS_INIT_RAM_ADDR+CONFIG_SYS_INIT_RAM_END-8), %a1
@@ -331,6 +343,6 @@ dcache_status:
        .globl  version_string
 version_string:
        .ascii U_BOOT_VERSION
-       .ascii " (", __DATE__, " - ", __TIME__, ")"
+       .ascii " (", U_BOOT_DATE, " - ", U_BOOT_TIME, ")"
        .ascii CONFIG_IDENT_STRING, "\0"
        .align 4