mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 09:04:17 +00:00

Currently, enable_mmu_el1() or enable_mmu_el3() is kept outside the common function because the appropriate one must be chosen. Use enable_mmu() and move it to the common function. Change-Id: If2fb651691a7b6be05674f5cf730ae067ba95d4b Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
34 lines
628 B
C
34 lines
628 B
C
/*
|
|
* Copyright (c) 2017-2020, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <errno.h>
|
|
|
|
#include <platform_def.h>
|
|
|
|
#include <common/bl_common.h>
|
|
#include <plat/common/platform.h>
|
|
|
|
#include "../uniphier.h"
|
|
|
|
static unsigned int uniphier_soc = UNIPHIER_SOC_UNKNOWN;
|
|
|
|
void tsp_early_platform_setup(void)
|
|
{
|
|
uniphier_soc = uniphier_get_soc_id();
|
|
if (uniphier_soc == UNIPHIER_SOC_UNKNOWN)
|
|
plat_error_handler(-ENOTSUP);
|
|
|
|
uniphier_console_setup(uniphier_soc);
|
|
}
|
|
|
|
void tsp_platform_setup(void)
|
|
{
|
|
}
|
|
|
|
void tsp_plat_arch_setup(void)
|
|
{
|
|
uniphier_mmap_setup(uniphier_soc);
|
|
}
|