remoteproc: add an api to do pa to da conversion
authorSubramaniam C.A <subramaniam.ca@ti.com>
Wed, 9 May 2012 00:30:14 +0000 (19:30 -0500)
committerSubramaniam C.A <subramaniam.ca@ti.com>
Wed, 9 May 2012 19:07:50 +0000 (14:07 -0500)
commitf9e71c9149d36a8199875aa2d573b3a1fa34eb29
treecbab254f1a2d427ad966cd85d14bd0c44f1e9c0c
parentf2e3f268daec8de463dab9da06b712bafa2ecfce
remoteproc: add an api to do pa to da conversion

Added an api to provide memory translation from a
physical address to a device virtual address.
Since, carveouts and mappings are stored separately,
we need to traverse both lists.

Also stored the physical addresses for RSC_DEVMEM entries
to enable pa to da conversion for dev mem address spaces too.

Signed-off-by: Subramaniam C.A <subramaniam.ca@ti.com>
Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h