]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:24:14 +0000 (10:24 +0200)
commit6c5447092554ba30f11aaf88dbd051260bf326fd
treec55ecae13102c9faf7460742915f9c8e281c5680
parent9e9ad03f089fd7a2c29229cf1e97e9b18acb6136
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