diff options
author | Dimitris Papastamos <dimitris.papastamos@arm.com> | 2017-06-07 13:45:41 +0100 |
---|---|---|
committer | Dimitris Papastamos <dimitris.papastamos@arm.com> | 2017-06-20 15:14:01 +0100 |
commit | 21568304ef48cb66acc9fb7d89b7d2fa8bd95e48 (patch) | |
tree | 677311ccd6ab39cf6bd74b6563fa78b730b80765 /plat/common | |
parent | 3705cd47b2a431a37e2abb2fb02e513c0c0c14f9 (diff) |
sp_min: Implement `sp_min_plat_runtime_setup()`
On ARM platforms before exiting from SP_MIN ensure that
the default console is switched to the runtime serial port.
Change-Id: I0ca0d42cc47e345d56179eac16aa3d6712767c9b
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
Diffstat (limited to 'plat/common')
-rw-r--r-- | plat/common/aarch32/plat_common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plat/common/aarch32/plat_common.c b/plat/common/aarch32/plat_common.c index f5cfee5b..d3799d28 100644 --- a/plat/common/aarch32/plat_common.c +++ b/plat/common/aarch32/plat_common.c @@ -4,6 +4,7 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include <console.h> #include <platform.h> #include <xlat_mmu_helpers.h> @@ -13,8 +14,18 @@ * platforms but may also be overridden by a platform if required. */ #pragma weak bl32_plat_enable_mmu +#pragma weak sp_min_plat_runtime_setup void bl32_plat_enable_mmu(uint32_t flags) { enable_mmu_secure(flags); } + +void sp_min_plat_runtime_setup(void) +{ + /* + * Finish the use of console driver in SP_MIN so that any runtime logs + * from SP_MIN will be suppressed. + */ + console_uninit(); +} |