1*0ed8c001SSoby Mathew /* 2*0ed8c001SSoby Mathew * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. 3*0ed8c001SSoby Mathew * 4*0ed8c001SSoby Mathew * SPDX-License-Identifier: BSD-3-Clause 5*0ed8c001SSoby Mathew */ 6*0ed8c001SSoby Mathew 7*0ed8c001SSoby Mathew #include <console.h> 8*0ed8c001SSoby Mathew #include <platform.h> 9*0ed8c001SSoby Mathew #include <platform_sp_min.h> 10*0ed8c001SSoby Mathew 11*0ed8c001SSoby Mathew /* 12*0ed8c001SSoby Mathew * The following platform setup functions are weakly defined. They 13*0ed8c001SSoby Mathew * provide typical implementations that may be re-used by multiple 14*0ed8c001SSoby Mathew * platforms but may also be overridden by a platform if required. 15*0ed8c001SSoby Mathew */ 16*0ed8c001SSoby Mathew #pragma weak sp_min_plat_runtime_setup 17*0ed8c001SSoby Mathew 18*0ed8c001SSoby Mathew void sp_min_plat_runtime_setup(void) 19*0ed8c001SSoby Mathew { 20*0ed8c001SSoby Mathew /* 21*0ed8c001SSoby Mathew * Finish the use of console driver in SP_MIN so that any runtime logs 22*0ed8c001SSoby Mathew * from SP_MIN will be suppressed. 23*0ed8c001SSoby Mathew */ 24*0ed8c001SSoby Mathew console_uninit(); 25*0ed8c001SSoby Mathew } 26*0ed8c001SSoby Mathew 27*0ed8c001SSoby Mathew #if !ERROR_DEPRECATED 28*0ed8c001SSoby Mathew 29*0ed8c001SSoby Mathew #pragma weak sp_min_early_platform_setup2 30*0ed8c001SSoby Mathew 31*0ed8c001SSoby Mathew void sp_min_early_platform_setup2(u_register_t arg0, u_register_t arg1, 32*0ed8c001SSoby Mathew u_register_t arg2, u_register_t arg3) 33*0ed8c001SSoby Mathew { 34*0ed8c001SSoby Mathew sp_min_early_platform_setup((void *)arg0, (void *)arg1); 35*0ed8c001SSoby Mathew } 36*0ed8c001SSoby Mathew #endif 37