soc: ti: pruss: Add pruss_{request,release}_mem_region() API
authorAndrew F. Davis <afd@ti.com>
Fri, 14 Apr 2023 04:55:40 +0000 (10:25 +0530)
committerNishanth Menon <nm@ti.com>
Wed, 17 May 2023 14:15:39 +0000 (09:15 -0500)
commitb789ca1e3380ab63b60c3356c026a7e8eb26ba01
tree1d833b66f728e3b74d56f9555ac30acaac82d3ce
parent67d1b0a1030fb20d54b720df6e976c06b893fb00
soc: ti: pruss: Add pruss_{request,release}_mem_region() API

Add two new API - pruss_request_mem_region() & pruss_release_mem_region(),
to the PRUSS platform driver to allow client drivers to acquire and release
the common memory resources present within a PRU-ICSS subsystem. This
allows the client drivers to directly manipulate the respective memories,
as per their design contract with the associated firmware.

Co-developed-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Co-developed-by: Grzegorz Jaszczyk <grzegorz.jaszczyk@linaro.org>
Signed-off-by: Grzegorz Jaszczyk <grzegorz.jaszczyk@linaro.org>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Acked-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Link: https://lore.kernel.org/r/20230414045542.3249939-3-danishanwar@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
drivers/soc/ti/pruss.c
include/linux/pruss_driver.h