summaryrefslogtreecommitdiff
path: root/include/remoteproc.h
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2018-08-27 15:57:50 +0530
committerTom Rini <trini@konsulko.com>2018-09-11 08:32:55 -0400
commit81ae6e6d0098c9ad7d6746b4f2952a046130999c (patch)
treec6e1d7b2dc58d8aa40b3238cdee4bf36ca9afc0f /include/remoteproc.h
parent880274192cfdcec83b32b15ae47e7cbfc2edc1df (diff)
remoteproc: Allow for individual remoteproc initialization
Existing rproc_init() api tries to initialize all available remoteproc devices. This will fail when there is dependency among available remoteprocs. So introduce a separate api that allows to initialize remoteprocs individually based on id. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'include/remoteproc.h')
-rw-r--r--include/remoteproc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/remoteproc.h b/include/remoteproc.h
index c3c3f46a1a..a59dba8481 100644
--- a/include/remoteproc.h
+++ b/include/remoteproc.h
@@ -86,6 +86,14 @@ struct dm_rproc_ops {
int rproc_init(void);
/**
+ * rproc_dev_init() - Initialize a remote proc device based on id
+ * @id: id of the remote processor
+ *
+ * Return: 0 if all ok, else appropriate error value.
+ */
+int rproc_dev_init(int id);
+
+/**
* rproc_is_initialized() - check to see if remoteproc devices are initialized
*
* Return: 0 if all devices are initialized, else appropriate error value.
@@ -150,6 +158,7 @@ int rproc_ping(int id);
int rproc_is_running(int id);
#else
static inline int rproc_init(void) { return -ENOSYS; }
+static inline int rproc_dev_init(int id) { return -ENOSYS; }
static inline bool rproc_is_initialized(void) { return false; }
static inline int rproc_load(int id, ulong addr, ulong size) { return -ENOSYS; }
static inline int rproc_start(int id) { return -ENOSYS; }