]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/cacheflush.h
[ARM] 4906/1: [AT91] SAM9/CAP9 basic power-management
[linux-2.6-omap-h63xx.git] / include / asm-arm / cacheflush.h
index d1294a46c70c62237c9d0e266d90c645f1182bf0..759a97b56eed8a189f1669f2d3ce9eb7fffba7e3 100644 (file)
 # endif
 #endif
 
+#if defined(CONFIG_CPU_FEROCEON)
+# ifdef _CACHE
+#  define MULTI_CACHE 1
+# else
+#  define _CACHE feroceon
+# endif
+#endif
+
 #if defined(CONFIG_CPU_V6)
 //# ifdef _CACHE
 #  define MULTI_CACHE 1
@@ -426,6 +434,13 @@ static inline void flush_anon_page(struct vm_area_struct *vma,
  */
 #define flush_icache_page(vma,page)    do { } while (0)
 
+static inline void flush_ioremap_region(unsigned long phys, void __iomem *virt,
+       unsigned offset, size_t size)
+{
+       const void *start = (void __force *)virt + offset;
+       dmac_inv_range(start, start + size);
+}
+
 #define __cacheid_present(val)                 (val != read_cpuid(CPUID_ID))
 #define __cacheid_type_v7(val)                 ((val & (7 << 29)) == (4 << 29))