From patchwork Thu Apr 15 10:49:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12205099 Return-Path: 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 C9AA9C433ED for ; Thu, 15 Apr 2021 10:53:27 +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 592056117A for ; Thu, 15 Apr 2021 10:53:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 592056117A 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=20/z02Rc5uETnlZWy+kFbiIyLJ7P0h1pwj7EJzAAji8=; b=JzAGqJqfi+Er6TGryf52NV8Ho g5vsYMCWIdPvdVzSfLXKnC0i6FD6F2ycs4Nuo45gDM7s7zKhOjaI1WRn9eKpIbDDSZ2n4wUhL8Ga4 WbUg6u0kSnsnwjhw5puXREhD1C+aOtEt5knj3DWlGOlN4N7Lc4z2prPKgTjvm+qst89A1RY/ZQaxA wwLzyIr5V6AHqiiRqqQSIVVk8aW37ICCSqYPxRgVnn4dmFIc3ceZg7PIA3VsV5+f+/rATNEuqd+cw wa0X/VzDaF046byo8dJKXyOScSozvmcaDsqRgxj5w33mPfcAcf/Gb7LxjsGxyDgfxqZEhdkRC4sv8 oEfTRhn5A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lWzaf-00Fng3-NT; Thu, 15 Apr 2021 10:51:17 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWzaO-00Fnbb-WD for linux-arm-kernel@desiato.infradead.org; Thu, 15 Apr 2021 10:51:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Sender:Reply-To:Content-ID:Content-Description; bh=PV8i0rmEjx/8WM5PuzOn30xFQOgZ1wUjn/divJ7f2UY=; b=kN8RbOg/4lgQ7bdfx+++/va3rj KLF0I6xGy5qycFpYESp7n/EFPPmMRcgh3K+vn/ZIjJXNYObKBIYS/QVUFYs0Dl1DNjZwjr6UE4eDH x10ibIvGCjQqpEqJX7JBVRdPNV94VqV/uEQqUhavT5bU0DsbesWVdA5zFwhSfB5YvpyBCCktF1jeT c0ta97v+jiVszJO0KxtX1KZ8VVgW5x5RaoEw/hKFrCbwC4NJma3XnYG4ljh0Ck7r8n7/A4oF5+5W+ cYeckubsJNWof7FOl6aXrfSE1z8sFm5lHKY8Q8meAxCJ1TlLpQwzRoQgvbLiMM8TgegHgL4GI/4V2 AYP9KVtA==; Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWzaM-008UwH-DE for linux-arm-kernel@lists.infradead.org; Thu, 15 Apr 2021 10:50:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1618483858; x=1650019858; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OekT/yOqa/XDBMBTQSpkviI/blzoLGSPwS38au5y5kw=; b=aq3Grdbe98jc0vEqU5jF6EsJt29XPIDaiNQ2dFR06uyPRb5vzRNDAXZ0 dVZoKivILhgLFrv6/0aNPK6lZJYB823zZlqcGHSsxvCWYq1uztrUp2fyF CUfGiNSjAHYOKsIjoo4qZHpzubRwrHA4ufprwArV+t0pZy6wtPLKtOjK5 FhRmxUB3zUs/qbWhsYwrBdVa7oLuGUJFN3dfZbqTE4bmbR96jhEA23h96 sbFbnGmH0d+YBNB7Xqid22tG4vKXCciRroAF+9f11scgWa/WoK7fyClek R6UCZA3GZu9wzdQM178FTNnTqyoS4EYAJuKpibsjziBhzJdmkVdfn52Lb g==; IronPort-SDR: E4Sd1DVwPfLTZiZPAwkuu96fhG1qhJGIV6Lr1Ip1oaZqst4/PnIdVJxAGHZg+Py3YbnrGP8BFQ dLLZ9Lp0tlFc0tzucQQ+PKhuMQvorlW7fHwFxdtDEvFG+N4FhJ6H67mw1gOH0JvTl+/sV6j0n7 TIF8+L/q9hTHh8ZBzOP8ze9XFsQmj7hRt5QpRc0r5HekOKdLIRgLKmVWqzsyo8hi8KLUgEcSS3 aLTVR2pFshovtUqR4Gs837KKXk9CnepL9pWjFr+L4jUkNRby3ggi5RSCnW+BSUXhfuv8IvY50I Bus= X-IronPort-AV: E=Sophos;i="5.82,223,1613458800"; d="scan'208";a="110922867" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Apr 2021 03:50:55 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 15 Apr 2021 03:50:55 -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; Thu, 15 Apr 2021 03:50:53 -0700 From: Claudiu Beznea To: , , , , CC: , , , Claudiu Beznea Subject: [PATCH v3 03/24] ARM: at91: pm: document at91_soc_pm structure Date: Thu, 15 Apr 2021 13:49:49 +0300 Message-ID: <20210415105010.569620-4-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210415105010.569620-1-claudiu.beznea@microchip.com> References: <20210415105010.569620-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-20210415_035058_534176_4B481264 X-CRM114-Status: UNSURE ( 8.16 ) 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Document at91_soc_pm structure. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 3742a1fb76db..3029351ec78e 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -41,6 +41,14 @@ struct at91_pm_bu { phys_addr_t resume; }; +/** + * struct at91_soc_pm - AT91 SoC power management data structure + * @config_shdwc_ws: wakeup sources configuration function for SHDWC + * @config_pmc_ws: wakeup srouces configuration function for PMC + * @ws_ids: wakup sources of_device_id array + * @data: PM data to be used on last phase of suspend + * @bu: backup unit mapped data (for backup mode) + */ struct at91_soc_pm { int (*config_shdwc_ws)(void __iomem *shdwc, u32 *mode, u32 *polarity); int (*config_pmc_ws)(void __iomem *pmc, u32 mode, u32 polarity);