浏览代码

MIPS: Malta: Update GCMP detection.

Add GCMP detection for IASim Marvell chip emulation support.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Patchwork: https://patchwork.linux-mips.org/patch/5529/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Leonid Yegoshin 12 年之前
父节点
当前提交
78276207a7
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      arch/mips/mti-malta/malta-int.c

+ 3 - 1
arch/mips/mti-malta/malta-int.c

@@ -422,8 +422,10 @@ static struct gic_intr_map gic_intr_map[GIC_NUM_INTRS] = {
  */
  */
 int __init gcmp_probe(unsigned long addr, unsigned long size)
 int __init gcmp_probe(unsigned long addr, unsigned long size)
 {
 {
-	if (mips_revision_sconid != MIPS_REVISION_SCON_ROCIT) {
+	if ((mips_revision_sconid != MIPS_REVISION_SCON_ROCIT)  &&
+	    (mips_revision_sconid != MIPS_REVISION_SCON_GT64120)) {
 		gcmp_present = 0;
 		gcmp_present = 0;
+		pr_debug("GCMP NOT present\n");
 		return gcmp_present;
 		return gcmp_present;
 	}
 	}