MLK-9986-4 dma: imx-sdma: add new ecspi tx script
authorRobin Gong <b38343@freescale.com>
Thu, 18 Dec 2014 04:41:16 +0000 (12:41 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:24 +0000 (14:47 -0500)
commitf99b2bff9cd560fb4edb7cf5fd78b2e9235794c1
tree215d7f4961c499c95d17e7189c872a57a1546db2
parentf34b2ec4f01f4a7db4bb883850cbca4172fa6508
MLK-9986-4 dma: imx-sdma: add new ecspi tx script

Current ecspi rom script didn't take care of rxfifo overflow risk. Add new
ecspi tx script to check the rxfifo status, if it is near to full(>=48 bytes),
do not copy data to txfifo which will trigger data push into rxfifo. Because
rx script may not read rxfifo in time, we have to consider it.

Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit 17f472aa698aba0af5da4566df447e23306f4289)
(cherry picked from commit 90c929d7d1a3f8e196641b5ed7a33d2ee03bd63c)
(cherry picked from commit 6d76bdcf2097e4198217edf27363cf6ba2e6542a)
drivers/dma/imx-sdma.c