1 /* 2 * Copyright (c) 2017-2020, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include <errno.h> 8 9 #include <platform_def.h> 10 11 #include <common/bl_common.h> 12 #include <lib/xlat_tables/xlat_mmu_helpers.h> 13 #include <plat/common/platform.h> 14 15 #include "../uniphier.h" 16 17 static unsigned int uniphier_soc = UNIPHIER_SOC_UNKNOWN; 18 19 void tsp_early_platform_setup(void) 20 { 21 uniphier_soc = uniphier_get_soc_id(); 22 if (uniphier_soc == UNIPHIER_SOC_UNKNOWN) 23 plat_error_handler(-ENOTSUP); 24 25 uniphier_console_setup(uniphier_soc); 26 } 27 28 void tsp_platform_setup(void) 29 { 30 } 31 32 void tsp_plat_arch_setup(void) 33 { 34 uniphier_mmap_setup(uniphier_soc); 35 enable_mmu_el1(0); 36 } 37