From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jocelyn Harvey Date: Wed, 19 May 2021 12:14:08 -0400 Subject: i.MX28 watchdog activation in U-Boot and Linux reboot problem Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, We wanted a watchdog during the U-Boot process so I added hw_watchdog_init() and hw_watchdog_reset() functions to U-Boot for my board. The watchdog timer works fine in U-Boot but now when Linux reboots it gets stuck on: [ 180.339543] reboot: Restarting system When the watchdog is not activated, it reboots fine. Even when the watchdog timer expires it does not reboot, it just hangs. I tried to activate the watchdog using only the memory write function in U-Boot which sets the WATCHDOGEN bit in the RTC ctrl register: mw 0x80056004 0x00000010 (yes, watchdog timer is already set to 60000 ms) Only that change prevents Linux from rebooting. I don't have any clue on what can be the cause of the problem. Any help would be appreciated. Thanks! Jocelyn