MIPS: add compile time definition of L2 cache size
authorRamon Fried <rfried.dev@gmail.com>
Mon, 10 Jun 2019 18:05:26 +0000 (21:05 +0300)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 25 Oct 2019 15:20:43 +0000 (17:20 +0200)
commit22247c63ac4ebed8bbaafe1e717c1de7600a0883
tree644116791d21122362e355458e054bc20ebe838d
parent17fd9915a4c639381804ed28274fa136ae3b0bee
MIPS: add compile time definition of L2 cache size

If configuration is set to skip low level init, automatic
probe of L2 cache size is not performed and the size is set to 0.
Flushing or invalidating the L2 cache will fail in this case.

Add a static configuration (SYS_DCACHE_LINE_SIZE) with default set to 0.

Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
arch/mips/Kconfig
arch/mips/lib/cache.c