blob: d3799d28bce533a1396f260c4f1edaab7049d50c [file] [log] [blame]
Soby Mathew0d268dc2016-07-11 14:13:56 +01001/*
Antonio Nino Diaz4ef91f12017-02-20 14:22:22 +00002 * Copyright (c) 2016-2017, 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
Dimitris Papastamos52323b02017-06-07 13:45:41 +01007#include <console.h>
Soby Mathew0d268dc2016-07-11 14:13:56 +01008#include <platform.h>
Antonio Nino Diaz4ef91f12017-02-20 14:22:22 +00009#include <xlat_mmu_helpers.h>
Soby Mathew0d268dc2016-07-11 14:13:56 +010010
11/*
12 * The following platform setup functions are weakly defined. They
13 * provide typical implementations that may be re-used by multiple
14 * platforms but may also be overridden by a platform if required.
15 */
16#pragma weak bl32_plat_enable_mmu
Dimitris Papastamos52323b02017-06-07 13:45:41 +010017#pragma weak sp_min_plat_runtime_setup
Soby Mathew0d268dc2016-07-11 14:13:56 +010018
19void bl32_plat_enable_mmu(uint32_t flags)
20{
21 enable_mmu_secure(flags);
22}
Dimitris Papastamos52323b02017-06-07 13:45:41 +010023
24void sp_min_plat_runtime_setup(void)
25{
26 /*
27 * Finish the use of console driver in SP_MIN so that any runtime logs
28 * from SP_MIN will be suppressed.
29 */
30 console_uninit();
31}