From: Hector Palacios <hector.palacios@digi.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] i.MX28 AUTO_RESTART, watchdog, battery and poweroff
Date: Wed, 24 Jul 2013 12:53:31 +0200 [thread overview]
Message-ID: <51EFB22B.8080601@digi.com> (raw)
Greetings,
I'm not sure I understand the function mxs_power_clear_auto_restart() in spl_power_init.c
The name of the function seems to indicate that its purpose is to *clear* the
AUTO_RESTART bit, but it is actually setting it:
setbits_le32(&rtc_regs->hw_rtc_persistent0,
RTC_PERSISTENT0_AUTO_RESTART);
I believe though, that setting this bit is OK because it guarantees that the target
can be reset from a reset button or a watchdog reset even when powered from the battery.
Am I missing something? Otherwise I think this function should be renamed to
mxs_power_set_auto_restart().
Best regards,
--
Hector Palacios
next reply other threads:[~2013-07-24 10:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-24 10:53 Hector Palacios [this message]
2013-07-24 11:40 ` [U-Boot] i.MX28 AUTO_RESTART, watchdog, battery and poweroff Marek Vasut
2013-07-24 11:46 ` Fabio Estevam
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=51EFB22B.8080601@digi.com \
--to=hector.palacios@digi.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox