[PATCH v2 4/5] mailbox: zynqmp: Move struct zynqmp_ipi_msg from sys_proto.h

Ashok Reddy Soma ashok.reddy.soma at xilinx.com
Fri Jul 22 10:46:57 CEST 2022


Mailbox driver might be need for Versal and other future platforms.
To remove the dependency, move struct zynqmp_ipi_msg to
zynqmp_firmware.h so that mailbox driver compiles for other platforms
easily.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma at xilinx.com>
---

(no changes since v1)

 arch/arm/mach-zynqmp/include/mach/sys_proto.h | 5 -----
 drivers/mailbox/zynqmp-ipi.c                  | 2 +-
 include/zynqmp_firmware.h                     | 5 +++++
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/arm/mach-zynqmp/include/mach/sys_proto.h b/arch/arm/mach-zynqmp/include/mach/sys_proto.h
index 1c12eac715..9fffb4e541 100644
--- a/arch/arm/mach-zynqmp/include/mach/sys_proto.h
+++ b/arch/arm/mach-zynqmp/include/mach/sys_proto.h
@@ -46,11 +46,6 @@ enum {
 	TCM_SPLIT,
 };
 
-struct zynqmp_ipi_msg {
-	size_t len;
-	u32 *buf;
-};
-
 int zynq_board_read_rom_ethaddr(unsigned char *ethaddr);
 unsigned int zynqmp_get_silicon_version(void);
 
diff --git a/drivers/mailbox/zynqmp-ipi.c b/drivers/mailbox/zynqmp-ipi.c
index 959cce923c..3e4ec47389 100644
--- a/drivers/mailbox/zynqmp-ipi.c
+++ b/drivers/mailbox/zynqmp-ipi.c
@@ -11,10 +11,10 @@
 #include <dm.h>
 #include <mailbox-uclass.h>
 #include <dm/device_compat.h>
-#include <mach/sys_proto.h>
 #include <linux/ioport.h>
 #include <linux/io.h>
 #include <wait_bit.h>
+#include <zynqmp_firmware.h>
 
 /* IPI bitmasks, register base */
 /* TODO: move reg base to DT */
diff --git a/include/zynqmp_firmware.h b/include/zynqmp_firmware.h
index 1c22a62207..fa969bf336 100644
--- a/include/zynqmp_firmware.h
+++ b/include/zynqmp_firmware.h
@@ -492,4 +492,9 @@ enum zynqmp_pm_request_ack {
 /* PM API versions */
 #define PM_API_VERSION_2		2
 
+struct zynqmp_ipi_msg {
+	size_t len;
+	u32 *buf;
+};
+
 #endif /* _ZYNQMP_FIRMWARE_H_ */
-- 
2.17.1



More information about the U-Boot mailing list