bootcounter_ram: Flush dcache after data is written into SDRAM
authorStefan Roese <sr@denx.de>
Wed, 6 Apr 2016 09:02:22 +0000 (11:02 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 12 Apr 2016 00:48:25 +0000 (20:48 -0400)
commit20adda4cf8980a9df1d966bd7bec918ac3e4e5d6
tree056c13df1fc936ef62b39c1fab6dc3ca77404b48
parentd9b2678e0a5e5781b37487ccb943ddcbf0623bb0
bootcounter_ram: Flush dcache after data is written into SDRAM

This patch adds a call to flush_dcache_range() to bootcount_store() to
make sure, that the bootcounter data (including the patterns) is
written to memory. Without this, platforms with dcache enabled may not
have the bootcounter updated upon reset.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Valentin Longchamp <valentin.longchamp@keymile.com>
drivers/bootcount/bootcount_ram.c