]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit385ab8fb3e8ac26849121636582cdfcb7200176d
tree8d66589470d940f166f20568be643460eb8205a9
parentc618a9cf620232db99b6611819c216779349fb20
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