author | Suman Anna <s-anna@ti.com> | |
Fri, 22 Feb 2019 23:37:49 +0000 (17:37 -0600) | ||
committer | Suman Anna <s-anna@ti.com> | |
Mon, 25 Feb 2019 19:15:11 +0000 (13:15 -0600) | ||
commit | c40d7d4e05dba3fdcaae93dad91475302551c361 | |
tree | a60650a5425cbf84cfe11306dfa35716b1441b9a | tree | snapshot (tar.xz tar.gz zip) |
parent | 8e98f04ad2604d879f32acb7a1d4b9851a15bda1 | commit | diff |
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>
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 | diff | blob | history |