mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 01:51:33 +00:00
Add Dcbz(), Dcbi() and Dcbf() routines for MPC83xx.
This commit is contained in:
parent
a7c66ad2e5
commit
cd94ba397e
3 changed files with 38 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
Changes since U-Boot 1.1.4:
|
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.
|
* Correct shift offsets in icache_status and dcache_status for MPC83xx.
|
||||||
|
|
||||||
* Add support for DS1374 RTC chip.
|
* Add support for DS1374 RTC chip.
|
||||||
|
|
|
@ -836,6 +836,40 @@ get_pvr:
|
||||||
mfspr r3, PVR
|
mfspr r3, PVR
|
||||||
blr
|
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
|
||||||
|
|
||||||
/*-------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -365,7 +365,8 @@ void trap_init (ulong);
|
||||||
defined (CONFIG_75x) || \
|
defined (CONFIG_75x) || \
|
||||||
defined (CONFIG_74xx) || \
|
defined (CONFIG_74xx) || \
|
||||||
defined (CONFIG_MPC8220) || \
|
defined (CONFIG_MPC8220) || \
|
||||||
defined(CONFIG_MPC85xx)
|
defined (CONFIG_MPC85xx) || \
|
||||||
|
defined (CONFIG_MPC83XX)
|
||||||
unsigned char in8(unsigned int);
|
unsigned char in8(unsigned int);
|
||||||
void out8(unsigned int, unsigned char);
|
void out8(unsigned int, unsigned char);
|
||||||
unsigned short in16(unsigned int);
|
unsigned short in16(unsigned int);
|
||||||
|
|
Loading…
Add table
Reference in a new issue