summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/efika-mx-smartbook/lowlevel.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/boards/efika-mx-smartbook/lowlevel.c')
-rw-r--r--arch/arm/boards/efika-mx-smartbook/lowlevel.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/boards/efika-mx-smartbook/lowlevel.c b/arch/arm/boards/efika-mx-smartbook/lowlevel.c
index 11abc938ad..5a568618f8 100644
--- a/arch/arm/boards/efika-mx-smartbook/lowlevel.c
+++ b/arch/arm/boards/efika-mx-smartbook/lowlevel.c
@@ -1,12 +1,22 @@
#include <common.h>
#include <mach/esdctl.h>
#include <asm/barebox-arm-head.h>
+#include <asm/barebox-arm.h>
#include <mach/imx5.h>
-void __naked barebox_arm_reset_vector(void)
+extern char __dtb_imx51_genesi_efika_sb_start[];
+
+ENTRY_FUNCTION(start_imx51_genesi_efikasb)(void)
{
+ uint32_t fdt;
+
+ __barebox_arm_head();
+
arm_cpu_lowlevel_init();
arm_setup_stack(0x20000000 - 16);
imx51_init_lowlevel(800);
- imx51_barebox_entry(0);
+
+ fdt = (uint32_t)__dtb_imx51_genesi_efika_sb_start - get_runtime_offset();
+
+ imx51_barebox_entry(fdt);
}