mailbox: imx: support i.MX8ULP S4 MU
authorPeng Fan <peng.fan@nxp.com>
Fri, 22 Oct 2021 10:18:56 +0000 (18:18 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 Oct 2021 04:03:09 +0000 (23:03 -0500)
commit97961f78e8bc7f50ff7113fec030af6fa5f004d0
treea58517f52dabb34f9ba1b787dce0b5e03ca3606d
parenta6daa2207302162ccbaacdb32eab1286fc12124c
mailbox: imx: support i.MX8ULP S4 MU

Like i.MX8 SCU, i.MX8ULP S4 also has vendor specific protocol.
 - bind SCU/S4 MU part to share one tx/rx/init API to make code simple.
 - S4 msg max size is very large, so alloc the space at driver probe,
   not use local on stack variable.
 - S4 MU has 8 TR and 4 RR which is different with i.MX8 MU, so adapt
   code to reflect this.

   Tested on i.MX8MP, i.MX8ULP

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/imx-mailbox.c
include/linux/firmware/imx/s4.h [new file with mode: 0644]