Message ID | 20210409111345.294472-16-claudiu.beznea@microchip.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=+Itf=JG=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 909CDC433B4 for <linux-arm-kernel@archiver.kernel.org>; Fri, 9 Apr 2021 11:23:08 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9947610A3 for <linux-arm-kernel@archiver.kernel.org>; Fri, 9 Apr 2021 11:23:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9947610A3 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8szH7XeQaMsvoG/x2XJNaZwtF2CElGaSQHtJaTsGBBo=; b=o8LGS+NMquFsuKRYhYltu8Gjr GTs2DROWLDP1e/3GeFK4EXxb3+byumd8Kj4gk4+747MUMgNhYrM+rKVc4mLreztu4ZtoY7Iw/hc+C Vjpc42xRykKNiPB3Tda37Ow5S+eYqT4gwfz5xWO7NdilrUeMQBggg/wl4zktWnJPi6i2oClZoJtAz zcTdfX2Be7TYt3Q4Sag5STLUk3ZZa4+t2LqPtHeTIcXwMEoKirGeJeUjn7ugyvdgR3kcbTX2SNCXX zpjrYQzJRqNJ10ou2sHnBZfsGOV5yET8+F8gFEKNWAImEJhSppKK+xBrH0/GT4Q2Ew34DzDY6Rrcv sczaHPHng==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUpCB-000ZWN-Vo; Fri, 09 Apr 2021 11:21:05 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUp8b-000YBV-1c for linux-arm-kernel@lists.infradead.org; Fri, 09 Apr 2021 11:17:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1617967041; x=1649503041; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4BQZ/iTmn3jDQYiKb3oiGkOU5qXJu63VT3CwhT9FgTM=; b=euwfnQ8Y+U7iX2bOYrv612KTgUb0kUV+jqaAbps9qiuHdOIL2IM0PK/D 2hPIlYspcREtDAQqIF0mroCQcUZElvCE8acVbtZbMykOIAuRnlOuzUhQN qMOVA2NZ6sKOBiVi86DflpPSix3YcJK6Pb57uta4eD+FvBmMIpCEjZIac ZwXHH+pWNG6IiZXTOmuNP+XUb4mK+iv45olqjqBKtNe3bFZTZdiF8ky+3 SOrAy2G/0+YHr/eHSW1CYzXE0o3ms/L0eDaQemZHnVfipsgmeMUoWYWGy hiCAqSPB5ExVCvOz3gqq71U1yrRXWDCAtw7v1lBRPysigLz9bXR+VpumS w==; IronPort-SDR: /6rC9fKFP/N28mIlf2A5U8Yf9Qkc520gdrxRYAXGVtCh3Ja0Gtn+NOiay/ynpC81L6qXHi5PYa beAwLo+1cz+2bBX8UOnGct1AS5Aung9AjH3pXlTJwEBgsh3jQOtTY6PZUs4CdMwlw5D8HKIicN eE0sjQEHQcEkXzDaYV4HwymhbxuYCsCZIVUJOT9WpDFfNa66/OKM+oAEDyPfJoRHq9UWiCdud+ pHJ6A1aU4s5SKV7VmGPQ/ilCanu0JFSOE0d7q2azQiwEQeccJ/EgpniTiEcR8TiS+CtDcyHaST FXo= X-IronPort-AV: E=Sophos;i="5.82,209,1613458800"; d="scan'208";a="115878643" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Apr 2021 04:17:14 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 9 Apr 2021 04:17:13 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Fri, 9 Apr 2021 04:16:57 -0700 From: Claudiu Beznea <claudiu.beznea@microchip.com> To: <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>, <ludovic.desroches@microchip.com>, <robh+dt@kernel.org>, <linux@armlinux.org.uk> CC: <linux-arm-kernel@lists.infradead.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Claudiu Beznea <claudiu.beznea@microchip.com> Subject: [PATCH v2 15/24] ARM: at91: pm: wait for ddr power mode off Date: Fri, 9 Apr 2021 14:13:36 +0300 Message-ID: <20210409111345.294472-16-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210409111345.294472-1-claudiu.beznea@microchip.com> References: <20210409111345.294472-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210409_121722_703182_7A7F989C X-CRM114-Status: UNSURE ( 7.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
ARM: at91: pm: add support for sama7g5
|
expand
|
diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-at91/pm_suspend.S index 9c9e08fd8300..7396e18dd7e5 100644 --- a/arch/arm/mach-at91/pm_suspend.S +++ b/arch/arm/mach-at91/pm_suspend.S @@ -980,6 +980,11 @@ ulp_exit: mov tmp1, #0x1 str tmp1, [r0, #0x10] + /* Wait for it. */ +1: ldr tmp1, [r0, #0x10] + tst tmp1, #0x1 + beq 1b + /* Shutdown */ ldr r0, .shdwc mov tmp1, #0xA5000000
Wait for DDR power mode off before shutting down the core. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> --- arch/arm/mach-at91/pm_suspend.S | 5 +++++ 1 file changed, 5 insertions(+)