summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/freescale-mx53-loco/lowlevel.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/boards/freescale-mx53-loco/lowlevel.c')
-rw-r--r--arch/arm/boards/freescale-mx53-loco/lowlevel.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/boards/freescale-mx53-loco/lowlevel.c b/arch/arm/boards/freescale-mx53-loco/lowlevel.c
index 60c28f7856..d920524da2 100644
--- a/arch/arm/boards/freescale-mx53-loco/lowlevel.c
+++ b/arch/arm/boards/freescale-mx53-loco/lowlevel.c
@@ -1,9 +1,19 @@
#include <common.h>
#include <mach/esdctl.h>
#include <asm/barebox-arm-head.h>
+#include <asm/barebox-arm.h>
-void __naked barebox_arm_reset_vector(void)
+extern char __dtb_imx53_qsb_start[];
+
+ENTRY_FUNCTION(start_imx53_loco)(void)
{
+ uint32_t fdt;
+
+ __barebox_arm_head();
+
arm_cpu_lowlevel_init();
- imx53_barebox_entry(0);
+
+ fdt = (uint32_t)__dtb_imx53_qsb_start - get_runtime_offset();
+
+ imx53_barebox_entry(fdt);
}