dma-coherent: Add alloc_shift to dma_coherent_mem
Allow clients to set allocation chunk size so that they can
use it and fix the lowest unit of allocation. For example,
vpr need not really need small chunks like 4KB, it can use
bigger chunks like 64KB or even higher.
Currently allow only power of 2 allocation chunk size as it
is suffices our requirements and it is faster to multiply
power of 2 numbers by using shift operations.
JIRA TMM-101
Change-Id: I15f34667b3767e0828e35e11504ed42b64a57144
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/
1278661
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>