summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2019-12-13 13:23:05 +0200
committerTero Kristo <t-kristo@ti.com>2019-12-19 10:33:47 +0200
commit6095b0ebd5c0e8092129212e4e1fa9891dbebffc (patch)
treeabae05eb7d5deb7c6c2cf45e3bfbcde52f663c98
parent38c1301a9ca77f56bee42be7d03f1225032a1387 (diff)
downloadipc-6095b0ebd5c0e8092129212e4e1fa9891dbebffc.tar.gz
Remoteproc: DRA7xx: Use FW_RSC_ADDR_ANY for vrings in DSP resource table
Mark the vring device addresses as FW_RSC_ADDR_ANY, so that Linux kernel knows it needs to update these to the actual dynamically allocated memory locations. The virtqueue driver itself will poll for the completion status of this update. Signed-off-by: Tero Kristo <t-kristo@ti.com>
-rw-r--r--packages/ti/ipc/remoteproc/rsc_table_vayu_dsp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/ti/ipc/remoteproc/rsc_table_vayu_dsp.h b/packages/ti/ipc/remoteproc/rsc_table_vayu_dsp.h
index 770b4c5..b470381 100644
--- a/packages/ti/ipc/remoteproc/rsc_table_vayu_dsp.h
+++ b/packages/ti/ipc/remoteproc/rsc_table_vayu_dsp.h
@@ -81,8 +81,6 @@
#define DSP_MEM_IPC_DATA 0x9F000000
#define DSP_MEM_IPC_VRING 0xA0000000
-#define DSP_MEM_RPMSG_VRING0 0xA0000000
-#define DSP_MEM_RPMSG_VRING1 0xA0004000
#define DSP_MEM_VRING_BUFS0 0xA0040000
#define DSP_MEM_VRING_BUFS1 0xA0080000
@@ -188,6 +186,8 @@ struct my_resource_table {
#pragma DATA_SECTION(ti_ipc_remoteproc_ResourceTable, ".resource_table")
#pragma DATA_ALIGN(ti_ipc_remoteproc_ResourceTable, 4096)
+#define RPMSG_VRING_ADDR_ANY FW_RSC_ADDR_ANY
+
struct my_resource_table ti_ipc_remoteproc_ResourceTable = {
1, /* we're the first version that implements this */
NUM_RSC_ENTRIES, /* number of entries in the table */
@@ -220,8 +220,8 @@ struct my_resource_table ti_ipc_remoteproc_ResourceTable = {
/* no config data */
},
/* the two vrings */
- { DSP_MEM_RPMSG_VRING0, 4096, DSP_RPMSG_VQ0_SIZE, 1, 0 },
- { DSP_MEM_RPMSG_VRING1, 4096, DSP_RPMSG_VQ1_SIZE, 2, 0 },
+ { RPMSG_VRING_ADDR_ANY, 4096, DSP_RPMSG_VQ0_SIZE, 1, 0 },
+ { RPMSG_VRING_ADDR_ANY, 4096, DSP_RPMSG_VQ1_SIZE, 2, 0 },
{
TYPE_CARVEOUT,