From patchwork Tue Feb 27 14:36:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 129796 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1464029lja; Tue, 27 Feb 2018 06:36:27 -0800 (PST) X-Google-Smtp-Source: AH8x225Vm174I6WLmWW02xEPGPNl92POPbOAuuuiBOIcC6PBzm9SPDQAiWdrWsn2ffDpBsHhHOiF X-Received: by 2002:a17:902:4601:: with SMTP id o1-v6mr14453195pld.210.1519742187108; Tue, 27 Feb 2018 06:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519742187; cv=none; d=google.com; s=arc-20160816; b=P4FlJ4wApUX/2UAWM3C8yj4KIQFtA7YQJZRX1lV70BHxZOegbT0JVxxXFDuk2XgjRs HiDGRX93qgREXy4t73HhTQtf47vWsAISw5sIeMJ4mDF/xaqhM1srs8lR8TrJZLh3dIls IQozKCdfTDQ8hnXMY+pgY7j9vIKRkT6o6vl5U3FAIgz/GmEwrw1mi6UW8R4MPZzcjRe3 eV9roQbqQnAu5I19nNZadSDVo0xBIqK6avtpDxmo5AuVpYYZcqky7Tv8OaOx6NSfnou2 JPouMwOVacomOdmY78M7IWQkT1Ck4LIYUs378gKztEqhBWwXuE72J2Z9/ZVRVMtkvuHW K1ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=spBSemEIoSIZOsPVq82UOBqECDaYEcM+mP4Qt+sOfas=; b=me6PSobtWi9gIbXOsRtXCaeG0n0r9auwKS8O5OTCjb9dGUgTiMtiEbvtm7XZqXxTO8 BbQnx+YwIcTr2l9pPn1D2kT2aj5J7hHOwAVypqHHvbGZI9dbmKW8oZKqqoK5jHV5bvse qUrGnI3WdfYyQUZN1/cIGWytSJh8BWcNSP1vQo7vK7CZbkh/uCRedeVAqVoy0d+YTkIt QmKZ48WMYs6932EwFBlxnTH2GdEMg3agCyKmYOYTHWcn4pQZZEWXETRiD9ppnbkbN9kU u55Rh8jQKaUUL++5jercTVsMx71x4Mo+c5ADvNKzLyPzgCDsarmYErrOy4N6cjSpUgRb dl6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gUoTnGaY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j66si8134232pfj.181.2018.02.27.06.36.26; Tue, 27 Feb 2018 06:36:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gUoTnGaY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753562AbeB0OgX (ORCPT + 28 others); Tue, 27 Feb 2018 09:36:23 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38023 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753154AbeB0OgW (ORCPT ); Tue, 27 Feb 2018 09:36:22 -0500 Received: by mail-wm0-f67.google.com with SMTP id z9so24084809wmb.3 for ; Tue, 27 Feb 2018 06:36:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=spBSemEIoSIZOsPVq82UOBqECDaYEcM+mP4Qt+sOfas=; b=gUoTnGaYDW3LC8lTLpsxvY4+3XQCXY09l3B6ERFJNOBRfMHWPNhDq7Nr7tF+G+Aivx h26FEA1upVnyB7tdAbBnlMb+fHMxTpRlg6U0sVFtkUoEMEqQcoBh13IF5i9xWkHga+q+ Ta7qz3TCF1WR6rej9WLveNpQ+GBga6JDLoUVc= 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; bh=spBSemEIoSIZOsPVq82UOBqECDaYEcM+mP4Qt+sOfas=; b=UkS4l5UB1AyvyoTUHiUTU9iWiaLbcum1Q65bsudzdMjMlI9JCcWpJSRhIJSg4Qxe1E IBDJWfpnfdxQ5z1DgixfZmWbVGjPaApO/xR9HfaTTQrIHyxfq29C2QtM+pwL18H5JJ4P 448ejtGgVLNhOjXfLYL/yRRn0IwptNBsa+54+wnBzJtb0N0zfYYoo8ac9oQNKN3z4J+i oOZdhZf+jN9DKuyOq2RlbrHdsp44o/Agnjh4NbyAQoVermORbJqnUm+ySDHKbqRY/QDd 2RNLM7DII+8Tch2aRFoGRSLqXpPFTwgUkE+aKblg5aHh0QJI1ahBT05l6KHh3dNZujtn LLcw== X-Gm-Message-State: APf1xPBst+Gp99g2RJWQhDxi8YNn5KDaEhUfGiF8G24pqiQX77oEAjci NhHbDZed4Xzz3GX/rHzQORbstQ== X-Received: by 10.28.159.68 with SMTP id i65mr2434947wme.27.1519742181280; Tue, 27 Feb 2018 06:36:21 -0800 (PST) Received: from lmecxl0911.lme.st.com ([80.215.129.155]) by smtp.gmail.com with ESMTPSA id q14sm9216117wre.83.2018.02.27.06.36.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 27 Feb 2018 06:36:20 -0800 (PST) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: linux@armlinux.org.uk, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH] ARM: mach-stm32: restore reboot capabilities Date: Tue, 27 Feb 2018 15:36:07 +0100 Message-Id: <20180227143607.5583-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To be able to reboot the platform we need to use armv7m_restart for STM32 SoCs using ARMv7 cores. Fixes: e0644101bd2f ("ARM: mach-stm32: prepare stm32 family to welcome armv7 architecture) Signed-off-by: Benjamin Gaignard --- NOTE: This patch should be applied only on git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git stm32-next until this patch: https://lkml.org/lkml/2018/2/26/386 find it way to mainline KBuild will complain about it. arch/arm/mach-stm32/board-dt.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.15.0 diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/mach-stm32/board-dt.c index 06911ad60cea..011d57b488c2 100644 --- a/arch/arm/mach-stm32/board-dt.c +++ b/arch/arm/mach-stm32/board-dt.c @@ -7,6 +7,9 @@ #include #include +#ifdef CONFIG_ARM_SINGLE_ARMV7M +#include +#endif static const char *const stm32_compat[] __initconst = { "st,stm32f429", @@ -20,4 +23,7 @@ static const char *const stm32_compat[] __initconst = { DT_MACHINE_START(STM32DT, "STM32 (Device Tree Support)") .dt_compat = stm32_compat, +#ifdef CONFIG_ARM_SINGLE_ARMV7M + .restart = armv7m_restart, +#endif MACHINE_END