mailbox: zynqmp: Move struct zynqmp_ipi_msg from sys_proto.h
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@xilinx.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/20220722084658.30995-5-ashok.reddy.soma@xilinx.com
This commit is contained in:
parent
7b4e365e49
commit
cce3351501
@ -46,11 +46,6 @@ enum {
|
|||||||
TCM_SPLIT,
|
TCM_SPLIT,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct zynqmp_ipi_msg {
|
|
||||||
size_t len;
|
|
||||||
u32 *buf;
|
|
||||||
};
|
|
||||||
|
|
||||||
int zynq_board_read_rom_ethaddr(unsigned char *ethaddr);
|
int zynq_board_read_rom_ethaddr(unsigned char *ethaddr);
|
||||||
unsigned int zynqmp_get_silicon_version(void);
|
unsigned int zynqmp_get_silicon_version(void);
|
||||||
|
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <mailbox-uclass.h>
|
#include <mailbox-uclass.h>
|
||||||
#include <dm/device_compat.h>
|
#include <dm/device_compat.h>
|
||||||
#include <mach/sys_proto.h>
|
|
||||||
#include <linux/ioport.h>
|
#include <linux/ioport.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
#include <wait_bit.h>
|
#include <wait_bit.h>
|
||||||
|
#include <zynqmp_firmware.h>
|
||||||
|
|
||||||
/* IPI bitmasks, register base */
|
/* IPI bitmasks, register base */
|
||||||
/* TODO: move reg base to DT */
|
/* TODO: move reg base to DT */
|
||||||
|
@ -490,4 +490,9 @@ enum zynqmp_pm_request_ack {
|
|||||||
/* PM API versions */
|
/* PM API versions */
|
||||||
#define PM_API_VERSION_2 2
|
#define PM_API_VERSION_2 2
|
||||||
|
|
||||||
|
struct zynqmp_ipi_msg {
|
||||||
|
size_t len;
|
||||||
|
u32 *buf;
|
||||||
|
};
|
||||||
|
|
||||||
#endif /* _ZYNQMP_FIRMWARE_H_ */
|
#endif /* _ZYNQMP_FIRMWARE_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user