[PATCH 2/2] board: st: Fix compilation issue
Patrice Chotard <[email protected]>
| Newsgroups | org.u-boot-project.lists.u-boot |
|---|---|
| Message-ID | <20260818-fix_tamp_fwu_boot_idx_mask-offset_definition-v1-2-611201a282ce@foss.st.com> |
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