diff options
author | Laurent Pinchart <laurentp@cse-semaphore.com> | 2008-04-10 11:02:38 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-04-17 02:01:37 -0400 |
commit | 872a15deed2f6c2dc14353a6109adde99cfee690 (patch) | |
tree | 8095620d96d1eec45d0e59d541aa18246da2625f /arch/powerpc/sysdev | |
parent | 0585fa5fb74001487e71c9f04875803e1f1174e1 (diff) |
[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>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r-- | arch/powerpc/sysdev/cpm2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/cpm2.c b/arch/powerpc/sysdev/cpm2.c index fa70ee31349e..4ab3f1f5a7c3 100644 --- a/arch/powerpc/sysdev/cpm2.c +++ b/arch/powerpc/sysdev/cpm2.c | |||
@@ -80,6 +80,12 @@ void __init cpm2_reset(void) | |||
80 | /* Tell everyone where the comm processor resides. | 80 | /* Tell everyone where the comm processor resides. |
81 | */ | 81 | */ |
82 | cpmp = &cpm2_immr->im_cpm; | 82 | cpmp = &cpm2_immr->im_cpm; |
83 | |||
84 | #ifndef CONFIG_PPC_EARLY_DEBUG_CPM | ||
85 | /* Reset the CPM. | ||
86 | */ | ||
87 | cpm_command(CPM_CR_RST, 0); | ||
88 | #endif | ||
83 | } | 89 | } |
84 | 90 | ||
85 | static DEFINE_SPINLOCK(cmd_lock); | 91 | static DEFINE_SPINLOCK(cmd_lock); |