MIPS: cpu-probe: Set Ingenic's writecombine to _CACHE_CACHABLE_WA
authorPaul Cercueil <paul@crapouillou.net>
Sun, 6 Sep 2020 19:29:22 +0000 (21:29 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 18 Sep 2020 14:26:36 +0000 (16:26 +0200)
commit95b1f6db67aea9135b018497f7ed4446a060cba2
treeff4f377e6be5465abbc321244069f8da30d016f2
parent7487abbe85afd02c35c283315cefc5e19c28d40f
MIPS: cpu-probe: Set Ingenic's writecombine to _CACHE_CACHABLE_WA

Previously, in cpu_probe_ingenic(), c->writecombine was set to
_CACHE_UNCACHED_ACCELERATED, but this macro was defined differently when
CONFIG_MACH_INGENIC was set. This made it impossible to support multiple
CPUs.

Address this issue by setting c->writecombine to _CACHE_CACHABLE_WA
directly and removing the dependency on CONFIG_MACH_INGENIC.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/pgtable-bits.h
arch/mips/kernel/cpu-probe.c