summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/tqma53
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-04-03 08:43:56 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-04-05 08:28:04 +0200
commitc3995e85d2b6efdfd665ee420bc49c7436f11bed (patch)
treeaf37cefcea072a9f2939df5216c1ace25f14a73b /arch/arm/boards/tqma53
parent17ad33b5d5803042edce176b08a6ce94e6e048bf (diff)
downloadbarebox-c3995e85d2b6efdfd665ee420bc49c7436f11bed.tar.gz
barebox-c3995e85d2b6efdfd665ee420bc49c7436f11bed.tar.xz
ARM: tqma53: call SoC lowlevel function early
With CONFIG_MMU_EARLY enabled the board does not survive the call to imx53_init_lowlevel(). This should not happen, but the reasons are currently unknown. This works on other boards like the i.MX53 QSB. This patch moves the call to imx53_init_lowlevel to barebox_arm_reset_vector() which is executed with MMU disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/tqma53')
-rw-r--r--arch/arm/boards/tqma53/board.c1
-rw-r--r--arch/arm/boards/tqma53/lowlevel.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boards/tqma53/board.c b/arch/arm/boards/tqma53/board.c
index d452067cd2..0054a7e93f 100644
--- a/arch/arm/boards/tqma53/board.c
+++ b/arch/arm/boards/tqma53/board.c
@@ -253,7 +253,6 @@ late_initcall(tqma53_part_init);
static int tqma53_console_init(void)
{
mxc_iomux_v3_setup_multiple_pads(tqma53_pads, ARRAY_SIZE(tqma53_pads));
- imx53_init_lowlevel(800);
imx53_add_uart1();
return 0;
diff --git a/arch/arm/boards/tqma53/lowlevel.c b/arch/arm/boards/tqma53/lowlevel.c
index 60c28f7856..a6eaa46dd2 100644
--- a/arch/arm/boards/tqma53/lowlevel.c
+++ b/arch/arm/boards/tqma53/lowlevel.c
@@ -1,9 +1,11 @@
#include <common.h>
#include <mach/esdctl.h>
#include <asm/barebox-arm-head.h>
+#include <mach/imx5.h>
void __naked barebox_arm_reset_vector(void)
{
arm_cpu_lowlevel_init();
+ imx53_init_lowlevel_early(800);
imx53_barebox_entry(0);
}