xref: /aosp_15_r20/external/arm-trusted-firmware/bl2/aarch64/bl2_arch_setup.c (revision 54fd6939e177f8ff529b10183254802c76df6d08)
1*54fd6939SJiyong Park /*
2*54fd6939SJiyong Park  * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
3*54fd6939SJiyong Park  *
4*54fd6939SJiyong Park  * SPDX-License-Identifier: BSD-3-Clause
5*54fd6939SJiyong Park  */
6*54fd6939SJiyong Park 
7*54fd6939SJiyong Park #include <arch.h>
8*54fd6939SJiyong Park #include <arch_helpers.h>
9*54fd6939SJiyong Park #include "../bl2_private.h"
10*54fd6939SJiyong Park 
11*54fd6939SJiyong Park /*******************************************************************************
12*54fd6939SJiyong Park  * Place holder function to perform any S-EL1 specific architectural setup. At
13*54fd6939SJiyong Park  * the moment there is nothing to do.
14*54fd6939SJiyong Park  ******************************************************************************/
bl2_arch_setup(void)15*54fd6939SJiyong Park void bl2_arch_setup(void)
16*54fd6939SJiyong Park {
17*54fd6939SJiyong Park 	/* Give access to FP/SIMD registers */
18*54fd6939SJiyong Park 	write_cpacr(CPACR_EL1_FPEN(CPACR_EL1_FP_TRAP_NONE));
19*54fd6939SJiyong Park }
20