summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 18167b6)
raw | patch | inline | side by side (parent: 18167b6)
author | Wendy Liang <jliang@xilinx.com> | |
Mon, 1 Aug 2016 18:03:55 +0000 (11:03 -0700) | ||
committer | Wendy Liang <jliang@xilinx.com> | |
Thu, 13 Oct 2016 05:01:45 +0000 (22:01 -0700) |
Add the firmware table to the application initialization.
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
apps/machine/zynq7/platform_info_remoteproc_master.c | patch | blob | history |
diff --git a/apps/machine/zynq7/platform_info_remoteproc_master.c b/apps/machine/zynq7/platform_info_remoteproc_master.c
index 19dd69b3f11129ce420a20649b709aefb858f614..c174289b425fea45e6553b783c82dfb7fb92ac00 100644 (file)
#include <string.h>
#include "openamp/hil.h"
+#include "openamp/firmware.h"
/* Reference implementation that show cases platform_get_cpu_info and
platform_get_for_firmware API implementation for Bare metal environment */
}
};
+/* Start and end addresses of firmware image for remotes. These are defined in the
+ * object files that are obtained by converting the remote ELF Image into object
+ * files. These symbols are not used for remotes.
+ */
+extern unsigned char _binary_firmware1_start;
+extern unsigned char _binary_firmware1_end;
+
+extern unsigned char _binary_firmware2_start;
+extern unsigned char _binary_firmware2_end;
+
+#define FIRMWARE1_START (void *)&_binary_firmware1_start
+#define FIRMWARE1_END (void *)&_binary_firmware1_end
+
+#define FIRMWARE2_START (void *)&_binary_firmware2_start
+#define FIRMWARE2_END (void *)&_binary_firmware2_end
+
+/* Init firmware table */
+
+const struct firmware_info fw_table[] =
+{
+ {"firmware1",
+ (unsigned int)FIRMWARE1_START,
+ (unsigned int)FIRMWARE1_END},
+ {"firmware2",
+ (unsigned int)FIRMWARE2_START,
+ (unsigned int)FIRMWARE2_END}
+};
+
+int fw_table_size = sizeof(fw_table)/sizeof(struct firmware_info);