summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Swarthout <Ed.Swarthout@freescale.com>2007-09-26 21:35:54 (GMT)
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2007-09-26 21:50:02 (GMT)
commit1487adbdcf9594bb2eb686325a6f9540dad1b70a (patch)
tree66eef92af0c7bb8f21647cc0712031a4c936d866
parent56a9270521baaa00e12639a978302a67f61ef060 (diff)
downloadu-boot-fsl-qoriq-1487adbdcf9594bb2eb686325a6f9540dad1b70a.tar.xz
85xx io out functions need sync after write.
This fixes the mc146818 rtc_read/write functions for 85xx. Signed-off-by: Ed Swarthout <Ed.Swarthout@freescale.com>
-rw-r--r--cpu/mpc85xx/start.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu/mpc85xx/start.S b/cpu/mpc85xx/start.S
index 2c98c2a..5d65190 100644
--- a/cpu/mpc85xx/start.S
+++ b/cpu/mpc85xx/start.S
@@ -701,6 +701,7 @@ in8:
.globl out8
out8:
stb r4,0x0000(r3)
+ sync
blr
/*------------------------------------------------------------------------------- */
@@ -710,6 +711,7 @@ out8:
.globl out16
out16:
sth r4,0x0000(r3)
+ sync
blr
/*------------------------------------------------------------------------------- */
@@ -719,6 +721,7 @@ out16:
.globl out16r
out16r:
sthbrx r4,r0,r3
+ sync
blr
/*------------------------------------------------------------------------------- */
@@ -728,6 +731,7 @@ out16r:
.globl out32
out32:
stw r4,0x0000(r3)
+ sync
blr
/*------------------------------------------------------------------------------- */
@@ -737,6 +741,7 @@ out32:
.globl out32r
out32r:
stwbrx r4,r0,r3
+ sync
blr
/*------------------------------------------------------------------------------- */