All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PATCH: Introducing CONFIG_BOARD_PRE_RESET
Date: Tue, 26 Oct 2004 09:06:25 +0200	[thread overview]
Message-ID: <417DF771.5010904@imc-berlin.de> (raw)
In-Reply-To: <20041025180542.4952CC1431@atlas.denx.de>

Wolfgang Denk wrote:
> In message <417D0D67.2000000@imc-berlin.de> you wrote:
> 
>>as mentioned on list before some boards/cpus might need some extra code to be 
>>executed _before_ rebooting. E.g. the i.MX hangs when doing "reset" while the 
>>LCD controller is still enabled.
> 
> 
> I remember that we discussed this before, but now that I think  about
> this  again  I changed my mind: I don't think there is a valid reason
> to add this code.
> 
> 
>>That is why I'd like to introduce CONFIG_BOARD_PRE_RESET and board_pre_reset().
> 
> 
> No. You write: i.MX hangs when doing "reset". I guess the board  does
> not  hand  if  you  power cycle it, or if you press the reset button,
> right? So the conclusion is that the reset code does not do what  you
> think it does - i. e. it does not cause a reset of the processor.
> 
> This is a problem that should be fixed. Once fixed, this patch is not
> needed any more.

Well, it's a bug in the CPU. If the LCDC DMA is running, the cpu won't reboot 
with a simple "mov pc, r0".
But then switching off the i.MX LCD controller has to be done in 
cpu/arm920t/start.S where reset_cpu() is. And you don't wanna do this. There 
already are enough #ifdefs in cpu/arm920t/start.S.

And how about the AT91RM9200(DK) where the author wants to "shutdown the console 
to avoid strange chars during reset"???

-- 
Steven Scholz

  reply	other threads:[~2004-10-26  7:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-25 14:27 [U-Boot-Users] PATCH: Introducing CONFIG_BOARD_PRE_RESET Steven Scholz
2004-10-25 18:05 ` Wolfgang Denk
2004-10-26  7:06   ` Steven Scholz [this message]
2004-10-26  8:25     ` Wolfgang Denk
2004-10-26  8:32       ` Steven Scholz
2004-10-26  9:14         ` R: " Paolo Broggini
2004-10-28  7:36         ` Steven Scholz
2004-11-23 14:18 ` Steven Scholz
2004-11-23 15:41   ` Wolfgang Denk
2004-11-23 15:48     ` Steven Scholz
2004-11-23 16:47       ` Wolfgang Denk
2004-11-23 16:54         ` Steven Scholz
2004-11-23 17:20           ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-10-25 14:36 VanBaren, Gerald
2004-10-25 14:39 ` Steven Scholz
2004-10-25 14:46 VanBaren, Gerald
2004-10-25 15:12 ` Steven Scholz
2004-10-25 18:01 ` Wolfgang Denk

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=417DF771.5010904@imc-berlin.de \
    --to=steven.scholz@imc-berlin.de \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.