This patch solves a STM32MP2 compilation issue in
board/st/common/stm32mp_fwu.c when CONFIG_FWU_MULTI_BANK_UPDATE
is activated :
    - error: ‘TAMP_FWU_BOOT_INFO_REG’ undeclared
    - error: ‘TAMP_FWU_BOOT_IDX_OFFSET’ undeclared
    - error: ‘TAMP_FWU_BOOT_IDX_MASK’ undeclared
    - error: implicit declaration of function ‘env_set’

Fixes: 4369c6a05035 ("board: st: factorize STM32MP FWU multi-bank support")
Signed-off-by: Patrick Delaunay <[email protected]>
Signed-off-by: Patrice Chotard <[email protected]>
---
 board/st/common/stm32mp_fwu.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/st/common/stm32mp_fwu.c b/board/st/common/stm32mp_fwu.c
index ac7ca6bdca2..cff020a99bb 100644
--- a/board/st/common/stm32mp_fwu.c
+++ b/board/st/common/stm32mp_fwu.c
@@ -3,9 +3,11 @@
  * Copyright (C) 2026 Amarula Solutions, Dario Binacchi 
<[email protected]>
  */
 
+#include <env.h>
 #include <fwu.h>
 #include <part_efi.h>
 #include <asm/io.h>
+#include <asm/arch/stm32.h>
 /**
  * fwu_plat_get_bootidx() - Get the value of the boot index
  * @boot_idx: Boot index value

-- 
2.43.0

Reply via email to