1 /* 2 * Copyright (c) 2023-2024, STMicroelectronics - All Rights Reserved 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include <cdefs.h> 8 #include <stdint.h> 9 10 #include <common/debug.h> 11 #include <plat/common/platform.h> 12 13 #include <platform_def.h> 14 #include <stm32mp_common.h> 15 16 void bl2_el3_early_platform_setup(u_register_t arg0 __unused, 17 u_register_t arg1 __unused, 18 u_register_t arg2 __unused, 19 u_register_t arg3 __unused) 20 { 21 stm32mp_setup_early_console(); 22 } 23 24 void bl2_platform_setup(void) 25 { 26 } 27 28 void bl2_el3_plat_arch_setup(void) 29 { 30 if (stm32_otp_probe() != 0U) { 31 ERROR("OTP probe failed\n"); 32 panic(); 33 } 34 } 35