All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] i.MX28 AUTO_RESTART, watchdog, battery and poweroff
@ 2013-07-24 10:53 Hector Palacios
  2013-07-24 11:40 ` Marek Vasut
  0 siblings, 1 reply; 3+ messages in thread
From: Hector Palacios @ 2013-07-24 10:53 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-24 11:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-24 10:53 [U-Boot] i.MX28 AUTO_RESTART, watchdog, battery and poweroff Hector Palacios
2013-07-24 11:40 ` Marek Vasut
2013-07-24 11:46   ` Fabio Estevam

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.