]> 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)
commitaa2f659c151ece0da97ab9288b5ac52a38ac2057
treef3885db699034d04bbdb25fed447c458911898ca
parent5b5269f3c6971a5cc3daee333447181eeca38935
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