s5pc11x: cache: remove unused file & build fix
authorMinkyu Kang <mk7.kang@samsung.com>
Mon, 23 Nov 2009 08:50:57 +0000 (17:50 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 23 Nov 2009 08:50:57 +0000 (17:50 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
cpu/arm_cortexa8/s5pc1xx/Makefile
cpu/arm_cortexa8/s5pc1xx/cache.c [deleted file]

index ca55560..852a23e 100644 (file)
@@ -29,8 +29,8 @@ include $(TOPDIR)/config.mk
 LIB    = $(obj)lib$(SOC).a
 
 SOBJS  = reset.o
+SOBJS  += cache.o
 
-COBJS-y                += cache.o
 COBJS-y                += clock.o
 COBJS-y                += cpu_info.o
 COBJS-y                += gpio.o
diff --git a/cpu/arm_cortexa8/s5pc1xx/cache.c b/cpu/arm_cortexa8/s5pc1xx/cache.c
deleted file mode 100644 (file)
index 8652a45..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (C) 2009 Samsung Electronics
- * Minkyu Kang <mk7.kang@samsung.com>
- *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
- */
-
-#include <common.h>
-#include <asm/cache.h>
-
-void l2_cache_enable(void)
-{
-       unsigned long i;
-
-       __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));
-}