Commits
Roger Quadros committed a6699015516
remoteproc/pruss: add APIs to get and set the PRU cores Add two new get and put API, pruss_rproc_get() and pruss_rproc_put(), to the PRUSS platform driver to allow client drivers to acquire and release the remoteproc device associated with a PRU core. The PRU cores are treated as resources with only one client owning it at a time. The pruss_rproc_get() function returns the rproc handle corresponding to a PRU core identified by its id number. The pruss_rproc_put() is the complimentary function to pruss_rproc_get(). Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Andrew F. Davis <afd@ti.com> [s-anna@ti.com: update pru lookup logic, error checking, cleanup] Signed-off-by: Suman Anna <s-anna@ti.com>