From patchwork Thu Nov 28 08:56:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudius Heine X-Patchwork-Id: 1201959 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47Ns3J1d31z9sPK for ; Thu, 28 Nov 2019 19:57:30 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 56FABC2208D; Thu, 28 Nov 2019 08:57:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 5A601C21C93; Thu, 28 Nov 2019 08:57:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 61630C21C93; Thu, 28 Nov 2019 08:57:15 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lists.denx.de (Postfix) with ESMTPS id 7E34BC21C2C for ; Thu, 28 Nov 2019 08:57:13 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 47Ns2x27g5z1rfPb; Thu, 28 Nov 2019 09:57:13 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 47Ns2x1jyPz1r7Gl; Thu, 28 Nov 2019 09:57:13 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Y71v_cgkYdut; Thu, 28 Nov 2019 09:57:12 +0100 (CET) X-Auth-Info: IemwoaTuKLiZBXyh9WpFau9C1Rw0l+BTjaYoBWEJp7M= Received: from mail-internal.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 28 Nov 2019 09:57:12 +0100 (CET) Received: from deneb.denx.de (deneb [10.0.20.1]) by mail-internal.denx.de (Postfix) with ESMTP id 46261183628; Thu, 28 Nov 2019 09:57:11 +0100 (CET) Received: by deneb.denx.de (Postfix, from userid 569) id 203A524E902; Thu, 28 Nov 2019 09:57:10 +0100 (CET) From: Claudius Heine To: Date: Thu, 28 Nov 2019 09:56:47 +0100 Message-Id: <20191128085648.30716-1-ch@denx.de> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Cc: Marek Vasut , Heiko Stuebner , open list , Alexander Graf , Heinrich Schuchardt Subject: [U-Boot] [PATCH] ARM: reset: use do_reset in SPL/TPL if SYSRESET was not enabled for them X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" In case CONFIG_SYSRESET is set, do_reset from reset.c will not be available anywere, even if SYSRESET is disabled for SPL/TPL. 'do_reset' is called from SPL for instance from the panic handler and PANIC_HANG is not set Signed-off-by: Claudius Heine Reviewed-by: Marek Vasut Reviewed-by: Simon Goldschmidt --- arch/arm/lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index 9de9a9acee..7bf2c077ba 100644 --- a/arch/arm/lib/Makefile +++ b/arch/arm/lib/Makefile @@ -56,7 +56,7 @@ obj-y += interrupts_64.o else obj-y += interrupts.o endif -ifndef CONFIG_SYSRESET +ifndef CONFIG_$(SPL_TPL_)SYSRESET obj-y += reset.o endif