1/* SPDX-License-Identifier: BSD-3-Clause */ 2/* 3 * Copyright (c) 2018, STMicroelectronics 4 */ 5 6#include <arm32.h> 7#include <arm32_macros.S> 8#include <asm.S> 9 10.section .text 11.balign 4 12.code 32 13 14#define STM32MP1_NSACR_PRESERVE_MASK (0xfff << 20) 15 16FUNC plat_cpu_reset_early , : 17 ldr r0, =SCR_SIF 18 write_scr r0 19 20 read_nsacr r0 21 mov_imm r1, STM32MP1_NSACR_PRESERVE_MASK 22 and r0, r0, r1 23 write_nsacr r0 24 25 isb 26 bx lr 27END_FUNC plat_cpu_reset_early 28