env: use cache line aligned memory for flash read
authorRavi Babu <ravibabu@ti.com>
Mon, 17 Aug 2015 07:59:49 +0000 (13:29 +0530)
committerJagan Teki <jteki@openedev.com>
Mon, 17 Aug 2015 17:59:14 +0000 (23:29 +0530)
commit7dd0174467a2a1fc99d7dc19b11bbadc80f9c740
tree5062540bf6119cd97171e2cc4c61bbad18fd41da
parent156e96f0382a09e3b67681566319ec945f192eb9
env: use cache line aligned memory for flash read

Use memalign() with ARCH_DMA_MINALIGN to allocate read buffers.
This is required because, flash drivers may use DMA for read operations
and may have to invalidate the buffer before read.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
Tested-by: Jagan Teki <jteki@openedev.com>
common/env_sf.c