]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mailbox: tegra-hsp: Add support for shared mailboxes
authorThierry Reding <treding@nvidia.com>
Wed, 28 Nov 2018 09:54:13 +0000 (10:54 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 22 Dec 2018 04:31:26 +0000 (22:31 -0600)
commit91b1b1c3da8a8fd9ee4538e00dd5e5fb5be1cdb4
treec1073da23c14fb997562a2f4c5e9020217f09a1c
parentfed8b7e366e7c8f81e957ef91aa8f0a38e038c66
mailbox: tegra-hsp: Add support for shared mailboxes

The Tegra HSP block supports 'shared mailboxes' that are simple 32-bit
registers consisting of a FULL bit in MSB position and 31 bits of data.
The hardware can be configured to trigger interrupts when a mailbox
is empty or full. Add support for these shared mailboxes to the HSP
driver.

The initial use for the mailboxes is the Tegra Combined UART. For this
purpose, we use interrupts to receive data, and spinning to wait for
the transmit mailbox to be emptied to minimize unnecessary overhead.

Based on work by Mikko Perttunen <mperttunen@nvidia.com>.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/tegra-hsp.c