]> git.sur5r.net Git - u-boot/commitdiff
AVR32: Make cacheflush cpu-dependent
authorOlav Morken <olavmrk@gmail.com>
Fri, 23 Jan 2009 11:56:27 +0000 (12:56 +0100)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 23 Feb 2009 09:34:23 +0000 (10:34 +0100)
The AT32UC3A series of processors doesn't contain any cache, and issuing
cache control instructions on those will cause an exception. This commit
makes cacheflush.h arch-dependent in preparation for the AT32UC3A-support.

Signed-off-by: Gunnar Rangoy <gunnar@rangoy.com>
Signed-off-by: Paul Driveklepp <pauldriveklepp@gmail.com>
Signed-off-by: Olav Morken <olavmrk@gmail.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
board/atmel/atstk1000/flash.c
board/earthlcd/favr-32-ezkit/flash.c
cpu/at32ap/cache.c
include/asm-avr32/dma-mapping.h
lib_avr32/board.c

index 4d380f3faca2436f02d8eb7a35dbfb103664719b..0ba06ddc5d87f9f56ff451a06254d72462745fa1 100644 (file)
@@ -22,7 +22,7 @@
 #include <common.h>
 
 #ifdef CONFIG_ATSTK1000_EXT_FLASH
-#include <asm/cacheflush.h>
+#include <asm/arch/cacheflush.h>
 #include <asm/io.h>
 #include <asm/sections.h>
 
index 5f73ff04df12a93e5b17e734e5e51db6db12ce58..0a2614667a2443a25a42b343bae8df6cea3aed22 100644 (file)
@@ -20,7 +20,7 @@
 #include <common.h>
 
 #ifdef CONFIG_FAVR32_EZKIT_EXT_FLASH
-#include <asm/cacheflush.h>
+#include <asm/arch/cacheflush.h>
 #include <asm/io.h>
 #include <asm/sections.h>
 
index 16a0565df2d977bb31f957ede83fdeed2f88b342..28b945669afe982ef2beceb22dc785f756d9efbc 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <common.h>
 
-#include <asm/cacheflush.h>
+#include <asm/arch/cacheflush.h>
 
 void dcache_clean_range(volatile void *start, size_t size)
 {
index 3b46fa3e62b906c8362d335b5b30b2178565b717..0be7804da389c7c42e0fef42429e3731e9879904 100644 (file)
@@ -23,7 +23,7 @@
 #define __ASM_AVR32_DMA_MAPPING_H
 
 #include <asm/io.h>
-#include <asm/cacheflush.h>
+#include <asm/arch/cacheflush.h>
 
 enum dma_data_direction {
        DMA_BIDIRECTIONAL       = 0,
index 959375a48f173354c641cb6be89eec78793acfbf..57115df09bf8bc954bc89796892f7eb18b60160a 100644 (file)
@@ -86,7 +86,7 @@ void *sbrk(ptrdiff_t increment)
 }
 
 #ifdef CONFIG_SYS_DMA_ALLOC_LEN
-#include <asm/cacheflush.h>
+#include <asm/arch/cacheflush.h>
 #include <asm/io.h>
 
 static unsigned long dma_alloc_start;