]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi_nand_spl: Add proper cache flusing
authorHans de Goede <hdegoede@redhat.com>
Sat, 15 Aug 2015 10:32:24 +0000 (12:32 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 31 Aug 2015 06:43:41 +0000 (08:43 +0200)
commit2a43973f64bce7dba1a5aabd18f2268f062aa0ef
tree0e1c589c5c32f1a5f842f82effa9a74e10304c58
parent5d65c67bf10bc5a815023ac13a2689aee9956d92
sunxi_nand_spl: Add proper cache flusing

We are using dma, so we should flush the cache before starting the dma,
and invalidate it once the dma is done.

Things are working without this by mostly luck, but lets not rely on that.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/mtd/nand/sunxi_nand_spl.c