Message ID | 1555601571-3257-12-git-send-email-patrick.delaunay@st.com |
---|---|
State | Accepted |
Commit | c596877ee6e8f235b6d6a8e0d4a9366ce086a3ed |
Delegated to: | Patrice Chotard |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=st.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=st.com header.i=@st.com header.b="VxtnCtqO"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44lNbq3YlGz9s3Z for <incoming@patchwork.ozlabs.org>; Fri, 19 Apr 2019 01:40:39 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 1767EC21E3E; Thu, 18 Apr 2019 15:36:06 +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=T_DKIM_INVALID 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 BD26AC21E38; Thu, 18 Apr 2019 15:33:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B3469C21E12; Thu, 18 Apr 2019 15:33:21 +0000 (UTC) Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lists.denx.de (Postfix) with ESMTPS id BC446C21E30 for <u-boot@lists.denx.de>; Thu, 18 Apr 2019 15:33:15 +0000 (UTC) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3IFRpEO015054; Thu, 18 Apr 2019 17:33:15 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=EOg7oV27GYzHgkvFfpFb4Gh/PYWnCfg4cydWqRL/9ug=; b=VxtnCtqOwahSRCxNrgSw3MnsLItMOIxBOVhIHu0jhzl2S1hboomPxE6yAjDJ7JySz5lh su09mHVa0DTqUIG8wGBWdMz9xsJehYG73Z3VSspviLz/BwQWdJq2sGt2IiSmDiNhpcOb POt1UMI+8X/PfpFiWLKDbwtpLCxunfYxZNwDzQtMVMwSoChMqQ8p0Xq9JTGYvfgQWX7j eRHVMdoXm/txYxAREO0wfg07n2s8quPhfd3EDY7hheMWQdvdsEgBWoy7tXvgZffR92iX I3tboFPqJkcLr6EuUuewsxaAG9dDutSGE+d9ORpKq7suU6kHTQT4Gts9/L/3OCPkEwfl Lg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2rw1a6ad3d-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 18 Apr 2019 17:33:15 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9DFB934; Thu, 18 Apr 2019 15:33:14 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8B6562A1C; Thu, 18 Apr 2019 15:33:14 +0000 (GMT) Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 18 Apr 2019 17:33:14 +0200 Received: from localhost (10.201.23.85) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Apr 2019 17:33:14 +0200 From: Patrick Delaunay <patrick.delaunay@st.com> To: <u-boot@lists.denx.de> Date: Thu, 18 Apr 2019 17:32:46 +0200 Message-ID: <1555601571-3257-12-git-send-email-patrick.delaunay@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555601571-3257-1-git-send-email-patrick.delaunay@st.com> References: <1555601571-3257-1-git-send-email-patrick.delaunay@st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.23.85] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-18_07:, , signatures=0 Cc: U-Boot STM32 <uboot-stm32@st-md-mailman.stormreply.com> Subject: [U-Boot] [PATCH 11/16] armv7: timer: init timer with bootstage X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
patches for stm32 support
|
expand
|
diff --git a/arch/arm/cpu/armv7/arch_timer.c b/arch/arm/cpu/armv7/arch_timer.c index 3db31c0..5de6305 100644 --- a/arch/arm/cpu/armv7/arch_timer.c +++ b/arch/arm/cpu/armv7/arch_timer.c @@ -49,6 +49,9 @@ unsigned long long get_ticks(void) ulong timer_get_boot_us(void) { + if (!gd->arch.timer_rate_hz) + timer_init(); + return lldiv(get_ticks(), gd->arch.timer_rate_hz / 1000000); }
In initf_bootstage() we call bootstage_mark_name() which ends up calling timer_get_us() before timer_init(); that cause crash for stm32mp1. This patch solve the issue without changing the initialization sequence. See also commit 97d20f69f53e ("Enable CONFIG_TIMER_EARLY with bootstage") for other solution when DM is activated for TIMER. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> --- arch/arm/cpu/armv7/arch_timer.c | 3 +++ 1 file changed, 3 insertions(+)