LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Susheel Raj <susheel_nuguru@yahoo.co.in>
To: linuxppc-embedded@ozlabs.org
Subject: Rev B MPC5200 , Hardware related Querry
Date: Wed, 3 Aug 2005 03:54:44 -0700 (PDT)	[thread overview]
Message-ID: <20050803105444.76265.qmail@web8502.mail.in.yahoo.com> (raw)

Hi all,

  I have been spending some time with the MPC5200 Rev
B processors, mostly concentrating to make it go to
DEEP SLEEP MODE, also posted many times regarding
this.

 Sylvain has given me his previous work on his attempt
to make the core to Sleep and i found that when
asserting bit mode_en in SDRAM control register (MBAR
+ 0x0104), the core restarts.

 Initaially I was thinking that the core restarts bcos
of some very bad exception or something but when i
tried to debug Instruction by instruction i found that
the core just restarts when we try to set mode_en bit
like below


	/* Put SDRAM to self refresh */
	lwz     r11, 0x0104(r3)
	oris	r10, r11, 0x8000
	stw	r10, 0x0104(r3)		/* Enable SDRAM mode register */
	eieio
 /*  r3 has the address of MBAR */

The above code make the core to restart when i comment
the stw instruction

	/* Put SDRAM to self refresh */
	lwz     r11, 0x0104(r3)
	oris	r10, r11, 0x8000
	stw	r10, 0x0104(r3)			
eieio


Susheel

                    More Smiles Per Hour




		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

             reply	other threads:[~2005-08-03 10:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-03 10:54 Susheel Raj [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-03 10:55 Rev B MPC5200 , Hardware related Querry Susheel Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050803105444.76265.qmail@web8502.mail.in.yahoo.com \
    --to=susheel_nuguru@yahoo.co.in \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox