blob: 89791712f5d2af8afbcdc6be07c133760c1b96f4 [file] [log] [blame]
Soby Mathew0d268dc2016-07-11 14:13:56 +01001/*
Yann Gautier4a7f3022024-04-10 12:03:33 +02002 * Copyright (c) 2016-2024, ARM Limited and Contributors. All rights reserved.
Soby Mathew0d268dc2016-07-11 14:13:56 +01003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Soby Mathew0d268dc2016-07-11 14:13:56 +01005 */
6
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007#include <lib/xlat_tables/xlat_mmu_helpers.h>
8#include <plat/common/platform.h>
Soby Mathew0d268dc2016-07-11 14:13:56 +01009
Yann Gautier4a7f3022024-04-10 12:03:33 +020010/* Pointer and function to register platform function to load alernate images */
11const struct plat_try_images_ops *plat_try_img_ops;
12
13void plat_setup_try_img_ops(const struct plat_try_images_ops *plat_try_ops)
14{
15 plat_try_img_ops = plat_try_ops;
16}
17
Soby Mathew0d268dc2016-07-11 14:13:56 +010018/*
19 * The following platform setup functions are weakly defined. They
20 * provide typical implementations that may be re-used by multiple
21 * platforms but may also be overridden by a platform if required.
22 */
23#pragma weak bl32_plat_enable_mmu
Soby Mathew6d07e672018-03-01 10:53:33 +000024
Soby Mathew0d268dc2016-07-11 14:13:56 +010025void bl32_plat_enable_mmu(uint32_t flags)
26{
Antonio Nino Diaz128de8d2018-08-07 19:59:49 +010027 enable_mmu_svc_mon(flags);
Soby Mathew0d268dc2016-07-11 14:13:56 +010028}