]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
remoteproc/pru: use macros and types from omap mailbox
authorSuman Anna <s-anna@ti.com>
Fri, 22 Feb 2019 23:37:49 +0000 (17:37 -0600)
committerSuman Anna <s-anna@ti.com>
Mon, 25 Feb 2019 19:15:11 +0000 (13:15 -0600)
commitc40d7d4e05dba3fdcaae93dad91475302551c361
treea60650a5425cbf84cfe11306dfa35716b1441b9a
parent8e98f04ad2604d879f32acb7a1d4b9851a15bda1
remoteproc/pru: use macros and types from omap mailbox

The actual payload size for OMAP Mailboxes is 32-bits, and the type
to use with the OMAP Mailbox driver is mbox_msg_t. This type can vary
in size (32-bits or 64-bits) depending on the platform the driver is
being built for. Update the PRU remoteproc driver to use the types and
macros provided by the OMAP Mailbox driver to always convert safely
between the mailbox payload size and the pointers the data is exchanged
between the OMAP Mailbox implementation driver and its client drivers.

Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/remoteproc/pru_rproc.c