2016-07-11 14:13:56 +01:00
|
|
|
/*
|
2018-01-09 14:36:14 +00:00
|
|
|
* Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
|
2016-07-11 14:13:56 +01:00
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2016-07-11 14:13:56 +01:00
|
|
|
*/
|
|
|
|
|
2017-06-07 13:45:41 +01:00
|
|
|
#include <console.h>
|
2016-07-11 14:13:56 +01:00
|
|
|
#include <platform.h>
|
2018-01-09 14:36:14 +00:00
|
|
|
#include <platform_sp_min.h>
|
2017-02-20 14:22:22 +00:00
|
|
|
#include <xlat_mmu_helpers.h>
|
2016-07-11 14:13:56 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The following platform setup functions are weakly defined. They
|
|
|
|
* provide typical implementations that may be re-used by multiple
|
|
|
|
* platforms but may also be overridden by a platform if required.
|
|
|
|
*/
|
|
|
|
#pragma weak bl32_plat_enable_mmu
|
2017-06-07 13:45:41 +01:00
|
|
|
#pragma weak sp_min_plat_runtime_setup
|
2016-07-11 14:13:56 +01:00
|
|
|
|
|
|
|
void bl32_plat_enable_mmu(uint32_t flags)
|
|
|
|
{
|
|
|
|
enable_mmu_secure(flags);
|
|
|
|
}
|
2017-06-07 13:45:41 +01:00
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
2018-01-09 14:36:14 +00:00
|
|
|
|
|
|
|
#if !ERROR_DEPRECATED
|
|
|
|
|
|
|
|
#pragma weak sp_min_early_platform_setup2
|
|
|
|
|
|
|
|
void sp_min_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
|
|
|
u_register_t arg2, u_register_t arg3)
|
|
|
|
{
|
|
|
|
sp_min_early_platform_setup((void *) arg0, (void *)arg1);
|
|
|
|
}
|
|
|
|
#endif
|