]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
remoteproc/pru: Add support for virtio rpmsg stack
authorSuman Anna <s-anna@ti.com>
Fri, 22 Feb 2019 00:20:28 +0000 (18:20 -0600)
committerSuman Anna <s-anna@ti.com>
Sun, 24 Feb 2019 01:20:51 +0000 (19:20 -0600)
commit8f504522d3cee90790f356e55e4b9f3f7b243def
tree3ac05f62d70d35324bf9af06c291ec0fe992e5ea
parent4b0e7a6fbfb884ef6703c0587c1ea2dfccef9d5a
remoteproc/pru: Add support for virtio rpmsg stack

The PRU remoteproc driver has been enhanced to support the optional
rpmsg stack using the virtio-ring based communication transport
between MPU and a PRU core. This provides support to any firmware
images supporting the virtio devices.

The virtio-ring signalling support is provided either through a OMAP
mailbox or through two PRU system events on OMAP-architecture based
SoCs - one event used in each direction for kicking from one processor
and receiving notification on the other processor. The virtio rpmsg
signalling is enabled only using using PRU system events for interrupts
on the Keystone-architecture based 66AK2G SoCs (it is possible to
implement using an alternate Keystone specific IPCGR registers as well).
The driver supports both signalling options, though the PRU events based
signalling is the recommended option as it avoids an external peripheral
access from the PRU side. It also provides a uniform solution across
both the OMAP, Keystone and Davinci architectures. The PRU events based
signalling takes precedence if both options are mentioned. Either of the
options would require the corresponding firmware support though. A build
dependency against MAILBOX is also added. Note that the OMAP Mailbox
IP is not present on 66AK2G and Davinci SoCs, so it is only selected
for OMAP-based SoCs.

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