summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phytec-phycore-imx7
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-03-07 10:04:07 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-03-21 12:22:59 +0100
commita43e2bbc468a71fb8825e8acafb7fac7ad7c6dad (patch)
tree9f250072ef45f63cfabbe85a6fd93a6b87299787 /arch/arm/boards/phytec-phycore-imx7
parentff7d9b9e97df59d010ca6299b4b96ffef42df935 (diff)
downloadbarebox-a43e2bbc468a71fb8825e8acafb7fac7ad7c6dad.tar.gz
barebox-a43e2bbc468a71fb8825e8acafb7fac7ad7c6dad.tar.xz
ARM: return positive offset in get_runtime_offset()
When we are linked at 0x0 and running at 0x01000000 then get_runtime_offset() should return 0x01000000 and not 0xff000000. This makes get_runtime_offset() more consistent and better understandable. This was tested on a Freescale i.MX53 Quickstart board. Additionally relocate_to_adr() was tested since that is normally not called. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/phytec-phycore-imx7')
-rw-r--r--arch/arm/boards/phytec-phycore-imx7/lowlevel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/boards/phytec-phycore-imx7/lowlevel.c b/arch/arm/boards/phytec-phycore-imx7/lowlevel.c
index ee2d7ae553..3d2038e4a8 100644
--- a/arch/arm/boards/phytec-phycore-imx7/lowlevel.c
+++ b/arch/arm/boards/phytec-phycore-imx7/lowlevel.c
@@ -29,7 +29,7 @@ static noinline void phytec_phycore_imx7_start(void)
pr_debug("Phytec phyCORE i.MX7\n");
- fdt = __dtb_imx7d_phyboard_zeta_start - get_runtime_offset();
+ fdt = __dtb_imx7d_phyboard_zeta_start + get_runtime_offset();
barebox_arm_entry(0x80000000, SZ_512M, fdt);
}
@@ -45,4 +45,4 @@ ENTRY_FUNCTION(start_phytec_phycore_imx7, r0, r1, r2)
barrier();
phytec_phycore_imx7_start();
-} \ No newline at end of file
+}