From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DAFEDC433F5 for ; Fri, 10 Dec 2021 08:32:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D739982DB4; Fri, 10 Dec 2021 09:32:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 16E6F82FAF; Fri, 10 Dec 2021 09:32:29 +0100 (CET) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0098C82D5B for ; Fri, 10 Dec 2021 09:32:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael.opdenacker@bootlin.com Received: (Authenticated sender: michael.opdenacker@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 6E3661BF209; Fri, 10 Dec 2021 08:32:25 +0000 (UTC) Cc: "u-boot@lists.denx.de" Subject: Re: ARM: mach-at91: how to stop U-Boot/SPL from disabling the watchdog timer on SAMAD3 Xplained To: Quentin Schulz References: <20211209164303.vp4sxxxpyc7emao7@fedora> From: Michael Opdenacker Organization: Bootlin Message-ID: Date: Fri, 10 Dec 2021 09:32:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20211209164303.vp4sxxxpyc7emao7@fedora> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Quentin, On 12/9/21 5:43 PM, Quentin Schulz wrote: > From a quick look at the code, you need to enable CONFIG_WDT_AT91 and > the watchdog won't be disabled anymore by the SPL. > > See: > https://elixir.bootlin.com/u-boot/latest/source/arch/arm/mach-at91/spl_atmel.c#L121 > and > https://elixir.bootlin.com/u-boot/latest/source/arch/arm/mach-at91/spl.c#L16 Good catch, thanks! Indeed setting CONFIG_WDT_AT91=y did the trick. I didn't consider enabling the watchdog driver to avoid disabling the watchdog timer! Thanks again, Michael. -- Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com