mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-23 13:36:05 +00:00

Add new APIs to enter and exit "boot mode". In this mode a potential tamper won't block access or reset the secure IPs needed while boot, without this mode a dead lock may occurs. Change-Id: Iad60d4a0420ec125b842a285f73a20eb54cd1828 Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@st.com>
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef STM32MP1_PRIVATE_H
|
|
#define STM32MP1_PRIVATE_H
|
|
|
|
#include <stdint.h>
|
|
|
|
void configure_mmu(void);
|
|
|
|
void stm32mp1_arch_security_setup(void);
|
|
void stm32mp1_security_setup(void);
|
|
|
|
void stm32mp1_gic_pcpu_init(void);
|
|
void stm32mp1_gic_init(void);
|
|
|
|
void stm32mp1_syscfg_init(void);
|
|
void stm32mp1_syscfg_enable_io_compensation_start(void);
|
|
void stm32mp1_syscfg_enable_io_compensation_finish(void);
|
|
void stm32mp1_syscfg_disable_io_compensation(void);
|
|
uint32_t stm32mp1_syscfg_get_chip_version(void);
|
|
uint32_t stm32mp1_syscfg_get_chip_dev_id(void);
|
|
#if STM32MP13
|
|
void stm32mp1_syscfg_boot_mode_enable(void);
|
|
void stm32mp1_syscfg_boot_mode_disable(void);
|
|
#endif
|
|
#if STM32MP15
|
|
static inline void stm32mp1_syscfg_boot_mode_enable(void){}
|
|
static inline void stm32mp1_syscfg_boot_mode_disable(void){}
|
|
#endif
|
|
|
|
void stm32mp1_deconfigure_uart_pins(void);
|
|
|
|
#if STM32MP_USE_STM32IMAGE
|
|
uint32_t stm32mp_get_ddr_ns_size(void);
|
|
#endif /* STM32MP_USE_STM32IMAGE */
|
|
|
|
void stm32mp1_init_scmi_server(void);
|
|
#endif /* STM32MP1_PRIVATE_H */
|