From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Sun, 29 Sep 2013 18:57:37 +0200 Subject: [U-Boot] i.MX6 based board does not work if watchdog support is enabled In-Reply-To: References: Message-ID: <20130929185737.076b7cdf@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On Sat, 28 Sep 2013 21:19:19 -0300 Otavio Salvador wrote: > I am trying to add support for watchdog in one board and it is not > working as expected. > > I did add the: > > #define CONFIG_HW_WATCHDOG > #define CONFIG_IMX_WATCHDOG > > into the board config file. > > Into the board .c file, I added: > > int board_late_init(void) > { > ... > #ifdef CONFIG_HW_WATCHDOG > hw_watchdog_init(); > #endif > > return 0; > } > > and the hw_watchdog_init is indeed called. > > It starts booting and shows: > > U-Boot 2013.10-rc3-00046-gc1c2434-dirty (Sep 28 2013 - 21:12:53) > > CPU: Freescale i.MX6Q rev1.2 at 792 MHz > Reset cause: WDOG > Board: yyyy > DRAM: 1 GiB > MMC: FSL_SDHC: 0, FSL_SDHC: 1 > In: serial > Out: serial > Err: serial > Net:? > > and it in fact resets. > > I am booting the board from USB loader. May it be an issue? No, it shouldn't be an issue. Does the attached patch help? Thanks, Anatolij