summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap/omap3_core.S
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-01-15 21:20:39 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-17 18:50:36 +0100
commitae2ac15105cbf198ebd2b7ac0428641423b83c08 (patch)
treec8ab20ec7c5e3f09967922194d0e459fd68518fd /arch/arm/mach-omap/omap3_core.S
parent0adce7ec683b4b325f51de4ac8892b32925d7ef8 (diff)
downloadbarebox-ae2ac15105cbf198ebd2b7ac0428641423b83c08.tar.gz
barebox-ae2ac15105cbf198ebd2b7ac0428641423b83c08.tar.xz
ARM omap3: call a_init from board code
There is no need to call a_init before relocation, so rename the function to omap3_core_init and call it from board code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Sanjeev Premi <premi@ti.com>
Diffstat (limited to 'arch/arm/mach-omap/omap3_core.S')
-rw-r--r--arch/arm/mach-omap/omap3_core.S9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/mach-omap/omap3_core.S b/arch/arm/mach-omap/omap3_core.S
index 90c424350a..b32017c393 100644
--- a/arch/arm/mach-omap/omap3_core.S
+++ b/arch/arm/mach-omap/omap3_core.S
@@ -69,16 +69,7 @@ next:
orr r0, r0, r1
/* Store the new vector address */
mcr p15, #0, r0, c12, c0, #0
- /* Setup a temporary stack so that we can call C functions */
- ldr sp, SRAM_STACK
- str ip, [sp] /* stash old link register */
- str lr, [sp] /* stash current link register */
- mov ip, lr /* save link reg across call */
- bl a_init /* Architecture init */
- ldr lr, [sp] /* restore current link register */
- ldr ip, [sp] /* restore save ip */
- /* Invalidate all Dcaches */
#ifndef CONFIG_CPU_V7_DCACHE_SKIP
/* If Arch specific ROM code SMI handling does not exist */
mrc p15, 1, r0, c0, c0, 1 /* read clidr */