mailbox: imx-mailbox: support i.MX8ULP MU
authorPeng Fan <peng.fan@nxp.com>
Fri, 28 May 2021 10:06:03 +0000 (18:06 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 26 Jun 2021 16:39:53 +0000 (11:39 -0500)
commit4f0b776ef5831700fe47567f6d986be410d7b9e4
tree80d35eb2013d927d7a536f7ea3326ffec8799c93
parentf689a7cf75975680eb2993d7360dbe6dd7617e17
mailbox: imx-mailbox: support i.MX8ULP MU

i.MX8ULP MU has different register layout and bit layout compared
with i.MX6SX/7ULP/8.

So add enum imx_mu_type to show it is IMX_MU_V2 or IMX_MU_V1.

For IMX_MU_V2 mu hardware, check it when calculating bit offset to get
the correct offset.

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