diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-14 22:21:41 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-04 15:52:39 +0100 |
commit | 1c240cd2341776f2212237936c53c9448b21d834 (patch) | |
tree | 2457c19e86ce6be3c1f555da06981a9b4c90bb1d /arch/arm/boards/panda | |
parent | c984f8cfa0a381209b885207079443b0b0d615f9 (diff) | |
download | barebox-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/panda')
-rw-r--r-- | arch/arm/boards/panda/lowlevel.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/boards/panda/lowlevel.c b/arch/arm/boards/panda/lowlevel.c index 36e2bc5886..df0f9c15d9 100644 --- a/arch/arm/boards/panda/lowlevel.c +++ b/arch/arm/boards/panda/lowlevel.c @@ -18,6 +18,7 @@ */ #include <common.h> #include <io.h> +#include <sizes.h> #include <mach/omap4-mux.h> #include <mach/omap4-silicon.h> #include <mach/omap4-clock.h> @@ -70,8 +71,6 @@ static void noinline panda_init_lowlevel(void) /* Set VCORE1 = 1.3 V, VCORE2 = VCORE3 = 1.21V */ omap4_scale_vcores(TPS62361_VSEL0_GPIO); - - board_init_lowlevel_return(); } void reset(void) @@ -79,9 +78,11 @@ void reset(void) common_reset(); if (get_pc() > 0x80000000) - board_init_lowlevel_return(); + goto out; arm_setup_stack(0x4030d000); panda_init_lowlevel(); +out: + barebox_arm_entry(0x80000000, SZ_1G, 0); } |