[U-Boot-Users] [PATCH] mpc83xx: Add support for the display ofreset status

Joakim Tjernlund joakim.tjernlund at transmode.se
Mon Jun 25 13:23:36 CEST 2007


On Mon, 2007-06-25 at 18:03 +0800, Liu Dave-r63238 wrote:
> > > 83xx processor family has many reset sources, such as
> > > power on reset, software hard reset, software soft reset,
> > > JTAG, bus monitor, software watchdog, check stop reset,
> > > external hard reset, external software reset.
> > > sometimes, to figure out the fault of system, we need to
> > > know the cause of reset early before the prompt of
> > > u-boot present.
> > 
> > How do you detect power on reset? I have looked for that but
> > the rsr reg does not seem to support that and I really
> > want to detect this.
> 
> Usually, if all of these status bits of rsr is zero, consider this as
> power on reset.

The status bits you check in your patch? This sounds a bit
fragile as you don't check all of them. Also if there
is a double reset, you will miss the power on reset event as
the second reset may set some bits in rsr.

 Jocke




More information about the U-Boot mailing list