MIPS: OCTEON: More OCTEONIII support
Read clock rate from the correct CSR. Don't clear COP0_DCACHE for OCTEONIII. Signed-off-by: Chandrakala Chavva <cchavva@caviumnetworks.com> Signed-off-by: Aleksey Makarov <aleksey.makarov@auriga.com> Signed-off-by: David Daney <david.daney@cavium.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/8945/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committed by
Ralf Baechle

parent
920cda3870
commit
ac6d9b3a03
@@ -80,6 +80,9 @@
|
||||
mfc0 v0, CP0_PRID_REG
|
||||
bbit0 v0, 15, 1f
|
||||
# OCTEON II or better have bit 15 set. Clear the error bits.
|
||||
and t1, v0, 0xff00
|
||||
dli v0, 0x9500
|
||||
bge t1, v0, 1f # OCTEON III has no DCACHE_ERR_REG COP0
|
||||
dli v0, 0x27
|
||||
dmtc0 v0, CP0_DCACHE_ERR_REG
|
||||
1:
|
||||
|
Reference in New Issue
Block a user