From c5c875ab7f442365a0c4c453238ef0a8a4ebb2d0 Mon Sep 17 00:00:00 2001 From: Teresa Gámez Date: Tue, 9 Jul 2013 11:23:20 +0200 Subject: arm: omap: store boot source info from ROM loader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ROM loader passes the address of a buffer to the MLO in register 0. Store this data so we can find the boot source later. On the same way the bootinformation are passed to the barebox, then. It has to be enshured that r0 contains always the buffer or the boot source detection will not work. Applied this on all OMAPs. This patch is based on work of Jan Luebbe . Compile tested on all OMAP boards. Tested on pcm049, phyCARD-A-L1 and pcm051. Signed-off-by: Teresa Gámez Tested-by: Christoph Fritz Signed-off-by: Sascha Hauer --- arch/arm/boards/panda/lowlevel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'arch/arm/boards/panda') diff --git a/arch/arm/boards/panda/lowlevel.c b/arch/arm/boards/panda/lowlevel.c index 5d3490f822..a21d55928c 100644 --- a/arch/arm/boards/panda/lowlevel.c +++ b/arch/arm/boards/panda/lowlevel.c @@ -17,8 +17,10 @@ * */ #include +#include #include #include +#include #include #include #include @@ -76,8 +78,10 @@ static void noinline panda_init_lowlevel(void) omap4460_scale_vcores(TPS62361_VSEL0_GPIO, 1210); } -void barebox_arm_reset_vector(void) +void __bare_init __naked barebox_arm_reset_vector(uint32_t *data) { + omap_save_bootinfo(); + arm_cpu_lowlevel_init(); if (get_pc() > 0x80000000) -- cgit v1.2.3