summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/omap343xdsp/lowlevel.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-14 22:21:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-04 15:52:39 +0100
commit1c240cd2341776f2212237936c53c9448b21d834 (patch)
tree2457c19e86ce6be3c1f555da06981a9b4c90bb1d /arch/arm/boards/omap343xdsp/lowlevel.c
parentc984f8cfa0a381209b885207079443b0b0d615f9 (diff)
downloadbarebox-1c240cd2341776f2212237936c53c9448b21d834.tar.gz
barebox-1c240cd2341776f2212237936c53c9448b21d834.tar.xz
ARM OMAP boards: switch to barebox_arm_entry
All boards use hardcoded SDRAM addresses, copied from the board init file. OMAP3 boards are a bit special, they had a SoC specific reset() function. This is renamed to omap3_invalidate_dcache() and called from the board lowlevel init code now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/omap343xdsp/lowlevel.c')
-rw-r--r--arch/arm/boards/omap343xdsp/lowlevel.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/arm/boards/omap343xdsp/lowlevel.c b/arch/arm/boards/omap343xdsp/lowlevel.c
index 0d2ccd4d6c..403de91828 100644
--- a/arch/arm/boards/omap343xdsp/lowlevel.c
+++ b/arch/arm/boards/omap343xdsp/lowlevel.c
@@ -1,7 +1,8 @@
#include <common.h>
#include <io.h>
-#include <init.h>
#include <sizes.h>
+#include <asm/barebox-arm-head.h>
+#include <asm/barebox-arm.h>
#include <mach/omap3-mux.h>
#include <mach/sdrc.h>
#include <mach/control.h>
@@ -543,4 +544,14 @@ static int sdp343x_board_init(void)
return 0;
}
-pure_initcall(sdp343x_board_init);
+
+void __naked reset(void)
+{
+ omap3_invalidate_dcache();
+
+ common_reset();
+
+ sdp343x_board_init();
+
+ barebox_arm_entry(0x80000000, SZ_128M, 0);
+}