diff options
Diffstat (limited to 'include/asm-blackfin/cacheflush.h')
-rw-r--r-- | include/asm-blackfin/cacheflush.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/asm-blackfin/cacheflush.h b/include/asm-blackfin/cacheflush.h index e5e000de3c36..d81a77545a04 100644 --- a/include/asm-blackfin/cacheflush.h +++ b/include/asm-blackfin/cacheflush.h | |||
@@ -48,9 +48,9 @@ extern void blackfin_dflush_page(void *); | |||
48 | 48 | ||
49 | static inline void flush_icache_range(unsigned start, unsigned end) | 49 | static inline void flush_icache_range(unsigned start, unsigned end) |
50 | { | 50 | { |
51 | #if defined(CONFIG_BLKFIN_DCACHE) && defined(CONFIG_BLKFIN_CACHE) | 51 | #if defined(CONFIG_BFIN_DCACHE) && defined(CONFIG_BFIN_ICACHE) |
52 | 52 | ||
53 | # if defined(CONFIG_BLKFIN_WT) | 53 | # if defined(CONFIG_BFIN_WT) |
54 | blackfin_icache_flush_range((start), (end)); | 54 | blackfin_icache_flush_range((start), (end)); |
55 | # else | 55 | # else |
56 | blackfin_icache_dcache_flush_range((start), (end)); | 56 | blackfin_icache_dcache_flush_range((start), (end)); |
@@ -58,10 +58,10 @@ static inline void flush_icache_range(unsigned start, unsigned end) | |||
58 | 58 | ||
59 | #else | 59 | #else |
60 | 60 | ||
61 | # if defined(CONFIG_BLKFIN_CACHE) | 61 | # if defined(CONFIG_BFIN_ICACHE) |
62 | blackfin_icache_flush_range((start), (end)); | 62 | blackfin_icache_flush_range((start), (end)); |
63 | # endif | 63 | # endif |
64 | # if defined(CONFIG_BLKFIN_DCACHE) | 64 | # if defined(CONFIG_BFIN_DCACHE) |
65 | blackfin_dcache_flush_range((start), (end)); | 65 | blackfin_dcache_flush_range((start), (end)); |
66 | # endif | 66 | # endif |
67 | 67 | ||
@@ -74,12 +74,12 @@ do { memcpy(dst, src, len); \ | |||
74 | } while (0) | 74 | } while (0) |
75 | #define copy_from_user_page(vma, page, vaddr, dst, src, len) memcpy(dst, src, len) | 75 | #define copy_from_user_page(vma, page, vaddr, dst, src, len) memcpy(dst, src, len) |
76 | 76 | ||
77 | #if defined(CONFIG_BLKFIN_DCACHE) | 77 | #if defined(CONFIG_BFIN_DCACHE) |
78 | # define invalidate_dcache_range(start,end) blackfin_dcache_invalidate_range((start), (end)) | 78 | # define invalidate_dcache_range(start,end) blackfin_dcache_invalidate_range((start), (end)) |
79 | #else | 79 | #else |
80 | # define invalidate_dcache_range(start,end) do { } while (0) | 80 | # define invalidate_dcache_range(start,end) do { } while (0) |
81 | #endif | 81 | #endif |
82 | #if defined(CONFIG_BLKFIN_DCACHE) && defined(CONFIG_BLKFIN_WB) | 82 | #if defined(CONFIG_BFIN_DCACHE) && defined(CONFIG_BFIN_WB) |
83 | # define flush_dcache_range(start,end) blackfin_dcache_flush_range((start), (end)) | 83 | # define flush_dcache_range(start,end) blackfin_dcache_flush_range((start), (end)) |
84 | # define flush_dcache_page(page) blackfin_dflush_page(page_address(page)) | 84 | # define flush_dcache_page(page) blackfin_dflush_page(page_address(page)) |
85 | #else | 85 | #else |
@@ -87,4 +87,4 @@ do { memcpy(dst, src, len); \ | |||
87 | # define flush_dcache_page(page) do { } while (0) | 87 | # define flush_dcache_page(page) do { } while (0) |
88 | #endif | 88 | #endif |
89 | 89 | ||
90 | #endif /* _BLACKFIN_CACHEFLUSH_H */ | 90 | #endif /* _BLACKFIN_ICACHEFLUSH_H */ |