]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita72f92b5d2704c57e3d9dad9e55f98111f9addfc
tree6d923695b9b1622fc1b52fc1bac6dc4127289c3e
parent5796fb9fb28c140e775d0245b9398d9d0d405a27
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