Masahiro Yamada | d9cf7bb | 2017-05-15 13:00:00 +0900 | [diff] [blame] | 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> |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 8 | |
Antonio Nino Diaz | de97ff3 | 2019-01-25 13:28:38 +0000 | [diff] [blame] | 9 | #include <common/bl_common.h> |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 10 | #include <lib/xlat_tables/xlat_mmu_helpers.h> |
Masahiro Yamada | d9cf7bb | 2017-05-15 13:00:00 +0900 | [diff] [blame] | 11 | |
| 12 | #include "../uniphier.h" |
| 13 | |
Masahiro Yamada | d9cf7bb | 2017-05-15 13:00:00 +0900 | [diff] [blame] | 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 | } |