summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Nelson <sam.nelson@ti.com>2020-01-20 14:45:36 -0500
committerSam Nelson <sam.nelson@ti.com>2020-01-31 11:29:46 -0500
commit36b2fe589de8d2d79db7c076c2ca3b0a7488fc15 (patch)
treee88a70682ad4be78723b2c5bd919a19f1f99860a
parent77c681fb002b05d3f2fc048987f48bef88fa9f33 (diff)
downloadipc-36b2fe589de8d2d79db7c076c2ca3b0a7488fc15.tar.gz
K2: Use FW_RSC_ADDR_ANY for vrings in R5F resource table3.51.00.00
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: Sam Nelson <sam.nelson@ti.com>
-rw-r--r--packages/ti/ipc/remoteproc/rsc_table_tci6638.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/packages/ti/ipc/remoteproc/rsc_table_tci6638.h b/packages/ti/ipc/remoteproc/rsc_table_tci6638.h
index 10e5642..ea989fe 100644
--- a/packages/ti/ipc/remoteproc/rsc_table_tci6638.h
+++ b/packages/ti/ipc/remoteproc/rsc_table_tci6638.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2018, Texas Instruments Incorporated
+ * Copyright (c) 2012-2020, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -48,9 +48,6 @@
/* flip up bits whose indices represent features we support */
#define RPMSG_IPU_C0_FEATURES 1
-#define RPMSG_VRING0_DA 0xA0000000
-#define RPMSG_VRING1_DA 0xA0004000
-
/*
* sizes of the virtqueues (expressed in number of buffers supported,
* and must be power of 2)
@@ -90,6 +87,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 */
#ifndef TRACE_RESOURCE_ONLY
@@ -114,8 +113,8 @@ struct my_resource_table ti_ipc_remoteproc_ResourceTable = {
/* no config data */
},
/* the two vrings */
- { RPMSG_VRING0_DA, 4096, RPMSG_VQ0_SIZE, 1, 0 },
- { RPMSG_VRING1_DA, 4096, RPMSG_VQ1_SIZE, 2, 0 },
+ { RPMSG_VRING_ADDR_ANY, 4096, RPMSG_VQ0_SIZE, 1, 0 },
+ { RPMSG_VRING_ADDR_ANY, 4096, RPMSG_VQ1_SIZE, 2, 0 },
#endif
{