linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* reset of the CPM
@ 2000-03-02  8:14 duyrat1
  2000-03-02 15:14 ` Dan Malek
  0 siblings, 1 reply; 2+ messages in thread
From: duyrat1 @ 2000-03-02  8:14 UTC (permalink / raw)
  To: linuxppc-embedded@lists.linuxppc.org, Laurent Barbero


hy,

In linux v2.2.12 release (and till in 2.3.47):
commproc.c is a file of  8xx_io directory
dealing with general purpose functions for the
global management of the MPC860 Communication Processor Module.

In  function void m8xx_cpm_reset(uint host_page_addr) following code is
disabled :
#ifdef notdef
 /* We can't do this.  It seems to blow away the microcode
  * patch that EPPC-Bug loaded for us.  EPPC-Bug uses SCC1 for
  * Ethernet, SMC1 for the console, and I2C for serial EEPROM.
  * Our own drivers quickly reset all of these.
  */

 /* Perform a reset.
 */
 commproc->cp_cpcr = (CPM_CR_RST | CPM_CR_FLG);

 /* Wait for it.
 */
 while (commproc->cp_cpcr & CPM_CR_FLG);
#endif

What is the role of this patch?
and then on a reset or when a NMI exception is generated, does that
mean  that no reset of the CPM must ever be done.

Thanks for your help!
JC


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-03-02 15:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-02  8:14 reset of the CPM duyrat1
2000-03-02 15:14 ` Dan Malek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).