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)
commitffa5f9c84810ea175226863f66a51bb2d4502f5b
treef3885db699034d04bbdb25fed447c458911898ca
parentc874bf59add0e6ed1d5d8c1753b9b66d51e3f640
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