OMAP4: HSI: use DMA burst mode

To optimize throughput, HSI DMA now uses 4x32bits burst transfers instead of single access.
It means DMA waits for more frames to be stored in FIFO, then starts a burst.

Change-Id: Icb692374fdb8586519b4d570713e51e132fe84df
Signed-off-by: Djamil Elaidi <d-elaidi@ti.com>
OMAP4: HSI: fix wrong debugfs counters setting

When user enters a FB/TB/FT counter value bigger than maximum allowed, the
value used was not the max allowed but input value modulo maximum allowed.

This has been fixed to use max allowed value.

Change-Id: I893827fb362e33ca42142c916ec952ff1b4fd56b
Signed-off-by: Djamil Elaidi <d-elaidi@ti.com>
OMAP4: HSI: fix FIFO flush API backward compatibility

The below commit broke the FIFO flush API as it introduced the need for an argument
used to return tne number of flushed frames.
  commit 3acc3ce202479e98dbfa7b6ec0a30f1ab5f8e50b
  OMAP4: HSI: fix FIFO flush API

Restored compatibility with previous code by making the argument optional.
Added a warning to indicate HST FIFO flush not possible.

Change-Id: Iafb6af243a94b2eb0279a13048a6d11b930eb2a4
Signed-off-by: Djamil Elaidi <d-elaidi@ti.com>
OMAP4: HSI: cleanup: move HSR FSM control in separate functions

created functions hsi_hsr_resume & hsi_hsr_suspend to regroup
specific HSR FSM controls.

Change-Id: I2237fb467b886eb4b47d47b191b799ff01d9e22a
Signed-off-by: Djamil Elaidi <d-elaidi@ti.com>

Conflicts:
	drivers/omap_hsi/hsi_driver.c
OMAP3: xSI: add RX/TX transfer ongoing function

New functions to check if HSI or SSI controller, port or channel has
a read or write pending.

Change-Id: Id0bad5e359de6aaeddc517d3d92d0db795d55cc1
Signed-off-by: Djamil Elaidi <d-elaidi@ti.com>
OMAP3+: xSI: fix warnings

Fixed warning in debugfs for SSI
Fixed unused variable

Change-Id: I609e4abb547cf92156e6d9ab9ab8944c39c4ea57
Signed-off-by: Djamil Elaidi <d-elaidi@ti.com>
OMAP4: HSI: traces clarification and verbosity reduction

Removed R/W cancel traces introduced by customer
Reduced verbosity of HSI TX flush impossibility
Clarified CAWAKE wakeup using daisy chain
Removed alarmist "WARNING" in traces

Change-Id: I1de156d20f03b3fbff49ea062ebe3e4229c2fda1
Signed-off-by: Djamil Elaidi <d-elaidi@ti.com>
Fix HSI