mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00

The I/O register region will be changed in the next SoC. Make it configurable. Change-Id: Iec0cbd1ef2d0703ebc7c3d3082edd73791bbfec9 Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
36 lines
694 B
C
36 lines
694 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 <lib/xlat_tables/xlat_mmu_helpers.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);
|
|
enable_mmu_el1(0);
|
|
}
|