MIPS: mips-cm: Implement mips_cm_revision
authorPaul Burton <paul.burton@imgtec.com>
Fri, 10 Jul 2015 09:12:52 +0000 (10:12 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Aug 2015 13:23:08 +0000 (15:23 +0200)
commit197e89e0984a2aaf1a5a998887b22e53051e3b6d
tree6d923695b9b1622fc1b52fc1bac6dc4127289c3e
parent5676319c91c8d668635ac0b9b6d9145c4fa418ac
MIPS: mips-cm: Implement mips_cm_revision

Provide a function to trivially return the version of the CM present in
the system, or 0 if no CM is present. The mips_cm_revision() will be
used later on to determine the CM register width, so it must not use
the regular CM accessors to read the revision register since that will
lead to build failures due to recursive inlines.

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