]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 4864/1: Enable write buffer coalescing on IOP
authorArnaud Patard <arnaud.patard@rtp-net.org>
Thu, 13 Mar 2008 08:53:21 +0000 (09:53 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 20 Mar 2008 15:59:30 +0000 (15:59 +0000)
Some bootloaders are disabling write buffer coalescing. Enable it back
under linux.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/proc-xscale.S

index c156ddab9a2d8814af060b0d8c3295767e8a6945..016690b9d5648c3e8b717a235358bc22e996f1d8 100644 (file)
@@ -114,6 +114,10 @@ clean_addr:        .word   CLEAN_ADDR
  * Nothing too exciting at the moment
  */
 ENTRY(cpu_xscale_proc_init)
+       @ enable write buffer coalescing. Some bootloader disable it
+       mrc     p15, 0, r1, c1, c0, 1
+       bic     r1, r1, #1
+       mcr     p15, 0, r1, c1, c0, 1
        mov     pc, lr
 
 /*