omap: remoteproc: fix a compilation error on autosuspend disable

The patch,
"omap: remoteproc: set the load boot address in activate function",
introduced a compilation error when the remoteproc autosuspend is
disabled from the kernel menuconfig.

drivers/remoteproc/omap_remoteproc.c: In function 'omap_rproc_activate':
drivers/remoteproc/omap_remoteproc.c:191: error: 'struct omap_rproc_priv' has no member named 'bootaddr'
drivers/remoteproc/omap_remoteproc.c: In function 'omap_rproc_start':
drivers/remoteproc/omap_remoteproc.c:470: error: 'struct omap_rproc_priv' has no member named 'bootaddr'
make[2]: *** [drivers/remoteproc/omap_remoteproc.o] Error 1
make[1]: *** [drivers/remoteproc] Error 2
make: *** [drivers] Error 2

The same has been fixed.

Change-Id: I99506d6d30724e51a0325762d9ba2dff533fe852
Reported-by: Mihail Dobrev <x0099086@ti.com>
Signed-off-by: Miguel Vadillo <vadillo@ti.com>
rpmsg: omx: return actual user-provided bytes written in write

The 'write' system call is expected to return the number of bytes
written back to userspace. The rpmsg omx driver adds a small packet
header when sending a message to the remote processor, and is
currently returning this header length as well in the driver's write
fop function. This results in the write call always returning more
bytes than what the user has requested. The header length is now
left out of the bytes returned back.

Change-Id: I7132001fbc6fb34d01913bb3c30f455626c91658
Signed-off-by: Suman Anna <s-anna@ti.com>
remoteproc: export rproc_da_to_pa function

The rproc_da_to_pa function has been converted from an internal
function to a public function. The function's signature is also
modified to be similar to its counter-part and already exported
function, rproc_pa_to_da.

Change-Id: I30492e90ea839124483b7eefd41cb8bec45065ce
Signed-off-by: Suman Anna <s-anna@ti.com>
rpmsg: kconfig: add a dependency with remoteproc in rpmsg_omx

Due to the use of the rproc_pa_to_da API's in rpmsg_omx, now
this module depends on remoteproc directly. So a dependency
needs to be added in kconfig to avoid breaking the build
when disabling remoteproc driver.

Change-Id: Ife9b3ec20154ddf24cc0f7a5241dd13b08440101
Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
omap4: hdmi: adding a macro for acr wa dependency with rpmsg and ipu

Hdmi acr workaround is based on the creation of an rpmsg channel
to start/stop the workaround in the ipu remote processor. If the ipu
remoteproc or rpmsg are disabled by menu config, the build is broken.

This patch adds a macro for disabling hdmiwa in the case of rpmsg
or remoteproc_ipu are disabled.

Change-Id: I1618d886d16ffe0c07b810e6e1fd678debc547cd
Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
remoteproc: get suspend address from resource table

The suspend address is used as a flag to check if the remoteproc
has actually suspended. The address could vary according to the
memory map in the remoteproc. Changing the memory map in the
remote processor changes the value of the suspend address.
Passing the address in the resource table information avoids
hardcoding the value in the platform data of the remoteproc.
The value is instead assigned while parsing the resource table.

Change-Id: I698b81d61d391af85bc1556d2abc4c407c1db018
Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Merge remote-tracking branch 'remotes/omap_zoom/p-android-omap-3.0' into acclaim