]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
MIPS: allow systems to skip loads during cache init
authorPaul Burton <paul.burton@imgtec.com>
Thu, 29 Jan 2015 01:28:02 +0000 (01:28 +0000)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Thu, 29 Jan 2015 11:55:01 +0000 (12:55 +0100)
commitdd7c72006e51f0d27e5cb1dcf60d5b9bf307565e
treea2db8dc572e96427919f6f1bae496c3abff8cd5e
parentca4e833cd6409c72e5b13ee803a4f08381e6d160
MIPS: allow systems to skip loads during cache init

Current MIPS systems do not require that loads be performed to force the
parity of cache lines, a simple invalidate by clearing the tag for each
line will suffice. Thus this patch makes the loads & subsequent second
invalidation conditional upon the CONFIG_SYS_MIPS_CACHE_INIT_RAM_LOAD
option, and defines that for existing mips32 targets. Exceptions are
malta where this is known to be unnecessary, and qemu-mips where caches
are not implemented.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/Kconfig
arch/mips/lib/cache_init.S