Skip to contentSkip to conversation

i.MX53/TX53: Adjust to latest get_runtime_offset()

PATCH Applied Andrey Smirnov 2 participants 3 messages Apr 10, 2018 – Apr 11, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 i.MX53/TX53: 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 <[email protected]>

---

Sascha:

This one obviously needs to go into master as well. Sorry for the noise if this has already been fixed.

Thanks,
Andrey Smirnov

 arch/arm/boards/karo-tx53/lowlevel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boards/karo-tx53/lowlevel.c +1 -1
index cb324b200..a0bce8a78 100644
@@ -47,7 +47,7 @@ static void __imx53_tx53_init(int is_xx30)
 	if (IS_ENABLED(CONFIG_DEBUG_LL))
 		setup_uart();
 
-	fdt = fdt_blob_fixed_offset - get_runtime_offset();
+	fdt = fdt_blob_fixed_offset + get_runtime_offset();
 
 	imx53_barebox_entry(fdt);
 }
Signature · 7 lines
2.14.3


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 2/2 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 <[email protected]>

---

Sascha:

This one obviously needs to go into master as well. Sorry for the noise if this has already been fixed.

Thanks,
Andrey Smirnov

 arch/arm/boards/kontron-samx6i/lowlevel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boards/kontron-samx6i/lowlevel.c +1 -1
index 4113ddbb4..5c3500704 100644
@@ -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);
 }
Signature · 7 lines
2.14.3


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#2 lore raw
In reply to Andrey Smirnov
Quoted 11 lines · Andrey Smirnov

Latest version of get_runtime_offset() returns positive offset that needs to be added to rather than substracted from original pointer.

Cc Michael Grzeschik <[email protected]>

---

Sascha:

This one obviously needs to go into master as well. Sorry for the noise if this has already been fixed.

Applied to master, thanks

Sascha

Quoted 29 lines

Thanks,
Andrey Smirnov

 arch/arm/boards/karo-tx53/lowlevel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boards/karo-tx53/lowlevel.c +1 -1
index cb324b200..a0bce8a78 100644
@@ -47,7 +47,7 @@ static void __imx53_tx53_init(int is_xx30)
 	if (IS_ENABLED(CONFIG_DEBUG_LL))
 		setup_uart();
 
-	fdt = fdt_blob_fixed_offset - get_runtime_offset();
+	fdt = fdt_blob_fixed_offset + get_runtime_offset();
 
 	imx53_barebox_entry(fdt);
 }
Signature · 7 lines
2.14.3


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox