MIPS: Allow read64 GCR accessors to work on MIPS32 kernels
authorPaul Burton <paul.burton@imgtec.com>
Tue, 22 Sep 2015 17:26:40 +0000 (10:26 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 26 Oct 2015 08:49:46 +0000 (09:49 +0100)
commitb657a628661570adb301284084a5335302685269
tree7d1df3c0ca19335e71328e7416d723565c79ea42
parentf88e632480baf223cad67ac553a6729535db6d74
MIPS: Allow read64 GCR accessors to work on MIPS32 kernels

If we run a MIPS32 kernel on a system using CM3 we may still need to
access 64 bit GCRs, as will be done in later patches. Allow this by
having the read64_gcr_* accessor functions perform 2 x 32 bit reads on
those systems.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Markos Chandras <markos.chandras@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/11188/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mips-cm.h