Browse Source

feat(stm32mp2): print board info

Call stm32mp_print_boardinfo() during BL2 setup. As for STM32MP1,
the board info is taken in the dedicated OTP fuse. This fuse will be
taken from device tree.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I2de0199378562b459b27427109ce66239316b8d9
pull/2005/merge
Yann Gautier 3 years ago
committed by Yann Gautier
parent
commit
cdaced3668
  1. 2
      plat/st/stm32mp2/bl2_plat_setup.c
  2. 13
      plat/st/stm32mp2/stm32mp2_private.c

2
plat/st/stm32mp2/bl2_plat_setup.c

@ -202,6 +202,8 @@ void bl2_el3_plat_arch_setup(void)
NOTICE("Model: %s\n", board_model);
}
stm32mp_print_boardinfo();
print_reset_reason();
skip_console_init:

13
plat/st/stm32mp2/stm32mp2_private.c

@ -235,6 +235,19 @@ void stm32mp_print_cpuinfo(void)
NOTICE("CPU: %s\n", name);
}
void stm32mp_print_boardinfo(void)
{
uint32_t board_id = 0U;
if (stm32_get_otp_value(BOARD_ID_OTP, &board_id) != 0) {
return;
}
if (board_id != 0U) {
stm32_display_board_info(board_id);
}
}
uintptr_t stm32_get_bkpr_boot_mode_addr(void)
{
return tamp_bkpr(BKPR_BOOT_MODE);

Loading…
Cancel
Save