Skip to contentSkip to conversation

arm: imx: Default to SYS_THUMB_BUILD for i.MX6/7

PATCH New Tom Rini 3 participants 4 messages Dec 3, 2019 – Jan 4, 2020 Arm (32-bit)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 arm: imx: Default to SYS_THUMB_BUILD for i.MX6/7

In the case of i.MX6 and i.MX7 family SoCs it is safe (from an errata point of view) to use thumb2 by default to save space.

Cc Stefano Babic <[email protected]>
Cc Fabio Estevam <[email protected]>
---
 arch/arm/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/Kconfig +3 -1
index f9dab073ea14..31c07d9b0b4a 100644
@@ -823,6 +823,7 @@ config ARCH_MX7ULP
 	select CPU_V7A
 	select ROM_UNIFIED_SECTIONS
 	imply MXC_GPIO
+	imply SYS_THUMB_BUILD
 
 config ARCH_MX7
 	bool "Freescale MX7"
@@ -833,6 +834,7 @@ config ARCH_MX7
 	select SYS_FSL_SEC_COMPAT_4
 	select SYS_FSL_SEC_LE
 	imply MXC_GPIO
+	imply SYS_THUMB_BUILD
 
 config ARCH_MX6
 	bool "Freescale MX6"
@@ -840,8 +842,8 @@ config ARCH_MX6
 	select SYS_FSL_HAS_SEC if IMX_HAB
 	select SYS_FSL_SEC_COMPAT_4
 	select SYS_FSL_SEC_LE
-	select SYS_THUMB_BUILD if SPL
 	imply MXC_GPIO
+	imply SYS_THUMB_BUILD
 
 if ARCH_MX6
 config SPL_LDSCRIPT
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH 1/1 arm: imx: Default to SYS_THUMB_BUILD for i.MX6/7

Quoted 4 lines · Fabio Estevam

Hi Tom,

Quoted 1 line · Tom Rini
Quoted 8 lines
Quoted 6 lines

In the case of i.MX6 and i.MX7 family SoCs it is safe (from an errata point of view) to use thumb2 by default to save space.

Cc Stefano Babic <[email protected]>
Cc Fabio Estevam <[email protected]>

I think it is safer to apply this after 2020.01 is released:

Agreed. Posted before it slips my mind :)

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191203/00aabe40/attachment.sig>
#3 lore raw

PATCH 1/1 arm: imx: Default to SYS_THUMB_BUILD for i.MX6/7

In reply to Tom Rini
Quoted 6 lines

In the case of i.MX6 and i.MX7 family SoCs it is safe (from an errata point of view) to use thumb2 by default to save space.

Applied to u-boot-imx, -next, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================