summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/u-boot-arm.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-11-05 03:56:51 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-12-09 17:30:09 +0100
commit80433c9ac6fd3bd0fe1707a04d9668db4aba1dde (patch)
treebb02432e43369953e07cd26b1c29beb8c32f3828 /arch/arm/include/asm/u-boot-arm.h
parent210576fc5e5d323c8039f95c7b5b2c7512a550e4 (diff)
downloadu-boot-imx-80433c9ac6fd3bd0fe1707a04d9668db4aba1dde.zip
u-boot-imx-80433c9ac6fd3bd0fe1707a04d9668db4aba1dde.tar.gz
u-boot-imx-80433c9ac6fd3bd0fe1707a04d9668db4aba1dde.tar.bz2
arm: Move CP15 init out of cpu_init_crit()
Some SOCs have do not start up with their 'main' CPU. The first U-Boot code may then be executed with a CPU which does not have a CP15, or not a useful one. Here we split the initialization of CP15 into a separate call, which can be performed later if required. Once the main CPU is running, you should call cpu_init_cp15() to perform this init as early as possible. Existing ARMv7 boards which define CONFIG_SKIP_LOWLEVEL_INIT should not need to change, this CP15 init is still skipped in that case. The only impact for these boards is that the cpu_init_cp15() will be available even if it is never used on these boards. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/include/asm/u-boot-arm.h')
-rw-r--r--arch/arm/include/asm/u-boot-arm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/u-boot-arm.h b/arch/arm/include/asm/u-boot-arm.h
index d3308f7..4ca75f9 100644
--- a/arch/arm/include/asm/u-boot-arm.h
+++ b/arch/arm/include/asm/u-boot-arm.h
@@ -46,6 +46,9 @@ extern ulong IRQ_STACK_START_IN; /* 8 bytes in IRQ stack */
int cpu_init(void);
int cleanup_before_linux(void);
+/* Set up ARMv7 MMU, caches and TLBs */
+void cpu_init_cp15(void);
+
/* cpu/.../arch/cpu.c */
int arch_cpu_init(void);
int arch_misc_init(void);