plat: xilinx: zynqmp: Move zynqmp_private.h to include directory
authorJolly Shah <jollys@xilinx.com>
Tue, 8 Jan 2019 19:10:47 +0000 (11:10 -0800)
committerJolly Shah <jollys@xilinx.com>
Wed, 9 Jan 2019 20:05:13 +0000 (12:05 -0800)
Move zynqmp_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 <tejas.patel@xilinx.com>
Reviewed-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Jolly Shah <jollys@xilinx.com>
12 files changed:
plat/xilinx/zynqmp/aarch64/zynqmp_common.c
plat/xilinx/zynqmp/bl31_zynqmp_setup.c
plat/xilinx/zynqmp/include/plat_private.h [new file with mode: 0644]
plat/xilinx/zynqmp/ipi_mailbox_service/ipi_mailbox_svc.c
plat/xilinx/zynqmp/plat_psci.c
plat/xilinx/zynqmp/plat_startup.c
plat/xilinx/zynqmp/plat_zynqmp.c
plat/xilinx/zynqmp/pm_service/pm_ipi.c
plat/xilinx/zynqmp/pm_service/pm_svc_main.c
plat/xilinx/zynqmp/tsp/tsp_plat_setup.c
plat/xilinx/zynqmp/zynqmp_ipi.c
plat/xilinx/zynqmp/zynqmp_private.h [deleted file]

index 23c02e068bfb8c2459ea1bdbd6bf8a24351e44c3..8ff6c436046ff86160127576ff78aadc0b21e3af 100644 (file)
@@ -11,9 +11,9 @@
 #include <drivers/generic_delay_timer.h>
 #include <lib/mmio.h>
 #include <lib/xlat_tables/xlat_tables.h>
+#include <plat_private.h>
 #include <plat/common/platform.h>
 
-#include "../zynqmp_private.h"
 #include "pm_api_sys.h"
 
 /*
index 01cd781ff64ee13c1079bd35ff00df57ba18f66e..8ecd6d7afbe567fd36917c26a4cec0a8be071e8d 100644 (file)
 #include <common/debug.h>
 #include <drivers/console.h>
 #include <plat_arm.h>
+#include <plat_private.h>
 #include <plat/common/platform.h>
 
-#include "zynqmp_private.h"
-
 #define BL31_END (unsigned long)(&__BL31_END__)
 
 static entry_point_info_t bl32_image_ep_info;
diff --git a/plat/xilinx/zynqmp/include/plat_private.h b/plat/xilinx/zynqmp/include/plat_private.h
new file mode 100644 (file)
index 0000000..99d0bc6
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef PLAT_PRIVATE_H
+#define PLAT_PRIVATE_H
+
+#include <stdint.h>
+
+#include <bl31/interrupt_mgmt.h>
+#include <common/bl_common.h>
+
+void zynqmp_config_setup(void);
+
+unsigned int zynqmp_calc_core_pos(u_register_t mpidr);
+
+/* ZynqMP specific functions */
+unsigned int zynqmp_get_uart_clk(void);
+unsigned int zynqmp_get_bootmode(void);
+
+/* For FSBL handover */
+enum fsbl_handoff {
+       FSBL_HANDOFF_SUCCESS = 0,
+       FSBL_HANDOFF_NO_STRUCT,
+       FSBL_HANDOFF_INVAL_STRUCT,
+       FSBL_HANDOFF_TOO_MANY_PARTS,
+};
+
+#if ZYNQMP_WDT_RESTART
+/*
+ * Register handler to specific GIC entrance
+ * for INTR_TYPE_EL3 type of interrupt
+ */
+int request_intr_type_el3(uint32_t, interrupt_type_handler_t);
+#endif
+
+enum fsbl_handoff fsbl_atf_handover(entry_point_info_t *bl32_image_ep_info,
+                      entry_point_info_t *bl33_image_ep_info);
+
+#endif /* PLAT_PRIVATE_H */
index 11f382a05392b1b68725e2c98faaf78cab175268..3aa0b75d5dc3e5568ea0ec1527b6ad4c32058751 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
 #include <common/runtime_svc.h>
 #include <lib/bakery_lock.h>
 #include <lib/mmio.h>
+#include <plat_private.h>
 
 #include "ipi_mailbox_svc.h"
 #include "../zynqmp_ipi.h"
-#include "../zynqmp_private.h"
 #include "../../../services/spd/trusty/smcall.h"
 
 /*********************************************************************
index 4183979a2c4af7676918227ff2e58664b52e6d63..8522d3e6c1c2217f5a0a4c4353c563fb47e2a1a1 100644 (file)
 #include <drivers/arm/gicv2.h>
 #include <lib/mmio.h>
 #include <lib/psci/psci.h>
+#include <plat_private.h>
 #include <plat/common/platform.h>
 
 #include <plat_arm.h>
 #include "pm_api_sys.h"
 #include "pm_client.h"
-#include "zynqmp_private.h"
 
 uintptr_t zynqmp_sec_entry;
 
index 03f0e3d82d72175181433a8cf1aa9eebc453353f..cd2c3bac6e6816702f522b7a4250aaf75176639a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -9,9 +9,9 @@
 #include <arch_helpers.h>
 #include <common/debug.h>
 #include <lib/mmio.h>
+#include <plat_private.h>
 
 #include "zynqmp_def.h"
-#include "zynqmp_private.h"
 
 /*
  * ATFHandoffParams
index ad18aafc305988298701c3ce2d91df873dda4068..906ce1b7feb3a73ad8c5f3b316fab9b18027bfd7 100644 (file)
@@ -4,10 +4,9 @@
  * SPDX-License-Identifier: BSD-3-Clause
  */
 
+#include <plat_private.h>
 #include <plat/common/platform.h>
 
-#include "zynqmp_private.h"
-
 int plat_core_pos_by_mpidr(u_register_t mpidr)
 {
        if (mpidr & MPIDR_CLUSTER_MASK)
index b3d833dfe294b215a030242aea5988d7121c38ce..66393ef30174067bb6ce14f0a09f4d7ac636594c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -7,10 +7,10 @@
 #include <arch_helpers.h>
 #include <lib/bakery_lock.h>
 #include <lib/mmio.h>
+#include <plat_private.h>
 #include <plat/common/platform.h>
 
 #include "../zynqmp_ipi.h"
-#include "../zynqmp_private.h"
 #include "pm_ipi.h"
 
 /* IPI message buffers */
index 0b8fc23529a5d083d804a29f8ec62ba1412eaf62..faa2827450bb44b2e3abd2b6fcfc6205dffc4e1f 100644 (file)
@@ -20,7 +20,7 @@
 #include <plat/common/platform.h>
 #endif
 
-#include "../zynqmp_private.h"
+#include <plat_private.h>
 #include "pm_api_sys.h"
 #include "pm_client.h"
 #include "pm_ipi.h"
index 25359f91aa4ce55e735848859a17efec41da0c0f..97718d6566b452be5e73e2ed34436c04b3161044 100644 (file)
@@ -9,9 +9,9 @@
 #include <drivers/console.h>
 
 #include <plat_arm.h>
+#include <plat_private.h>
 #include <platform_tsp.h>
 
-#include "../zynqmp_private.h"
 
 #define BL32_END (unsigned long)(&__BL32_END__)
 
index 54b18380def0158e03c6a416cd1a3a711caa1681..2830ea3a33550f38f86623f37bc3ee42496db686 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -15,9 +15,9 @@
 #include <common/runtime_svc.h>
 #include <lib/bakery_lock.h>
 #include <lib/mmio.h>
+#include <plat_private.h>
 
 #include "zynqmp_ipi.h"
-#include "../zynqmp_private.h"
 
 /*********************************************************************
  * Macros definitions
diff --git a/plat/xilinx/zynqmp/zynqmp_private.h b/plat/xilinx/zynqmp/zynqmp_private.h
deleted file mode 100644 (file)
index a8ebceb..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-#ifndef ZYNQMP_PRIVATE_H
-#define ZYNQMP_PRIVATE_H
-
-#include <stdint.h>
-
-#include <bl31/interrupt_mgmt.h>
-#include <common/bl_common.h>
-
-void zynqmp_config_setup(void);
-
-unsigned int zynqmp_calc_core_pos(u_register_t mpidr);
-
-/* ZynqMP specific functions */
-unsigned int zynqmp_get_uart_clk(void);
-unsigned int zynqmp_get_bootmode(void);
-
-/* For FSBL handover */
-enum fsbl_handoff {
-       FSBL_HANDOFF_SUCCESS = 0,
-       FSBL_HANDOFF_NO_STRUCT,
-       FSBL_HANDOFF_INVAL_STRUCT,
-       FSBL_HANDOFF_TOO_MANY_PARTS,
-};
-
-#if ZYNQMP_WDT_RESTART
-/*
- * Register handler to specific GIC entrance
- * for INTR_TYPE_EL3 type of interrupt
- */
-int request_intr_type_el3(uint32_t, interrupt_type_handler_t);
-#endif
-
-enum fsbl_handoff fsbl_atf_handover(entry_point_info_t *bl32_image_ep_info,
-                      entry_point_info_t *bl33_image_ep_info);
-
-#endif /* ZYNQMP_PRIVATE_H */