summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-12-15 20:03:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-12-15 20:03:17 +0100
commit40c9e6b22b268bf05a3c724414eec4716f49719a (patch)
tree1d0e20b9ae9448475ea98131f6779f410aaacdf9 /arch
parent467a6756263bf3fc48110307cf68e111e5b4c841 (diff)
parent597ce4cc1c3de2a58296452c1dffbfd897217f40 (diff)
downloadbarebox-40c9e6b22b268bf05a3c724414eec4716f49719a.tar.gz
barebox-40c9e6b22b268bf05a3c724414eec4716f49719a.tar.xz
Merge branch 'pu/misc' into next
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/cpu.c34
-rw-r--r--arch/arm/cpu/cpuinfo.c6
-rw-r--r--arch/ppc/lib/board.c1
-rw-r--r--arch/ppc/lib/ppclinux.c1
-rw-r--r--arch/ppc/lib/ticks.S1
5 files changed, 3 insertions, 40 deletions
diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c
index d4a3b14819..14bb6d1c1b 100644
--- a/arch/arm/cpu/cpu.c
+++ b/arch/arm/cpu/cpu.c
@@ -89,37 +89,3 @@ void arch_shutdown(void)
);
#endif
}
-
-/**
- * @page arm_boot_preparation Linux Preparation on ARM
- *
- * For ARM we never enable data cache so we do not need to disable it again.
- * Linux can be called with instruction cache enabled. As this is the
- * default setting we are running in barebox, there's no special preparation
- * required.
- */
-#ifdef CONFIG_COMMAND
-static int do_icache(struct command *cmdtp, int argc, char *argv[])
-{
- if (argc == 1) {
- printf("icache is %sabled\n", icache_status() ? "en" : "dis");
- return 0;
- }
-
- if (simple_strtoul(argv[1], NULL, 0) > 0)
- icache_enable();
- else
- icache_disable();
-
- return 0;
-}
-
-static const __maybe_unused char cmd_icache_help[] =
-"Usage: icache [0|1]\n";
-
-BAREBOX_CMD_START(icache)
- .cmd = do_icache,
- .usage = "show/change icache status",
- BAREBOX_CMD_HELP(cmd_icache_help)
-BAREBOX_CMD_END
-#endif
diff --git a/arch/arm/cpu/cpuinfo.c b/arch/arm/cpu/cpuinfo.c
index 05971b313b..7be16716fc 100644
--- a/arch/arm/cpu/cpuinfo.c
+++ b/arch/arm/cpu/cpuinfo.c
@@ -47,8 +47,8 @@ static void decode_cache(unsigned long size)
}
static char *crbits[] = {"M", "A", "C", "W", "P", "D", "L", "B", "S", "R",
- "F", "Z", "I", "V", "RR", "L4", "", "", "", "", "", "FI", "U", "XP",
- "VE", "EE", "L2"};
+ "F", "Z", "I", "V", "RR", "L4", "DT", "", "IT", "ST", "", "FI", "U", "XP",
+ "VE", "EE", "L2", "", "TRE", "AFE", "TE"};
static int do_cpuinfo(struct command *cmdtp, int argc, char *argv[])
{
@@ -170,7 +170,7 @@ static int do_cpuinfo(struct command *cmdtp, int argc, char *argv[])
}
printf("Control register: ");
- for (i = 0; i < 27; i++)
+ for (i = 0; i < ARRAY_SIZE(crbits); i++)
if (cr & (1 << i))
printf("%s ", crbits[i]);
printf("\n");
diff --git a/arch/ppc/lib/board.c b/arch/ppc/lib/board.c
index 0e839eb053..a840c75204 100644
--- a/arch/ppc/lib/board.c
+++ b/arch/ppc/lib/board.c
@@ -23,7 +23,6 @@
#include <debug_ll.h>
#include <common.h>
-#include <watchdog.h>
#include <command.h>
#include <malloc.h>
#include <memory.h>
diff --git a/arch/ppc/lib/ppclinux.c b/arch/ppc/lib/ppclinux.c
index 471b3037fe..025fd27fd7 100644
--- a/arch/ppc/lib/ppclinux.c
+++ b/arch/ppc/lib/ppclinux.c
@@ -2,7 +2,6 @@
#include <common.h>
#include <command.h>
-#include <watchdog.h>
#include <image.h>
#include <init.h>
#include <environment.h>
diff --git a/arch/ppc/lib/ticks.S b/arch/ppc/lib/ticks.S
index 5d6c4277af..453d889213 100644
--- a/arch/ppc/lib/ticks.S
+++ b/arch/ppc/lib/ticks.S
@@ -26,7 +26,6 @@
#include <asm/ppc_asm.tmpl>
#include <asm/ppc_defs.h>
#include <config.h>
-#include <watchdog.h>
/*
* unsigned long long get_ticks(void);