From patchwork Wed Sep 25 10:40:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biwen Li X-Patchwork-Id: 1167122 X-Patchwork-Delegate: priyanka.jain@nxp.com Return-Path: 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46dZd82PNHz9sP3 for ; Wed, 25 Sep 2019 20:52:12 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 8C3D6C21F4A; Wed, 25 Sep 2019 10:52:10 +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 C62A6C21ED5; Wed, 25 Sep 2019 10:51:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7B842C21EE5; Wed, 25 Sep 2019 10:51:30 +0000 (UTC) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lists.denx.de (Postfix) with ESMTPS id 70397C21ECC for ; Wed, 25 Sep 2019 10:51:26 +0000 (UTC) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3A9481A0851; Wed, 25 Sep 2019 12:51:26 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 098FF1A0498; Wed, 25 Sep 2019 12:51:22 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 7DA45402E4; Wed, 25 Sep 2019 18:51:16 +0800 (SGT) From: Biwen Li To: albert.u.boot@aribaud.net, prabhakar.kushwaha@nxp.com, rajesh.bhagat@nxp.com, priyanka.jain@nxp.com, ran.wang_1@nxp.com, leoyang.li@nxp.com, jagdish.gediya@nxp.com Date: Wed, 25 Sep 2019 18:40:42 +0800 Message-Id: <20190925104043.34385-1-biwen.li@nxp.com> X-Mailer: git-send-email 2.9.5 X-Virus-Scanned: ClamAV using ClamSMTP Cc: u-boot@lists.denx.de Subject: [U-Boot] [v3, 1/2] armv7: ls102xa: add errata ID A-008646 for workaround 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The patch adds an errata ID A-008646 for workaround to provide more information by ID. Signed-off-by: Biwen Li --- Change in v3: - adjust code style Change in v2: - update subject and description arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c index bb169aaaf4..afa4fd7a48 100644 --- a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c +++ b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c @@ -68,9 +68,10 @@ static void __secure ls1_deepsleep_irq_cfg(void) ippdexpcr0 = in_be32(&rcpm->ippdexpcr0); /* - * Workaround: There is bug of register ippdexpcr1, when read it always - * returns zero, so its value is saved to a scrachpad register to be - * read, that is why we don't read it from register ippdexpcr1 itself. + * Workaround of errata A-008646: There is bug of register ippdexpcr1, + * when read it always returns zero, so its value is saved to a + * scrachpad register to be read, that is why we don't read it from + * register ippdexpcr1 itself. */ ippdexpcr1 = in_le32(&scfg->sparecr[7]); out_be32(&rcpm->ippdexpcr1, ippdexpcr1); From patchwork Wed Sep 25 10:40:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biwen Li X-Patchwork-Id: 1167126 X-Patchwork-Delegate: priyanka.jain@nxp.com Return-Path: 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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46dZkc5Xrmz9sP3 for ; Wed, 25 Sep 2019 20:56:56 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 6F13CC21F37; Wed, 25 Sep 2019 10:56:55 +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 369D6C21F1F; Wed, 25 Sep 2019 10:51:32 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7223AC21ECC; Wed, 25 Sep 2019 10:51:31 +0000 (UTC) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lists.denx.de (Postfix) with ESMTPS id 70F2CC21ED5 for ; Wed, 25 Sep 2019 10:51:27 +0000 (UTC) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3F00F1A0834; Wed, 25 Sep 2019 12:51:27 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0EA111A083C; Wed, 25 Sep 2019 12:51:23 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8465A402EE; Wed, 25 Sep 2019 18:51:17 +0800 (SGT) From: Biwen Li To: albert.u.boot@aribaud.net, prabhakar.kushwaha@nxp.com, rajesh.bhagat@nxp.com, priyanka.jain@nxp.com, ran.wang_1@nxp.com, leoyang.li@nxp.com, jagdish.gediya@nxp.com Date: Wed, 25 Sep 2019 18:40:43 +0800 Message-Id: <20190925104043.34385-2-biwen.li@nxp.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20190925104043.34385-1-biwen.li@nxp.com> References: <20190925104043.34385-1-biwen.li@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Cc: u-boot@lists.denx.de Subject: [U-Boot] [v3, 2/2] armv7: ls102xa: Don't power down OCRAM1 during deep sleep 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Don't power down OCRAM1 for wakeup source to wakeup system in deep sleep Signed-off-by: Biwen Li --- Change in v3: - update subject and description Change in v2: - split one patch to two patches - always not power down OCRAM1 arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c index afa4fd7a48..3df5a1141a 100644 --- a/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c +++ b/arch/arm/cpu/armv7/ls102xa/ls102xa_psci.c @@ -74,7 +74,8 @@ static void __secure ls1_deepsleep_irq_cfg(void) * register ippdexpcr1 itself. */ ippdexpcr1 = in_le32(&scfg->sparecr[7]); - out_be32(&rcpm->ippdexpcr1, ippdexpcr1); + /* Always not power down OCRAM1 */ + out_be32(&rcpm->ippdexpcr1, ippdexpcr1 | RCPM_IPPDEXPCR1_OCRAM1); if (ippdexpcr0 & RCPM_IPPDEXPCR0_ETSEC) pmcintecr |= SCFG_PMCINTECR_ETSECRXG0 |