From patchwork Thu Dec 12 00:47:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1208056 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=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: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="HmbAW73/"; 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47YFbh5MD7z9sR7 for ; Thu, 12 Dec 2019 11:51:12 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C8F52814D8; Thu, 12 Dec 2019 01:49:01 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="HmbAW73/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D29B9816B4; Thu, 12 Dec 2019 01:48:50 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id F0E8C816AC for ; Thu, 12 Dec 2019 01:48:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd41.google.com with SMTP id v3so850252ioj.5 for ; Wed, 11 Dec 2019 16:48:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ef+KBpbOktKI2xrEsrATszN/m0SAx53+8Mczqny4jNw=; b=HmbAW73/Xoi6ipiEZMlBLv5olw45kCfgYRb731YS3u8hPEJe/IiO49eqtLvhNsW9we iaAlAIbLPDI2OuP7iCD/n25SACovLrbwOfr777gFWjS3uGHhYqBXAtkM1a4Jja+YwtQs OG/1YpDe5BL6HiKQF7ZaBz1VoZS+xaKxP7brE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ef+KBpbOktKI2xrEsrATszN/m0SAx53+8Mczqny4jNw=; b=nstSkj2Cu08SxQCj8Oc75s97kMmlX9TIscHxwUOCFZzizfV+90Wcm4jVdjQJDukWlU PhrbQGLBHo6cIP1m/+SdUByppVzFrm1D3xTvEIqIn3v5rHVAwLjWNvB/9+pGsnc2Lr9y vEcZVhTZZ9cAchU50MOdA7IgNUjT7H8RLrFT3i2/+O29/nhlsBbLmy7RwoXARoRnRohU 430WBcBzDaC1+z2RJSzD5z42sBuU4m9SaPavhggW8/NIpRMKkQhacihcb/gU30X1Wc3n 6hrSLgsyLzrMhqw4+eJ5TgwmaTLgBE1MHvRP16yJQkvB+JFK30wVf7AYOSR0VMJXUNND QLtA== X-Gm-Message-State: APjAAAVbVhpsTjcS2/RUfk4/ppDB5idwgP9g3ydy0d2yb5TbWLKbHbvz EA/rzuZHE8Ft9ODee/FxTZNatBKYU84= X-Google-Smtp-Source: APXvYqwyCcX4ho+lBH58OTVxUN0O0vjP9eiaPWNgVMmL2ZXKaFZRf6y/kpIQfvDdSI6olRPjGtflXA== X-Received: by 2002:a6b:f808:: with SMTP id o8mr294424ioh.201.1576111726760; Wed, 11 Dec 2019 16:48:46 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id a11sm880194ioc.86.2019.12.11.16.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 16:48:46 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Subject: [PATCH 23/35] common: Move reset_misc() function to arch header Date: Wed, 11 Dec 2019 17:47:42 -0700 Message-Id: <20191212004755.11091-13-sjg@chromium.org> X-Mailer: git-send-email 2.24.0.525.g8f36a354ae-goog In-Reply-To: <20191212004755.11091-2-sjg@chromium.org> References: <20191212004755.11091-2-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joe Hershberger , Tom Rini , Boris Brezillon Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean This function is only used on ARM devices. Move it out of the common file and to a arch-specific header. Signed-off-by: Simon Glass --- arch/arm/include/asm/u-boot-arm.h | 2 ++ include/common.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/u-boot-arm.h b/arch/arm/include/asm/u-boot-arm.h index 62cb5b4a98..0b93cc48c5 100644 --- a/arch/arm/include/asm/u-boot-arm.h +++ b/arch/arm/include/asm/u-boot-arm.h @@ -54,6 +54,8 @@ void do_fiq(struct pt_regs *pt_regs); void do_irq(struct pt_regs *pt_regswq); #endif +void reset_misc(void); + #endif /* __ASSEMBLY__ */ #endif /* _U_BOOT_ARM_H_ */ diff --git a/include/common.h b/include/common.h index 1d85e5a68c..cf33b31499 100644 --- a/include/common.h +++ b/include/common.h @@ -74,7 +74,6 @@ phys_size_t get_effective_memsize(void); int testdram(void); #endif /* CONFIG_SYS_DRAM_TEST */ -void reset_misc (void); void reset_cpu (ulong addr); /* lib/uuid.c */