mailbox: imx: replace the xTR/xRR array with single register
authorPeng Fan <peng.fan@nxp.com>
Fri, 28 May 2021 10:06:01 +0000 (18:06 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 26 Jun 2021 16:39:48 +0000 (11:39 -0500)
commit32f7443d4139208927bc9c3fda8e2a77ec24fe14
tree8d66589470d940f166f20568be643460eb8205a9
parent8339642c930500140fe27621d783630b002a6342
mailbox: imx: replace the xTR/xRR array with single register

The xTR/xRR registers are using 4 bytes stride and continuous.
Considering we will support more TR and RR registers, use base + idx * 4
method to calculate register address, not hardcoding in driver.

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