浏览代码

[POWERPC] CPM2: Reset the CPM when early debugging is not enabled.

Similarly to what is done for PQ1-based platforms, this patch resets the
PQ2 Communication Processor Module in cpm2_reset() when early debugging is
not enabled. This helps avoiding conflicts when the boot loader configured
the CPM in an unexpected way.

Signed-off-by: Laurent Pinchart <laurentp@cse-semaphore.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Laurent Pinchart 17 年之前
父节点
当前提交
872a15deed
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      arch/powerpc/sysdev/cpm2.c

+ 6 - 0
arch/powerpc/sysdev/cpm2.c

@@ -80,6 +80,12 @@ void __init cpm2_reset(void)
 	/* Tell everyone where the comm processor resides.
 	/* Tell everyone where the comm processor resides.
 	 */
 	 */
 	cpmp = &cpm2_immr->im_cpm;
 	cpmp = &cpm2_immr->im_cpm;
+
+#ifndef CONFIG_PPC_EARLY_DEBUG_CPM
+	/* Reset the CPM.
+	 */
+	cpm_command(CPM_CR_RST, 0);
+#endif
 }
 }
 
 
 static DEFINE_SPINLOCK(cmd_lock);
 static DEFINE_SPINLOCK(cmd_lock);