From d1360672e8ff19b6ea56f5a874b7db9c555bb369 Mon Sep 17 00:00:00 2001 From: Christian Hemp Date: Thu, 26 Jun 2014 16:09:17 +0200 Subject: [PATCH] imx6:phyFLEX: Fix ENTRY_FUNCTION For some phyFLEX-i.MX6 modules the call __barebox_arm_head() was not removed. With this function the barebox does not start. Signed-off-by: Christian Hemp Signed-off-by: Sascha Hauer --- arch/arm/boards/phytec-phyflex-imx6/lowlevel.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/arch/arm/boards/phytec-phyflex-imx6/lowlevel.c b/arch/arm/boards/phytec-phyflex-imx6/lowlevel.c index 6c6f660d8..0159d9f1b 100644 --- a/arch/arm/boards/phytec-phyflex-imx6/lowlevel.c +++ b/arch/arm/boards/phytec-phyflex-imx6/lowlevel.c @@ -93,8 +93,6 @@ ENTRY_FUNCTION(start_phytec_pbab01_4gib, r0, r1, r2) { void *fdt; - __barebox_arm_head(); - arm_cpu_lowlevel_init(); arm_setup_stack(0x00920000 - 8); @@ -108,23 +106,19 @@ ENTRY_FUNCTION(start_phytec_pbab01dl_1gib, r0, r1, r2) { void *fdt; - __barebox_arm_head(); + arm_cpu_lowlevel_init(); - arm_cpu_lowlevel_init(); - - arm_setup_stack(0x00920000 - 8); + arm_setup_stack(0x00920000 - 8); fdt = __dtb_imx6dl_phytec_pbab01_start - get_runtime_offset(); - barebox_arm_entry(0x10000000, SZ_1G, fdt); + barebox_arm_entry(0x10000000, SZ_1G, fdt); } ENTRY_FUNCTION(start_phytec_pbab01s_512mb, r0, r1, r2) { void *fdt; - __barebox_arm_head(); - arm_cpu_lowlevel_init(); arm_setup_stack(0x00920000 - 8);