Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 1 | /* |
Yann Gautier | 4a7f302 | 2024-04-10 12:03:33 +0200 | [diff] [blame] | 2 | * Copyright (c) 2016-2024, ARM Limited and Contributors. All rights reserved. |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 7 | #include <lib/xlat_tables/xlat_mmu_helpers.h> |
| 8 | #include <plat/common/platform.h> |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 9 | |
Yann Gautier | 4a7f302 | 2024-04-10 12:03:33 +0200 | [diff] [blame] | 10 | /* Pointer and function to register platform function to load alernate images */ |
| 11 | const struct plat_try_images_ops *plat_try_img_ops; |
| 12 | |
| 13 | void 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 Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 18 | /* |
| 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 Mathew | 6d07e67 | 2018-03-01 10:53:33 +0000 | [diff] [blame] | 24 | |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 25 | void bl32_plat_enable_mmu(uint32_t flags) |
| 26 | { |
Antonio Nino Diaz | 128de8d | 2018-08-07 19:59:49 +0100 | [diff] [blame] | 27 | enable_mmu_svc_mon(flags); |
Soby Mathew | 0d268dc | 2016-07-11 14:13:56 +0100 | [diff] [blame] | 28 | } |