xref: /rk3399_ARM-atf/plat/socionext/uniphier/tsp/uniphier_tsp_setup.c (revision c948f77136c42a92d0bb660543a3600c36dcf7f1)
1 /*
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>
8 
9 #include <lib/xlat_tables/xlat_mmu_helpers.h>
10 
11 #include "../uniphier.h"
12 
13 #define BL32_END		(unsigned long)(&__BL32_END__)
14 #define BL32_SIZE		((BL32_END) - (BL32_BASE))
15 
16 void tsp_early_platform_setup(void)
17 {
18 	uniphier_console_setup();
19 }
20 
21 void tsp_platform_setup(void)
22 {
23 }
24 
25 void tsp_plat_arch_setup(void)
26 {
27 	uniphier_mmap_setup(BL32_BASE, BL32_SIZE, NULL);
28 	enable_mmu_el1(0);
29 }
30