]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
plat: xilinx: Move pm_client.h to common directory
authorTejas Patel <tejas.patel@xilinx.com>
Fri, 10 Jan 2020 11:08:40 +0000 (03:08 -0800)
committerJolly Shah <jolly.shah@xilinx.com>
Wed, 15 Jan 2020 19:04:15 +0000 (11:04 -0800)
Move pm_client.h to common directory to avoid duplication
of function declaration.

Signed-off-by: Tejas Patel <tejas.patel@xilinx.com>
Signed-off-by: Jolly Shah <jolly.shah@xilinx.com>
Change-Id: Iea542e681f42db089cccd9b24d286ac8f0a2ce35

plat/xilinx/common/include/pm_client.h [new file with mode: 0644]
plat/xilinx/versal/pm_service/pm_client.h [deleted file]
plat/xilinx/zynqmp/pm_service/pm_client.h [deleted file]

diff --git a/plat/xilinx/common/include/pm_client.h b/plat/xilinx/common/include/pm_client.h
new file mode 100644 (file)
index 0000000..e91bb8f
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+/*
+ * Contains APU specific macros and macros to be defined depending on
+ * the execution environment.
+ */
+
+#ifndef PM_CLIENT_H
+#define PM_CLIENT_H
+
+#include "pm_common.h"
+#include "pm_defs.h"
+
+/* Functions to be implemented by each PU */
+void pm_client_suspend(const struct pm_proc *proc, unsigned int state);
+void pm_client_abort_suspend(void);
+void pm_client_wakeup(const struct pm_proc *proc);
+
+/* Global variables to be set in pm_client.c */
+extern const struct pm_proc *primary_proc;
+
+#ifndef VERSAL_PLATFORM
+enum pm_ret_status set_ocm_retention(void);
+enum pm_ret_status pm_set_suspend_mode(uint32_t mode);
+const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid);
+#endif
+
+#endif /* PM_CLIENT_H */
diff --git a/plat/xilinx/versal/pm_service/pm_client.h b/plat/xilinx/versal/pm_service/pm_client.h
deleted file mode 100644 (file)
index 91f135c..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (c) 2019, Xilinx, Inc. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-/*
- * Contains APU specific macros and macros to be defined depending on
- * the execution environment.
- */
-
-#ifndef PM_CLIENT_H
-#define PM_CLIENT_H
-
-#include "pm_common.h"
-#include "pm_defs.h"
-
-/* Functions to be implemented by each PU */
-void pm_client_suspend(const struct pm_proc *proc, unsigned int state);
-void pm_client_wakeup(const struct pm_proc *proc);
-void pm_client_abort_suspend(void);
-
-/* Global variables to be set in pm_client.c */
-extern const struct pm_proc *primary_proc;
-
-#endif /* PM_CLIENT_H */
diff --git a/plat/xilinx/zynqmp/pm_service/pm_client.h b/plat/xilinx/zynqmp/pm_service/pm_client.h
deleted file mode 100644 (file)
index adbb76f..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2013-2015, ARM Limited and Contributors. All rights reserved.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-/*
- * Contains APU specific macros and macros to be defined depending on
- * the execution environment.
- */
-
-#ifndef PM_CLIENT_H
-#define PM_CLIENT_H
-
-#include "pm_common.h"
-#include "pm_defs.h"
-
-/* Functions to be implemented by each PU */
-void pm_client_suspend(const struct pm_proc *proc, unsigned int state);
-void pm_client_abort_suspend(void);
-void pm_client_wakeup(const struct pm_proc *proc);
-enum pm_ret_status set_ocm_retention(void);
-enum pm_ret_status pm_set_suspend_mode(uint32_t mode);
-const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid);
-
-/* Global variables to be set in pm_client.c */
-extern const struct pm_proc *primary_proc;
-
-#endif /* PM_CLIENT_H */