Skip to contentSkip to conversation

configs: stm32mp15: Enable OF_BOARD flag

PATCH In review Patrice Chotard 2 participants 3 messages Jan 20, 2022 – Jan 24, 2022

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

PATCH 1/1 configs: stm32mp15: Enable OF_BOARD flag

Since commit 985503439762 ("fdt: Don't call board_fdt_blob_setup()
without OF_BOARD") board_fdt_blob_setup() is no more called on
STM32MP platforms in trusted boot which hangs during boot process.

Enable OF_BOARD flag to fix this issue.

---

 arch/arm/mach-stm32mp/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-stm32mp/Kconfig +1 -0
index a6c7fc5bfd..1ef426c0e0 100644
@@ -40,6 +40,7 @@ config STM32MP15x
 	select CPU_V7A
 	select CPU_V7_HAS_NONSEC
 	select CPU_V7_HAS_VIRT
+	select OF_BOARD if TFABOOT
 	select OF_BOARD_SETUP
 	select PINCTRL_STM32
 	select STM32_RCC
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Patrice,

Quoted 17 lines · Patrice Chotard

Since commit 985503439762 ("fdt: Don't call board_fdt_blob_setup()
without OF_BOARD") board_fdt_blob_setup() is no more called on
STM32MP platforms in trusted boot which hangs during boot process.

Enable OF_BOARD flag to fix this issue.

---

  arch/arm/mach-stm32mp/Kconfig | 1 +
  1 file changed, 1 insertion(+)
arch/arm/mach-stm32mp/Kconfig +0 -0
index a6c7fc5bfd..1ef426c0e0 100644

arch/arm/mach-stm32mp/Kconfig config STM32MP15x · line 46

Quoted 7 lines
arch/arm/mach-stm32mp/Kconfig +1 -0
@@ -40,6 +40,7 @@ config STM32MP15x
  	select CPU_V7A
  	select CPU_V7_HAS_NONSEC
  	select CPU_V7_HAS_VIRT
+	select OF_BOARD if TFABOOT
  	select OF_BOARD_SETUP
  	select PINCTRL_STM32
  	select STM32_RCC

Thanks
Patrick

#2 lore raw
In reply to Patrice Chotard
Quoted 17 lines · Patrice Chotard

Since commit 985503439762 ("fdt: Don't call board_fdt_blob_setup()
without OF_BOARD") board_fdt_blob_setup() is no more called on
STM32MP platforms in trusted boot which hangs during boot process.

Enable OF_BOARD flag to fix this issue.

---

 arch/arm/mach-stm32mp/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-stm32mp/Kconfig +0 -0
index a6c7fc5bfd..1ef426c0e0 100644

arch/arm/mach-stm32mp/Kconfig config STM32MP15x · line 46

Quoted 7 lines
arch/arm/mach-stm32mp/Kconfig +1 -0
@@ -40,6 +40,7 @@ config STM32MP15x
 	select CPU_V7A
 	select CPU_V7_HAS_NONSEC
 	select CPU_V7_HAS_VIRT
+	select OF_BOARD if TFABOOT
 	select OF_BOARD_SETUP
 	select PINCTRL_STM32
 	select STM32_RCC

Applied to u-boot-stm/master

Thanks
Patrice