From d4821739ef36f8fda5504fa5c57e0c41f0e09c24 Mon Sep 17 00:00:00 2001 From: Tejas Patel Date: Fri, 14 Dec 2018 00:55:29 -0800 Subject: [PATCH] plat: xilinx: versal: Move versal_private.h to include directory Move versal_private.h to platform specific include directory. Also, rename it to plat_private.h instead of having platform name. So, it can be used to common source files which needs platform specific data. Signed-off-by: Tejas Patel Signed-off-by: Jolly Shah Change-Id: I65eefbea7722ffa2760b992491c00eebef5bcef4 --- plat/xilinx/versal/aarch64/versal_common.c | 5 ++--- plat/xilinx/versal/bl31_versal_setup.c | 6 ++---- .../versal/{versal_private.h => include/plat_private.h} | 8 ++++---- plat/xilinx/versal/plat_psci.c | 5 ++--- plat/xilinx/versal/plat_versal.c | 5 ++--- plat/xilinx/versal/versal_gicv3.c | 5 ++--- 6 files changed, 14 insertions(+), 20 deletions(-) rename plat/xilinx/versal/{versal_private.h => include/plat_private.h} (73%) diff --git a/plat/xilinx/versal/aarch64/versal_common.c b/plat/xilinx/versal/aarch64/versal_common.c index 587b797d7..598079cba 100644 --- a/plat/xilinx/versal/aarch64/versal_common.c +++ b/plat/xilinx/versal/aarch64/versal_common.c @@ -1,17 +1,16 @@ /* - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ +#include #include #include #include #include #include - #include "../versal_def.h" -#include "../versal_private.h" /* * Table of regions to map using the MMU. diff --git a/plat/xilinx/versal/bl31_versal_setup.c b/plat/xilinx/versal/bl31_versal_setup.c index d7e07e036..0deff9006 100644 --- a/plat/xilinx/versal/bl31_versal_setup.c +++ b/plat/xilinx/versal/bl31_versal_setup.c @@ -1,12 +1,12 @@ /* - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include #include - +#include #include #include #include @@ -15,8 +15,6 @@ #include #include -#include "versal_private.h" - static entry_point_info_t bl32_image_ep_info; static entry_point_info_t bl33_image_ep_info; static console_pl011_t versal_runtime_console; diff --git a/plat/xilinx/versal/versal_private.h b/plat/xilinx/versal/include/plat_private.h similarity index 73% rename from plat/xilinx/versal/versal_private.h rename to plat/xilinx/versal/include/plat_private.h index 5d98d080c..cb35be87e 100644 --- a/plat/xilinx/versal/versal_private.h +++ b/plat/xilinx/versal/include/plat_private.h @@ -1,11 +1,11 @@ /* - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ -#ifndef VERSAL_PRIVATE_H -#define VERSAL_PRIVATE_H +#ifndef PLAT_PRIVATE_H +#define PLAT_PRIVATE_H #include @@ -21,4 +21,4 @@ void plat_versal_gic_pcpu_init(void); unsigned int versal_calc_core_pos(u_register_t mpidr); -#endif /* VERSAL_PRIVATE_H */ +#endif /* PLAT_PRIVATE_H */ diff --git a/plat/xilinx/versal/plat_psci.c b/plat/xilinx/versal/plat_psci.c index 4a443697f..de581bd0b 100644 --- a/plat/xilinx/versal/plat_psci.c +++ b/plat/xilinx/versal/plat_psci.c @@ -1,16 +1,15 @@ /* - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ +#include #include #include #include #include -#include "versal_private.h" - static uintptr_t versal_sec_entry; static int versal_nopmc_pwr_domain_on(u_register_t mpidr) diff --git a/plat/xilinx/versal/plat_versal.c b/plat/xilinx/versal/plat_versal.c index 642867da2..a080a76a9 100644 --- a/plat/xilinx/versal/plat_versal.c +++ b/plat/xilinx/versal/plat_versal.c @@ -1,13 +1,12 @@ /* - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ +#include #include -#include "versal_private.h" - int plat_core_pos_by_mpidr(u_register_t mpidr) { if (mpidr & MPIDR_CLUSTER_MASK) diff --git a/plat/xilinx/versal/versal_gicv3.c b/plat/xilinx/versal/versal_gicv3.c index dcf23b425..08e7cf95a 100644 --- a/plat/xilinx/versal/versal_gicv3.c +++ b/plat/xilinx/versal/versal_gicv3.c @@ -1,9 +1,10 @@ /* - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ +#include #include #include @@ -11,8 +12,6 @@ #include #include -#include "versal_private.h" - /****************************************************************************** * The following functions are defined as weak to allow a platform to override * the way the GICv3 driver is initialised and used. -- GitLab