From patchwork Mon Sep 19 00:46:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chong, Teik Heng" X-Patchwork-Id: 1679129 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=cyT80mgE; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MW5bR5KQjz1ynm for ; Mon, 19 Sep 2022 10:46:43 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5942C84A92; Mon, 19 Sep 2022 02:46:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="cyT80mgE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9D65F84BE3; Mon, 19 Sep 2022 02:46:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 BA6EC849AA for ; Mon, 19 Sep 2022 02:46:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=teik.heng.chong@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663548392; x=1695084392; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=hNmO10stFtOuvbI8MHXATi2gk5sGmiH5JneSyeNsgjQ=; b=cyT80mgEAMh0GbJonx5hNgAh3vaCclj0SGVWadDmnaEDaV7EigwDHdz2 8u/X9qt75thCyWs+3+wB9W8g+YZQbv8/YN9eENSR34HUTIRiK4xb73Aly KiAXDBapr5vlVJW4lfV6OLnztiXk+8IYcRK0eQba0NSGwdMIy0iKbDois /o7EEmzq1GGKqX+KJ9xO/elY2AF+aPNuYYq1mZywUzPZZCnkVomBm8Xt7 gGB0gqwA0RHqZi0dA9bW73xzS7ccLfaYQ4KecCVOrSRFRA9ZloH+dY6M4 Nc5sqOOKB6T9oBdc9Zb+ihG7w4NP3/CPNOb1aKOSDcakJ7ji0UJqCHk0O A==; X-IronPort-AV: E=McAfee;i="6500,9779,10474"; a="296869474" X-IronPort-AV: E=Sophos;i="5.93,325,1654585200"; d="scan'208";a="296869474" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2022 17:46:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,325,1654585200"; d="scan'208";a="686777221" Received: from pgli4336.png.intel.com ([10.221.172.41]) by fmsmga004.fm.intel.com with ESMTP; 18 Sep 2022 17:46:27 -0700 From: teik.heng.chong@intel.com To: u-boot@lists.denx.de Cc: Marek , Simon , Tien Fong , Kok Kiang , Siew Chin , Sin Hui , Raaj , Dinesh , Boon Khai , Alif , Teik Heng , Hazim , Jit Loon Lim , Sieu Mun Tang , Ley Foon Tan Subject: [PATCH] arm: socfpga: A10: Enable Designware watchdog Date: Mon, 19 Sep 2022 08:46:21 +0800 Message-Id: <20220919004621.31032-1-teik.heng.chong@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean From: Tien Fong Chee Some bootROMs enable the watchdog before jumping to SPL, so calling WATCHDOG_RESET() is required to reset watchdog timely especially in long looping. Enable Designware watchdog driver is required to support WATCHDOG_RESET(). Signed-off-by: Tien Fong Chee Signed-off-by: Ley Foon Tan Signed-off-by: Teik Heng Chong --- arch/arm/mach-socfpga/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig index df44530e83..505d30f9e4 100644 --- a/arch/arm/mach-socfpga/Kconfig +++ b/arch/arm/mach-socfpga/Kconfig @@ -64,8 +64,10 @@ config TARGET_SOCFPGA_ARRIA10 select SPL_ALTERA_SDRAM select SPL_BOARD_INIT if SPL select SPL_CACHE if SPL + select SPL_WDT if SPL select CLK select SPL_CLK if SPL + select DESIGNWARE_WATCHDOG select DM_I2C select DM_RESET select SPL_DM_RESET if SPL @@ -74,6 +76,7 @@ config TARGET_SOCFPGA_ARRIA10 select SYSCON select SPL_SYSCON if SPL select ETH_DESIGNWARE_SOCFPGA + select WDT imply FPGA_SOCFPGA imply SPL_USE_TINY_PRINTF