Commit d4821739 authored by Tejas Patel's avatar Tejas Patel Committed by Jolly Shah
Browse files

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: default avatarTejas Patel <tejas.patel@xilinx.com>
Signed-off-by: default avatarJolly Shah <jolly.shah@xilinx.com>
Change-Id: I65eefbea7722ffa2760b992491c00eebef5bcef4
parent 256d133a
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <plat_private.h>
#include <common/debug.h> #include <common/debug.h>
#include <drivers/generic_delay_timer.h> #include <drivers/generic_delay_timer.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/xlat_tables/xlat_tables.h> #include <lib/xlat_tables/xlat_tables.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include "../versal_def.h" #include "../versal_def.h"
#include "../versal_private.h"
/* /*
* Table of regions to map using the MMU. * Table of regions to map using the MMU.
......
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <plat_private.h>
#include <bl31/bl31.h> #include <bl31/bl31.h>
#include <common/bl_common.h> #include <common/bl_common.h>
#include <common/debug.h> #include <common/debug.h>
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#include <lib/xlat_tables/xlat_tables.h> #include <lib/xlat_tables/xlat_tables.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include "versal_private.h"
static entry_point_info_t bl32_image_ep_info; static entry_point_info_t bl32_image_ep_info;
static entry_point_info_t bl33_image_ep_info; static entry_point_info_t bl33_image_ep_info;
static console_pl011_t versal_runtime_console; static console_pl011_t versal_runtime_console;
......
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef VERSAL_PRIVATE_H #ifndef PLAT_PRIVATE_H
#define VERSAL_PRIVATE_H #define PLAT_PRIVATE_H
#include <lib/xlat_tables/xlat_tables.h> #include <lib/xlat_tables/xlat_tables.h>
...@@ -21,4 +21,4 @@ void plat_versal_gic_pcpu_init(void); ...@@ -21,4 +21,4 @@ void plat_versal_gic_pcpu_init(void);
unsigned int versal_calc_core_pos(u_register_t mpidr); unsigned int versal_calc_core_pos(u_register_t mpidr);
#endif /* VERSAL_PRIVATE_H */ #endif /* PLAT_PRIVATE_H */
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <plat_private.h>
#include <common/debug.h> #include <common/debug.h>
#include <lib/mmio.h> #include <lib/mmio.h>
#include <lib/psci/psci.h> #include <lib/psci/psci.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include "versal_private.h"
static uintptr_t versal_sec_entry; static uintptr_t versal_sec_entry;
static int versal_nopmc_pwr_domain_on(u_register_t mpidr) static int versal_nopmc_pwr_domain_on(u_register_t mpidr)
......
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <plat_private.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include "versal_private.h"
int plat_core_pos_by_mpidr(u_register_t mpidr) int plat_core_pos_by_mpidr(u_register_t mpidr)
{ {
if (mpidr & MPIDR_CLUSTER_MASK) if (mpidr & MPIDR_CLUSTER_MASK)
......
/* /*
* 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 * SPDX-License-Identifier: BSD-3-Clause
*/ */
#include <plat_private.h>
#include <platform_def.h> #include <platform_def.h>
#include <common/interrupt_props.h> #include <common/interrupt_props.h>
...@@ -11,8 +12,6 @@ ...@@ -11,8 +12,6 @@
#include <lib/utils.h> #include <lib/utils.h>
#include <plat/common/platform.h> #include <plat/common/platform.h>
#include "versal_private.h"
/****************************************************************************** /******************************************************************************
* The following functions are defined as weak to allow a platform to override * The following functions are defined as weak to allow a platform to override
* the way the GICv3 driver is initialised and used. * the way the GICv3 driver is initialised and used.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment