blob: e7dcc652db4db8b19066c98de9098848239164a2 [file] [log] [blame]
Masahiro Yamadad9cf7bb2017-05-15 13:00:00 +09001/*
2 * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <platform_def.h>
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00008
9#include <lib/xlat_tables/xlat_mmu_helpers.h>
Masahiro Yamadad9cf7bb2017-05-15 13:00:00 +090010
11#include "../uniphier.h"
12
13#define BL32_END (unsigned long)(&__BL32_END__)
14#define BL32_SIZE ((BL32_END) - (BL32_BASE))
15
16void tsp_early_platform_setup(void)
17{
18 uniphier_console_setup();
19}
20
21void tsp_platform_setup(void)
22{
23}
24
25void tsp_plat_arch_setup(void)
26{
27 uniphier_mmap_setup(BL32_BASE, BL32_SIZE, NULL);
28 enable_mmu_el1(0);
29}