Browse Source

sh: dcache write-back for R7780RP PIO.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 18 years ago
parent
commit
5904539b7f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      arch/sh/boards/renesas/r7780rp/io.c

+ 4 - 0
arch/sh/boards/renesas/r7780rp/io.c

@@ -214,6 +214,8 @@ void r7780rp_insw(unsigned long port, void *dst, unsigned long count)
 
 	while (count--)
 		*buf++ = *p;
+
+	flush_dcache_all();
 }
 
 void r7780rp_insl(unsigned long port, void *dst, unsigned long count)
@@ -271,6 +273,8 @@ void r7780rp_outsw(unsigned long port, const void *src, unsigned long count)
 
 	while (count--)
 		*p = *buf++;
+
+	flush_dcache_all();
 }
 
 void r7780rp_outsl(unsigned long port, const void *src, unsigned long count)