index bbca0ee7ba53d98f5c92c3df7f6afa893cd957be..0a9f8d9bad2562d4f48834c2a05c1e55983cdd68 100755 (executable)
#include "openamp/hil.h"
#include "openamp/remoteproc_plat.h"
+#include "metal/atomic.h"
#include "platform_info.h"
#define IPI_CHN_BITMASK 0x01000000 /* IPI channel bit mask APU<->RPU0 */
struct ipi_info {
uint32_t ipi_chn_mask;
int need_reg;
+ atomic_int sync;
};
/* Reference implementation that show cases platform_get_cpu_info and
platform_get_for_firmware API implementation for Bare metal environment */
extern struct hil_platform_ops zynqmp_r5_a53_proc_ops;
static struct ipi_info chn_ipi_info[] = {
- { IPI_CHN_BITMASK, 0},
- { IPI_CHN_BITMASK, 1},
+ { IPI_CHN_BITMASK, 0, 0},
+ { IPI_CHN_BITMASK, 1, 0},
};
struct rproc_info_plat_local proc_table = {
0}
};
-int fw_table_size = sizeof(fw_table)/sizeof(struct firmware_info);
+const int fw_table_size = sizeof(fw_table)/sizeof(struct firmware_info);