
On Wed, Mar 11, 2015 at 09:51:38AM +0100, Stefan Roese wrote:
Without this dcache_flush the updated bootcounter may not be saved to its location.
This was detected on an iMX.6 platform using the OCRAM (internal SRAM) as bootcounter storage area. And issuing "reset" from within U-Boot cause the bootcounter to stay on its initial value.
Signed-off-by: Stefan Roese sr@denx.de Reviewed-by: Tom Rini trini@konsulko.com
OK, this breaks some platforms: powerpc: + TQM850L +(TQM850L) drivers/built-in.o: In function `bootcount_store': +(TQM850L) build/../drivers/bootcount/bootcount.c:64: undefined reference to `flush_dca che_range' +(TQM850L) make[1]: *** [u-boot] Error 1 +(TQM850L) make: *** [sub-make] Error 2
We'll see how many others have the same problem soon and then I'll decide on nuking the old platforms of holding off on this change.