10ed8c001SSoby Mathew /* 20ed8c001SSoby Mathew * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. 30ed8c001SSoby Mathew * 40ed8c001SSoby Mathew * SPDX-License-Identifier: BSD-3-Clause 50ed8c001SSoby Mathew */ 60ed8c001SSoby Mathew 7*09d40e0eSAntonio Nino Diaz #include <drivers/console.h> 8*09d40e0eSAntonio Nino Diaz #include <plat/common/platform.h> 90ed8c001SSoby Mathew #include <platform_sp_min.h> 100ed8c001SSoby Mathew 110ed8c001SSoby Mathew /* 120ed8c001SSoby Mathew * The following platform setup functions are weakly defined. They 130ed8c001SSoby Mathew * provide typical implementations that may be re-used by multiple 140ed8c001SSoby Mathew * platforms but may also be overridden by a platform if required. 150ed8c001SSoby Mathew */ 160ed8c001SSoby Mathew #pragma weak sp_min_plat_runtime_setup 170ed8c001SSoby Mathew 180ed8c001SSoby Mathew void sp_min_plat_runtime_setup(void) 190ed8c001SSoby Mathew { 200ed8c001SSoby Mathew /* 210ed8c001SSoby Mathew * Finish the use of console driver in SP_MIN so that any runtime logs 220ed8c001SSoby Mathew * from SP_MIN will be suppressed. 230ed8c001SSoby Mathew */ 247e2bbef9SDaniel Boulby #if MULTI_CONSOLE_API 257e2bbef9SDaniel Boulby console_switch_state(CONSOLE_FLAG_RUNTIME); 267e2bbef9SDaniel Boulby #else 270ed8c001SSoby Mathew console_uninit(); 287e2bbef9SDaniel Boulby #endif 290ed8c001SSoby Mathew } 30