xref: /rk3399_ARM-atf/plat/common/aarch32/plat_common.c (revision 08fc380ab3ebc1f0496528618ce38209d983b5b4)
1877cf3ffSSoby Mathew /*
2*a03dafe5SYann Gautier  * Copyright (c) 2016-2024, ARM Limited and Contributors. All rights reserved.
3877cf3ffSSoby Mathew  *
482cb2c1aSdp-arm  * SPDX-License-Identifier: BSD-3-Clause
5877cf3ffSSoby Mathew  */
6877cf3ffSSoby Mathew 
709d40e0eSAntonio Nino Diaz #include <lib/xlat_tables/xlat_mmu_helpers.h>
809d40e0eSAntonio Nino Diaz #include <plat/common/platform.h>
9877cf3ffSSoby Mathew 
10*a03dafe5SYann Gautier /* Pointer and function to register platform function to load alernate images */
11*a03dafe5SYann Gautier const struct plat_try_images_ops *plat_try_img_ops;
12*a03dafe5SYann Gautier 
plat_setup_try_img_ops(const struct plat_try_images_ops * plat_try_ops)13*a03dafe5SYann Gautier void plat_setup_try_img_ops(const struct plat_try_images_ops *plat_try_ops)
14*a03dafe5SYann Gautier {
15*a03dafe5SYann Gautier 	plat_try_img_ops = plat_try_ops;
16*a03dafe5SYann Gautier }
17*a03dafe5SYann Gautier 
18877cf3ffSSoby Mathew /*
19877cf3ffSSoby Mathew  * The following platform setup functions are weakly defined. They
20877cf3ffSSoby Mathew  * provide typical implementations that may be re-used by multiple
21877cf3ffSSoby Mathew  * platforms but may also be overridden by a platform if required.
22877cf3ffSSoby Mathew  */
23877cf3ffSSoby Mathew #pragma weak bl32_plat_enable_mmu
240ed8c001SSoby Mathew 
bl32_plat_enable_mmu(uint32_t flags)25877cf3ffSSoby Mathew void bl32_plat_enable_mmu(uint32_t flags)
26877cf3ffSSoby Mathew {
271a92a0e0SAntonio Nino Diaz 	enable_mmu_svc_mon(flags);
28877cf3ffSSoby Mathew }
29