Skip to content
Snippets Groups Projects
Commit d8f2aa32 authored by Olav Morken's avatar Olav Morken Committed by Haavard Skinnemoen
Browse files

AVR32: Make cacheflush cpu-dependent


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: default avatarGunnar Rangoy <gunnar@rangoy.com>
Signed-off-by: default avatarPaul Driveklepp <pauldriveklepp@gmail.com>
Signed-off-by: default avatarOlav Morken <olavmrk@gmail.com>
Signed-off-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
parent ea393eb1
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <common.h> #include <common.h>
#ifdef CONFIG_ATSTK1000_EXT_FLASH #ifdef CONFIG_ATSTK1000_EXT_FLASH
#include <asm/cacheflush.h> #include <asm/arch/cacheflush.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/sections.h> #include <asm/sections.h>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <common.h> #include <common.h>
#ifdef CONFIG_FAVR32_EZKIT_EXT_FLASH #ifdef CONFIG_FAVR32_EZKIT_EXT_FLASH
#include <asm/cacheflush.h> #include <asm/arch/cacheflush.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/sections.h> #include <asm/sections.h>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <common.h> #include <common.h>
#include <asm/cacheflush.h> #include <asm/arch/cacheflush.h>
void dcache_clean_range(volatile void *start, size_t size) void dcache_clean_range(volatile void *start, size_t size)
{ {
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#define __ASM_AVR32_DMA_MAPPING_H #define __ASM_AVR32_DMA_MAPPING_H
#include <asm/io.h> #include <asm/io.h>
#include <asm/cacheflush.h> #include <asm/arch/cacheflush.h>
enum dma_data_direction { enum dma_data_direction {
DMA_BIDIRECTIONAL = 0, DMA_BIDIRECTIONAL = 0,
......
...@@ -86,7 +86,7 @@ void *sbrk(ptrdiff_t increment) ...@@ -86,7 +86,7 @@ void *sbrk(ptrdiff_t increment)
} }
#ifdef CONFIG_SYS_DMA_ALLOC_LEN #ifdef CONFIG_SYS_DMA_ALLOC_LEN
#include <asm/cacheflush.h> #include <asm/arch/cacheflush.h>
#include <asm/io.h> #include <asm/io.h>
static unsigned long dma_alloc_start; static unsigned long dma_alloc_start;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment