|
6 | 6 |
|
7 | 7 | #define DT_DRV_COMPAT xlnx_zynqmp_ipi_mailbox
|
8 | 8 |
|
| 9 | +#include "ipm_xlnx_ipi.h" |
| 10 | + |
9 | 11 | #include <errno.h>
|
10 | 12 | #include <zephyr/device.h>
|
11 | 13 | #include <zephyr/drivers/ipm.h>
|
12 | 14 | #include <zephyr/irq.h>
|
13 |
| -#include <zephyr/logging/log.h> |
14 | 15 |
|
15 |
| -#include "ipm_xlnx_ipi.h" |
| 16 | +#include <zephyr/logging/log.h> |
16 | 17 | LOG_MODULE_REGISTER(ipm_xlnx_ipi, CONFIG_IPM_LOG_LEVEL);
|
17 | 18 |
|
18 | 19 | #define XLNX_IPI_MAX_BUF_SIZE_BYTES 32
|
@@ -110,15 +111,6 @@ static void xlnx_mailbox_rx_isr(const struct device *dev)
|
110 | 111 | }
|
111 | 112 | }
|
112 | 113 |
|
113 |
| -static int xlnx_ipi_child_init(const struct device *dev) |
114 |
| -{ |
115 |
| - const struct xlnx_ipi_child_config *cdev_conf; |
116 |
| - |
117 |
| - cdev_conf = dev->config; |
118 |
| - |
119 |
| - return 0; |
120 |
| -} |
121 |
| - |
122 | 114 | static int xlnx_ipi_send(const struct device *ipmdev, int wait, uint32_t id, const void *data,
|
123 | 115 | int size)
|
124 | 116 | {
|
@@ -231,7 +223,7 @@ static struct ipm_driver_api xlnx_ipi_api = {
|
231 | 223 | xlnx_ipi_reg_info_zynqmp[DT_PROP(ch_node, remote_ipi_id)].ipi_ch_bit, \
|
232 | 224 | .host_ipi_reg = DT_REG_ADDR_BY_NAME(DT_PARENT(ch_node), host_ipi_reg), \
|
233 | 225 | }; \
|
234 |
| - DEVICE_DT_DEFINE(ch_node, &xlnx_ipi_child_init, NULL, &xlnx_ipi_child_data##ch_node, \ |
| 226 | + DEVICE_DT_DEFINE(ch_node, NULL, NULL, &xlnx_ipi_child_data##ch_node, \ |
235 | 227 | &xlnx_ipi_child_config##ch_node, POST_KERNEL, \
|
236 | 228 | CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &xlnx_ipi_api);
|
237 | 229 |
|
|
0 commit comments