]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:13 +0000 (12:19 +0200)
commit8ef8c06ea90b2b437d37376daedb1f45e0d53e80
tree476db94e9b1bd917d9a2f92df7f61c6404b7916b
parent24ae86bbe816da276f4fbf3ff9feae237f9ef319
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