imx233: make sure dma descriptors are cache friendly
commit1b6e8cba62d0ea12bc39b0e3f60f66c3892ca1ff
authorAmaury Pouly <amaury.pouly@gmail.com>
Sat, 19 May 2012 23:23:17 +0000 (20 01:23 +0200)
committerAmaury Pouly <amaury.pouly@gmail.com>
Sat, 19 May 2012 23:35:25 +0000 (20 01:35 +0200)
tree9d034e05f485b42f837a509ff91844c0f7432be5
parent1adc47477144e701dcb1184f907887eadec05fda
imx233: make sure dma descriptors are cache friendly

Because DMA descriptors needs to be committed and discarded from
the cache, if they are not cache aligned and/or if their size
is not a multiple of cache ligne, nasty side effects could occur
with adjacents data. The same applies to DMA buffers which are
still potentially broken. Add a macro to ensure that these
constraints will not break by error in the future.

Change-Id: I1dd69a5a9c29796c156d953eaa57c0d281e79846
firmware/export/imx233.h
firmware/target/arm/imx233/dma-imx233.h
firmware/target/arm/imx233/i2c-imx233.c
firmware/target/arm/imx233/pcm-imx233.c
firmware/target/arm/imx233/ssp-imx233.c