From patchwork Tue Jun 3 07:05:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Boschung, Rainer" X-Patchwork-Id: 355203 X-Patchwork-Delegate: yorksun@freescale.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 7E6F21400A4 for ; Tue, 3 Jun 2014 17:24:58 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 168EA4B8DE; Tue, 3 Jun 2014 09:24:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GltoYP6bdtIv; Tue, 3 Jun 2014 09:24:46 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5ECE3AB567; Tue, 3 Jun 2014 09:24:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4F78E4B8DF for ; Tue, 3 Jun 2014 09:13:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LwExP3hThVi5 for ; Tue, 3 Jun 2014 09:13:12 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-de.keymile.com (mail-de.keymile.com [195.8.104.250]) by theia.denx.de (Postfix) with ESMTPS id 91BFA4B8DD for ; Tue, 3 Jun 2014 09:13:11 +0200 (CEST) Received: from frodo.de.keymile.net ([10.9.1.54]:57606 helo=mailrelay.de.keymile.net) by mail-de.keymile.com with esmtp (Exim 4.76) (envelope-from ) id 1Wrimr-0001hm-2A for u-boot@lists.denx.de; Tue, 03 Jun 2014 09:05:33 +0200 Received: from chber1-20200x.ch.keymile.net (chber1-20200x.ch.keymile.net [172.31.40.78]) by mailrelay.de.keymile.net (8.12.2/8.12.2) with ESMTP id s5375VLk003248; Tue, 3 Jun 2014 09:05:33 +0200 (MEST) From: Rainer Boschung To: u-boot@lists.denx.de Date: Tue, 3 Jun 2014 09:05:16 +0200 Message-Id: <1401779120-20306-6-git-send-email-rainer.boschung@keymile.com> X-Mailer: git-send-email 1.8.0.1 In-Reply-To: <1401779120-20306-1-git-send-email-rainer.boschung@keymile.com> References: <1401779120-20306-1-git-send-email-rainer.boschung@keymile.com> X-Mailman-Approved-At: Tue, 03 Jun 2014 09:24:13 +0200 Subject: [U-Boot] [PATCH 5/9] kmp204x: CPU watchdog enabled X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The booting of the board is now protected by the CPU watchdog. A failure during the boot phase will end up in board reset. Signed-off-by: Rainer Boschung --- include/configs/km/kmp204x-common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/configs/km/kmp204x-common.h b/include/configs/km/kmp204x-common.h index efd9635..a0f9d29 100644 --- a/include/configs/km/kmp204x-common.h +++ b/include/configs/km/kmp204x-common.h @@ -377,6 +377,14 @@ int get_scl(void); #define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */ /* + * Hardware Watchdog + */ +#define CONFIG_WATCHDOG /* enable CPU watchdog */ +#define CONFIG_WATCHDOG_PRESC 34 /* wdog prescaler 2^(64-34) (~10min) */ +#define CONFIG_WATCHDOG_RC WRC_CHIP /* reset chip on watchdog event */ + + +/* * additionnal command line configuration. */ #define CONFIG_CMD_PCI