• Thierry Reding's avatar
    mailbox: tegra-hsp: Add support for shared mailboxes · 91b1b1c3
    Thierry Reding authored
    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: default avatarThierry Reding <treding@nvidia.com>
    Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
    91b1b1c3
tegra-hsp.c 20.6 KB