summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-04-09 18:36:37 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-04-11 10:13:23 +0200
commit67833dd81ab414c25e3ba847ef78ba0795d86715 (patch)
treee34dd5ccdfee20fa76a3661d05f4dcce0f47fef0
parent226f8e3f8216a7d9a1ea43f8b5231fdb6e709568 (diff)
downloadbarebox-67833dd81ab414c25e3ba847ef78ba0795d86715.tar.gz
barebox-67833dd81ab414c25e3ba847ef78ba0795d86715.tar.xz
boards: samx6: Adjust to latest get_runtime_offset()
Latest version of get_runtime_offset() returns positive offset that needs to be added to rather than substracted from original pointer. Cc: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/boards/kontron-samx6i/lowlevel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boards/kontron-samx6i/lowlevel.c b/arch/arm/boards/kontron-samx6i/lowlevel.c
index 4113ddbb40..5c35007040 100644
--- a/arch/arm/boards/kontron-samx6i/lowlevel.c
+++ b/arch/arm/boards/kontron-samx6i/lowlevel.c
@@ -47,7 +47,7 @@ static void __noreturn start_imx6_samx6i_common(void *fdt_blob_fixed_offset)
if (IS_ENABLED(CONFIG_DEBUG_LL))
setup_uart();
- fdt = fdt_blob_fixed_offset - get_runtime_offset();
+ fdt = fdt_blob_fixed_offset + get_runtime_offset();
barebox_arm_entry(0x10000000, size, fdt);
}