mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Juergen Beisert <jbe@pengutronix.de>
To: barebox@lists.infradead.org
Subject: i.MX23/i.MX28, software reset feature
Date: Tue, 19 Jun 2012 12:29:28 +0200	[thread overview]
Message-ID: <201206191229.29035.jbe@pengutronix.de> (raw)

Hi list,

currently we use the watchdog to make the "reset" command work on the 
i.XM23/i.MX28 CPUs. This collides if someone wants to use the watchdog in a 
regular manner, as Barebox cannot distinguish if the reset was a result of 
the "reset" command (or "reboot" from Linux) or if something strange happens 
and the watchdog has barked to reboot and try again (maybe in a different 
manner).

The i.XM23/i.MX28 CPUs are coming with a bit in a special register in 
the "clock generation and control" unit to hard reset the whole SoC. This 
could be used instead to make the "reset" command work. But the register 
offsets are different in both SoCs. So:

 - using ifdefs to distinguish both SoCs in "arch/arm/mach-mxs/reset-imx.c"
 - or moving the reset_cpu() function into "arch/arm/mach-mxs/speed-imx*.c"
   where all the required symbols and correct offset are already defined on a
   per SoC base?

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2012-06-19 10:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-19 10:29 Juergen Beisert [this message]
2012-06-20  7:32 ` Sascha Hauer

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=201206191229.29035.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=barebox@lists.infradead.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