OMAP3: McBSP: Add interface for FIFO caused delay query
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Wed, 3 Mar 2010 13:08:08 +0000 (15:08 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 12 Mar 2010 11:12:25 +0000 (11:12 +0000)
commit7dc976ed38a927fc9880bd3dc498a6a903d1ba74
tree3c1ac1b744c62412decaf7eef0d007dde4643e79
parenteeb309a8a6ff86ce462e072bc95ecbe85618505e
OMAP3: McBSP: Add interface for FIFO caused delay query

New functions for querying the FIFO caused delay on both
TX and RX path.
On TX path the return value shows the number of used
locations in the FIFO.
On RX papth it returns the number of locations to be filled
to reach the threshold value (DMA will be triggered to read
the data out from the FIFO).

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
arch/arm/plat-omap/include/plat/mcbsp.h
arch/arm/plat-omap/mcbsp.c