1 /* 2 * Copyright (c) since 2022, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include <common/debug.h> 8 #include <lib/mmio.h> 9 #include <platform_def.h> 10 11 #define INFRA_AO_RES_CTRL_MASK (INFRACFG_AO_BASE + 0xB8) 12 #define INFRA_AO_RES_CTRL_MASK_EMI_IDLE BIT(18) 13 #define INFRA_AO_RES_CTRL_MASK_MPU_IDLE BIT(15) 14 spm_extern_initialize(void)15void spm_extern_initialize(void) 16 { 17 unsigned int val; 18 19 val = mmio_read_32(INFRA_AO_RES_CTRL_MASK); 20 21 val |= (INFRA_AO_RES_CTRL_MASK_EMI_IDLE | INFRA_AO_RES_CTRL_MASK_MPU_IDLE); 22 mmio_write_32(INFRA_AO_RES_CTRL_MASK, val); 23 } 24