]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: modify rproc_handle_carveout to support pre-registered region
authorLoic Pallardy <loic.pallardy@st.com>
Fri, 27 Jul 2018 13:14:46 +0000 (15:14 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 10 Oct 2018 05:41:04 +0000 (22:41 -0700)
commit855a4a3808fc569c270ac77f7d7d7f242309f63e
treef3885db699034d04bbdb25fed447c458911898ca
parent8e2492106f833e8cf7d5f5ec646a2eb2ed829146
remoteproc: modify rproc_handle_carveout to support pre-registered region

In current version rproc_handle_carveout() function registers carveout
for allocation.
This patch extends rproc_handle_carveout() function to support
pre-registered region. Match is done on region name, then requested
device address and length are checked.
If match found, pre-registered region is associated with resource
table request.
If no name match found, new carveout is registered for allocation.

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