1 /* 2 * Copyright (c) 2024 Meta Platforms 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include "pma.h" 8 9 #ifdef CONFIG_SOC_PER_CORE_INIT_HOOK soc_per_core_init_hook(void)10void soc_per_core_init_hook(void) 11 { 12 #ifdef CONFIG_SOC_ANDES_V5_PMA 13 pma_init_per_core(); 14 #endif /* SOC_ANDES_V5_PMA */ 15 } 16 #endif /* CONFIG_SOC_PER_CORE_INIT_HOOK */ 17 18 #ifdef CONFIG_SOC_EARLY_INIT_HOOK soc_early_init_hook(void)19void soc_early_init_hook(void) 20 { 21 #ifdef CONFIG_SOC_ANDES_V5_PMA 22 pma_init(); 23 #endif /* CONFIG_SOC_ANDES_V5_PMA */ 24 } 25 #endif /* CONFIG_SOC_EARLY_INIT_HOOK */ 26