[PATCH 2/4] ARM OMAP3: rename arch_init_lowlevel to board_init_lowlevel
Jan Luebbe
jlu at pengutronix.de
Mon Sep 24 04:18:32 EDT 2012
From: Sascha Hauer <s.hauer at pengutronix.de>
OMAP3 is the only architecture which has a arch_init_lowlevel in
which it invalidates the dcache. This can easily be done in
board_init_lowlevel aswell. Since on OMAP3 we are always executed
in SRAM we'll never need a board specific lowlevel_init. So the
easiest way of getting rid of this special handling is to just
rename the function.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/arm/mach-omap/Kconfig | 1 -
arch/arm/mach-omap/omap3_core.S | 8 ++------
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/arch/arm/mach-omap/Kconfig b/arch/arm/mach-omap/Kconfig
index d735284..9c76a96 100644
--- a/arch/arm/mach-omap/Kconfig
+++ b/arch/arm/mach-omap/Kconfig
@@ -37,7 +37,6 @@ config ARCH_OMAP3
select CPU_V7
select GENERIC_GPIO
select OMAP3_LOWLEVEL_INIT
- select ARCH_HAS_LOWLEVEL_INIT
select OMAP_CLOCK_SOURCE_S32K
help
Say Y here if you are using Texas Instrument's OMAP343x based platform
diff --git a/arch/arm/mach-omap/omap3_core.S b/arch/arm/mach-omap/omap3_core.S
index 6a9f44f..d1be6e5 100644
--- a/arch/arm/mach-omap/omap3_core.S
+++ b/arch/arm/mach-omap/omap3_core.S
@@ -12,7 +12,6 @@
* functions.
* @li Call architecture initialization function a_init
*
- * arch_init_lowlevel is enabled if CONFIG_ARCH_HAS_LOWLEVEL_INIT is defined
*/
/*
* (C) Copyright 2006-2008
@@ -42,8 +41,7 @@
#include <mach/wdt.h>
#include <mach/clocks.h>
-#ifdef CONFIG_ARCH_HAS_LOWLEVEL_INIT
-ENTRY(arch_init_lowlevel)
+ENTRY(board_init_lowlevel)
/* Invalidate all Dcaches */
#ifndef CONFIG_CPU_V7_DCACHE_SKIP
/* If Arch specific ROM code SMI handling does not exist */
@@ -93,6 +91,4 @@ finished_inval:
#endif /* CONFIG_CPU_V7_DCACHE_SKIP */
/* back to arch calling code */
mov pc, lr
-ENDPROC(arch_init_lowlevel)
-
-#endif /* CONFIG_ARCH_HAS_LOWLEVEL_INIT */
+ENDPROC(board_init_lowlevel)
--
1.7.10.4
More information about the barebox
mailing list