diff options
| author | Tom Rini <[email protected]> | 2026-01-29 09:00:01 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-01-29 09:00:01 -0600 |
| commit | 66891ffb14920e35abfafcae795cf4604de6682f (patch) | |
| tree | 4c0a4087432cb7f7bf78b5c432322600a2d3455f /board | |
| parent | 3f6b113291c714b19c3acc1b3f07b5a249b0ee05 (diff) | |
| parent | a8f12fa7af3f6962cc5cd529b5360099d2012387 (diff) | |
Merge tag 'u-boot-stm32-20260129' of https://source.denx.de/u-boot/custodians/u-boot-stm
- spi: stm32: OSPI and QSPI optimization
- Update stm32 clock drivers to restore boot for STM32MP13/STM32MP2
board family
- Add bootph-all in ltdc node in stm32mp257f-ev1-u-boot
- Use CONFIG_STM32MP15X to discern STM32MP15xx on DH STM32MP15xx DHSOM
- Reinstate missing SPL configs for DH STM32MP15xx DHSOM
- stm32mp2 boards: read boot index from backup register
- video: simple_panel: add support for "rocktech,rk043fn48h" display
- Add .of_to_plat callback in stm32_ltdc driver
Diffstat (limited to 'board')
| -rw-r--r-- | board/dhelectronics/dh_stm32mp1/board.c | 2 | ||||
| -rw-r--r-- | board/st/stm32mp2/stm32mp2.c | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/board/dhelectronics/dh_stm32mp1/board.c b/board/dhelectronics/dh_stm32mp1/board.c index 55526189d5a..90590d14941 100644 --- a/board/dhelectronics/dh_stm32mp1/board.c +++ b/board/dhelectronics/dh_stm32mp1/board.c @@ -314,7 +314,7 @@ int board_stm32mp1_ddr_config_name_match(struct udevice *dev, return 0; } - if (IS_ENABLED(CONFIG_TARGET_DH_STM32MP15X)) { + if (IS_ENABLED(CONFIG_STM32MP15X)) { if (ddr3code == 1 && !strcmp(name, "st,ddr3l-dhsom-1066-888-bin-g-2x1gb-533mhz")) return 0; diff --git a/board/st/stm32mp2/stm32mp2.c b/board/st/stm32mp2/stm32mp2.c index 7bc7d2a608f..43bc583378e 100644 --- a/board/st/stm32mp2/stm32mp2.c +++ b/board/st/stm32mp2/stm32mp2.c @@ -188,3 +188,24 @@ void board_quiesce_devices(void) { led_boot_off(); } + +#if defined(CONFIG_FWU_MULTI_BANK_UPDATE) + +#include <fwu.h> + +/** + * fwu_plat_get_bootidx() - Get the value of the boot index + * @boot_idx: Boot index value + * + * Get the value of the bank(partition) from which the platform + * has booted. This value is passed to U-Boot from the earlier + * stage bootloader which loads and boots all the relevant + * firmware images + * + */ +void fwu_plat_get_bootidx(uint *boot_idx) +{ + *boot_idx = (readl(TAMP_FWU_BOOT_INFO_REG) >> + TAMP_FWU_BOOT_IDX_OFFSET) & TAMP_FWU_BOOT_IDX_MASK; +} +#endif /* CONFIG_FWU_MULTI_BANK_UPDATE */ |
