mailbox: imx: add i.MX8 SECO MU support
authorFranck LENORMAND <franck.lenormand@nxp.com>
Mon, 7 Feb 2022 01:52:11 +0000 (09:52 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Sun, 13 Mar 2022 01:27:15 +0000 (19:27 -0600)
commit11dac1d3fa422abc841dcd4f5222a79398b3cf98
tree72f3ca916a2e4aaa8ffac1f4c487027833737cd1
parent315d2e5624183248514294899a26cb0fb3c20a46
mailbox: imx: add i.MX8 SECO MU support

i.MX8/8X SECO firmware IPC is an implementation of passing messages.
But current imx-mailbox driver only support one word  message,
i.MX8/8X linux side firmware has to request four TX, four RX and a
TXDB to support IPC to SECO firmware. This is low efficent and
more interrupts triggered compared with one TX and one RX.

To make SECO MU work,
  - parse the size of msg.
  - Only enable TR0/RR0 interrupt for transmit/receive message.
  - For TX/RX, only support one TX channel and one RX channel
  - For RX, support receive msg of any size, limited by hardcoded value
    of 30.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/imx-mailbox.c