14f6ad66aSAchin Gupta /* 2*ee006a79SDeepika Bhavnani * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved. 34f6ad66aSAchin Gupta * 482cb2c1aSdp-arm * SPDX-License-Identifier: BSD-3-Clause 54f6ad66aSAchin Gupta */ 64f6ad66aSAchin Gupta 797043ac9SDan Handley #include <arch.h> 84f6ad66aSAchin Gupta #include <arch_helpers.h> 9c04d59cfSEtienne Carriere #include "../bl1_private.h" 104f6ad66aSAchin Gupta 114f6ad66aSAchin Gupta /******************************************************************************* 124f6ad66aSAchin Gupta * Function that does the first bit of architectural setup that affects 134f6ad66aSAchin Gupta * execution in the non-secure address space. 144f6ad66aSAchin Gupta ******************************************************************************/ bl1_arch_setup(void)154f6ad66aSAchin Guptavoid bl1_arch_setup(void) 164f6ad66aSAchin Gupta { 170c8d4fefSAchin Gupta /* Set the next EL to be AArch64 */ 18adb4fcfbSGerald Lejeune write_scr_el3(read_scr_el3() | SCR_RW_BIT); 194f6ad66aSAchin Gupta } 20