Add Dcbz(), Dcbi() and Dcbf() routines for MPC83xx.
authorMarian Balakowicz <m8@semihalf.com>
Tue, 14 Mar 2006 15:02:31 +0000 (16:02 +0100)
committerMarian Balakowicz <m8@semihalf.com>
Tue, 14 Mar 2006 15:02:31 +0000 (16:02 +0100)
CHANGELOG
cpu/mpc83xx/start.S
include/common.h

index e40ba053e910e1f30e3c773e1415fcc9cf916f20..7a8a2f3851cb55fa8bb1bdd51a8ffc0b760d13a8 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,8 @@
 Changes since U-Boot 1.1.4:
 ======================================================================
 
+* Add Dcbz(), Dcbi() and Dcbf() routines for MPC83xx.
+
 * Correct shift offsets in icache_status and dcache_status for MPC83xx.
 
 * Add support for DS1374 RTC chip.
index 324f6c36fe6bb870afd644a7b6c12eb649cf2092..6e02cce799d7dd48b833c9b274e751e58cbc3b23 100644 (file)
@@ -836,6 +836,40 @@ get_pvr:
        mfspr   r3, PVR
        blr
 
+/*------------------------------------------------------------------------------- */
+/* Function:    ppcDcbf */
+/* Description:         Data Cache block flush */
+/* Input:       r3 = effective address */
+/* Output:      none. */
+/*------------------------------------------------------------------------------- */
+       .globl  ppcDcbf
+ppcDcbf:
+       dcbf    r0,r3
+       blr
+
+/*------------------------------------------------------------------------------- */
+/* Function:    ppcDcbi */
+/* Description:         Data Cache block Invalidate */
+/* Input:       r3 = effective address */
+/* Output:      none. */
+/*------------------------------------------------------------------------------- */
+       .globl  ppcDcbi
+ppcDcbi:
+       dcbi    r0,r3
+       blr
+
+/*--------------------------------------------------------------------------
+ * Function:    ppcDcbz
+ * Description:         Data Cache block zero.
+ * Input:       r3 = effective address
+ * Output:      none.
+ *-------------------------------------------------------------------------- */
+
+       .globl  ppcDcbz
+ppcDcbz:
+       dcbz    r0,r3
+       blr
+
 /*-------------------------------------------------------------------*/
 
 /*
index d2570a803ea45eb96b924c956e015a3d3f7df65d..5d8b15628b5d7aa8587bb2020c898674eebeea00 100644 (file)
@@ -365,7 +365,8 @@ void        trap_init     (ulong);
     defined (CONFIG_75x)       || \
     defined (CONFIG_74xx)      || \
     defined (CONFIG_MPC8220)   || \
-    defined(CONFIG_MPC85xx)
+    defined (CONFIG_MPC85xx)   || \
+    defined (CONFIG_MPC83XX)
 unsigned char  in8(unsigned int);
 void           out8(unsigned int, unsigned char);
 unsigned short in16(unsigned int);