remoteproc: add helper function to allocate rproc_mem_entry from reserved memory
authorLoic Pallardy <loic.pallardy@st.com>
Fri, 27 Jul 2018 13:14:44 +0000 (15:14 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 10 Oct 2018 05:39:14 +0000 (22:39 -0700)
commit1429cca1175f4cb64dd5d61ffd6037895a41d672
tree3d62e3b206f6da65bf01f9d160698b6dcb927f68
parentd7c51706d0956472b7c0530b1bf8fba32d82ee6b
remoteproc: add helper function to allocate rproc_mem_entry from reserved memory

This patch introduces rproc_res_mem_entry_init() helper function to
allocate a rproc_mem_entry structure from a reserved memory region.
In that case, rproc_mem_entry structure has no alloc and release ops.
It will be used to assigned the specified reserved memory to any
rproc sub device.
Relation between rproc_mem_entry and rproc sub device will be done
by name.

Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h