]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/asm-arm/arch-s5pc1xx/sys_proto.h
s5pc1xx: update cache routines
[karo-tx-uboot.git] / include / asm-arm / arch-s5pc1xx / sys_proto.h
similarity index 61%
rename from cpu/arm_cortexa8/s5pc1xx/cache.c
rename to include/asm-arm/arch-s5pc1xx/sys_proto.h
index 8652a45ff0e8d41fe00a4d6dfe2b4a2379466340..3078aafd7f1f86509360e2f48f217ca1447ce6f5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009 Samsung Electronics
+ * Copyright (C) 2009 Samsung Electrnoics
  * Minkyu Kang <mk7.kang@samsung.com>
  *
  * See file CREDITS for list of people who contributed to this
  * MA 02111-1307 USA
  */
 
-#include <common.h>
-#include <asm/cache.h>
+#ifndef _SYS_PROTO_H_
+#define _SYS_PROTO_H_
 
-void l2_cache_enable(void)
-{
-       unsigned long i;
+u32 get_device_type(void);
+void invalidate_dcache(u32);
+void l2_cache_disable(void);
+void l2_cache_enable(void);
 
-       __asm__ __volatile__("mrc p15, 0, %0, c1, c0, 1":"=r"(i));
-       __asm__ __volatile__("orr %0, %0, #0x2":"=r"(i));
-       __asm__ __volatile__("mcr p15, 0, %0, c1, c0, 1":"=r"(i));
-}
-
-void l2_cache_disable(void)
-{
-       unsigned long i;
-
-       __asm__ __volatile__("mrc p15, 0, %0, c1, c0, 1":"=r"(i));
-       __asm__ __volatile__("bic %0, %0, #0x2":"=r"(i));
-       __asm__ __volatile__("mcr p15, 0, %0, c1, c0, 1":"=r"(i));
-}
+#endif