]> 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)
commit6c7f6d088f8e705455fa439d8663ec3bad2de561
tree6d923695b9b1622fc1b52fc1bac6dc4127289c3e
parentf8dd6c025957f367ad2bcbcff1f3535a9e5e109a
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