mailbox: imx: restructure code to make easy for new MU
authorPeng Fan <peng.fan@nxp.com>
Thu, 19 Mar 2020 07:49:51 +0000 (15:49 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Fri, 20 Mar 2020 04:03:11 +0000 (23:03 -0500)
commit63b383575c388fe16aa52de04b95c5791d53c8ba
tree293ad5f5e09db8a489ed37ebf14b38c2cf8bb9bb
parenteabb8b8cfe96874f5801b5017bd3c3fa708b8309
mailbox: imx: restructure code to make easy for new MU

Add imx_mu_generic_tx for data send and imx_mu_generic_rx for interrupt
data receive.

Pack original mu chans related code into imx_mu_init_generic

Add tx/rx/init hooks into imx_mu_dcfg

With these, it will be a bit easy to introduce i.MX8/8X SCU type
MU dedicated to communicate with SCU.

Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/imx-mailbox.c