MLK-20113 spi: ecspi: add pio spi slave mode for imx6ul
authorClark Wang <xiaoning.wang@nxp.com>
Fri, 2 Nov 2018 02:56:34 +0000 (10:56 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitb73f484a6fd22787d764d647dbbe273213f68f86
treee450d5c3ccda4fadde9fd1178192563e68336c35
parent2098353a0ff5d876179a7e85416105ee53582f61
MLK-20113 spi: ecspi: add pio spi slave mode for imx6ul

Add pio spi slave mode support for imx6ul which is based on the patch
cherry-pick from community(71abd29057cb17b6b9532421821dc443427399ed).

Because the original imx6ul is bound to mx51 in the dts file.
However, in the slave mode, the patch in the community only adds two
functions mx53_ecspi_rx_slave/mx53_ecspi_tx_slave. Therefore, configure
mx51/6ul to use these two functions for data transmission and reception
in slave mode.

Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
drivers/spi/spi-imx.c