From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hector Palacios Date: Wed, 24 Jul 2013 12:53:31 +0200 Subject: [U-Boot] i.MX28 AUTO_RESTART, watchdog, battery and poweroff Message-ID: <51EFB22B.8080601@digi.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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