From patchwork Wed Jun 20 17:40:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jolly Shah X-Patchwork-Id: 10478577 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A8631601D7 for ; Wed, 20 Jun 2018 19:09:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E041B28DA7 for ; Wed, 20 Jun 2018 19:08:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D42B228DCC; Wed, 20 Jun 2018 19:08:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1D1E628D19 for ; Wed, 20 Jun 2018 19:08:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fpGiW578sZtuoiKrfD2R9vBxfgq69uSTCBAbaB0W2i0=; b=Xgznp6hFmcRezN wlDpFGNBz8GbS7/s/4SrWfuzAM4RNfqIZb0W9Vb8cF77ujpH5HeZPUQZZ9ZcxUzTSqtFg/i8+2qrr Z3u5sIGk65XVgJwDtTPnaQf0RvCjwy8xVfq2nhaEpQI7yB8Q3QWMRoPm3tic0x+uCDxnaUsLYq9tE V5GynQB3KNmRMuYB+62+tdf3GWwlwsc9hy04C7wqqpp/W7hT8Jdkwpjk0EByV/34gWDcwMN3i43uK DwOpNl2GKgPUW8X+pxnEbs2o9KE4vqkz9bhCMNkv4jVtyVThspRuFcKvzyRvG7CkclWLwo47+iT+R sT1ADjdop6koiZLO+oZg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fViTA-0008Ml-CO; Wed, 20 Jun 2018 19:08:40 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fViQH-0006hm-1b for linux-arm-kernel@bombadil.infradead.org; Wed, 20 Jun 2018 19:05:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WL4iAhEb8WnCRtMCcMrTO8VhRxkUm3xnzqqZFS0wndE=; b=Jqr4GHrH+qaWlOJtmk7x7K3OW RaQ0Fixj+tHPfE14rG539X0ujlTVJm4o9imvxTubSXY6DSv0bD+faf8EWZXmT5s/siaBjESZ5BCOV JOLq7d9+0FmQb5ldV1CW+HAPOOIzcxKFQK/EUhrGJ4LfBTs5J4VWHi7d46trfYP2VVw/z5Iox1dTf F5ZHvJqliq6i5Y00hYSewYk/UsuX1drneBZqSPNIpB7T/VwTYN0rgxCaQGjCLPQoGTkrS0wKGS9KF hZIHygLOB4hxN8YMvlgopQPZvRyj2iG8+br8YyEELi9u/krm1u+jjU6D93vz1Djq5J0FrX87rs+eC qyA2YiGCw==; Received: from mail-bl2nam02on060b.outbound.protection.outlook.com ([2a01:111:f400:fe46::60b] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVh6Z-0000lp-41 for linux-arm-kernel@lists.infradead.org; Wed, 20 Jun 2018 17:41:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WL4iAhEb8WnCRtMCcMrTO8VhRxkUm3xnzqqZFS0wndE=; b=YL5cUAIrbwgsCwgr7fN6P9RY3m4qM3m5OYdTH8/EodV2K2bklQ/7cTd+SVOAiX4fxQxgQEUaN/4oRsF36E7EpRMEdbJd+SCbh9sttKKaeXbKnV1UL30XZhbU/3zKGTyPl1OkTX8tGyzu0lnaQwy703yNY34TWyno49LA6QagUak= Received: from MWHPR0201CA0106.namprd02.prod.outlook.com (2603:10b6:301:75::47) by BY2PR02MB2149.namprd02.prod.outlook.com (2a01:111:e400:c506::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Wed, 20 Jun 2018 17:40:58 +0000 Received: from CY1NAM02FT062.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::200) by MWHPR0201CA0106.outlook.office365.com (2603:10b6:301:75::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.863.19 via Frontend Transport; Wed, 20 Jun 2018 17:40:57 +0000 Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT062.mail.protection.outlook.com (10.152.75.60) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.884.17 via Frontend Transport; Wed, 20 Jun 2018 17:40:56 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1fVh6F-0002P4-W5; Wed, 20 Jun 2018 10:40:55 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1fVh6A-0004lu-Sc; Wed, 20 Jun 2018 10:40:50 -0700 Received: from xsj-pvapsmtp01 (xsj-smtp1.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w5KHefrx027141; Wed, 20 Jun 2018 10:40:42 -0700 Received: from [172.19.2.91] (helo=xsjjollys50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fVh61-0004hY-SM; Wed, 20 Jun 2018 10:40:41 -0700 From: Jolly Shah To: , , , , , , , , , , , , , Subject: [PATCH v9 04/10] firmware: xilinx: Add query data API Date: Wed, 20 Jun 2018 10:40:29 -0700 Message-ID: <1529516435-7315-5-git-send-email-jollys@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529516435-7315-1-git-send-email-jollys@xilinx.com> References: <1529516435-7315-1-git-send-email-jollys@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(396003)(39380400002)(346002)(376002)(2980300002)(438002)(189003)(199004)(63266004)(2906002)(11346002)(446003)(44832011)(336012)(426003)(8936002)(476003)(2616005)(126002)(486006)(106466001)(305945005)(478600001)(72206003)(36756003)(50466002)(48376002)(26005)(8676002)(77096007)(6666003)(6346003)(47776003)(186003)(81166006)(36386004)(81156014)(5660300001)(107886003)(59450400001)(356003)(9786002)(7696005)(51416003)(76176011)(39060400002)(7416002)(106002)(16586007)(50226002)(110136005)(2201001)(316002)(54906003)(4326008)(921003)(107986001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB2149; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; LANG:en; PTR:unknown-60-83.xilinx.com; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT062; 1:YLSEQsgVF4sWdA7AmmIfGFz1pGbDw9dmUfvOxZpGQoBECILCeGsCyjqBMpmxLNDf431O9EsiGk6pl3XHuLLd9seo7jKolpR5GatDZNIGljzRGTQ2Kf3B2nAk4lStopeN MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 241c6f00-a892-444c-8886-08d5d6d4fb0a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(4608076)(2017052603328)(7153060); SRVR:BY2PR02MB2149; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB2149; 3:fe/hqochI3dCXn6cCBLR5HDaj9XPGKVuEPqV8FFZ1URgPhb2csyozoIOuR0JpvlbN/bE7mqLb7g2pIcb3Ob/RsbdF98VQFJNlavxt6sIsG1jgXLWVa91SuI/WfXTasnqOcGOXECWDGcEWjqJM36jOWUHae+3d6iszN7/Gg3my5riCN0qlhc4eE1qYzCBVDNRpd4qr1VjE/hbd+oJ1PTlk90BN26JsEnQLgjtY705LbB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ycIboKhqBnZAeUaa6u7oNGl5EqyhOZKLN0HNnK0dDW36WjjByFyNA1hjXgthyesCk31z4obPj6y8W+k5mGB9ZvOV6TQBphzxSZVqCcMg2A7kTOApCjDhNm2QjgF8rhHB8zKunREkZWxcSZjbBAjBYgP4Z3D0nfGfoKaFsMStDoabUe8j72L33nkvEhr6CUSSCXpNAEJf9non9ja0HFMWUqWVGcFDJNJeGUASgIHz X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(944501410)(52105095)(3002001)(93006095)(93004095)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:BY2PR02MB2149; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB2149; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB2149; 4:TpcJr+Rhr3CGDRGzifj4LOgqJmc0nCsMOon+r4+w1RDYG3fuNmjIFcXiSGSLibqNhlFnian6YqJ83yROQHq4ACdtE9YRRQaXZJUtQfpG2s0oNwgC6cJ1f4DmW/4YuX3qUBmVD8j7ZqfHEX/8OSyFceW1XfOqrvPOwGZvwhR3Xebqdd73sCc4wsZHbaHAH3LtbKKBt0gLNZN9EEgAIXzpyxznbGgXmDjQ4F/6njIDxAcepC7V3CJ/WITmrdYw4zihQkHp7ZSrdBi+sfz/mc40K5tgGdF3EBkOPmNY3LoOD07b3VMXneMUtV8yXgAjzvqZ X-Forefront-PRVS: 070912876F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR02MB2149; 23:drtMMv12vuCKMHcJjpLPYmGVxWIK0ywVOGurUm9jo?= =?us-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r+CxtzCNdIW3d35TDM7bS/PYJD?= =?us-ascii?Q?HXQoIPX71xri+Z67Y6VJ3nd+gkfi1zYacBgTFmJlXGCn7AXOkrC7s6JDHd44?= =?us-ascii?Q?BfgaibbGaNJz80NBXfxYeilmBjdXvXO/BcsVpkI31qI6muGPrRiU8H+VN4Q/?= =?us-ascii?Q?vshDZv+GaYbgHkli+BoMi8C3V8bPDmGWKg+TXUiAcU3hHy57CG+of3YAr9mb?= =?us-ascii?Q?9JBfGdINQ/7s3vuqDsM62niDc8Km8DD5bKxRNGLnlLRIAieeSEUTvRrkWQqH?= =?us-ascii?Q?mXVPcBfw+DUmYr1faoGb8K2LPzV9f8Y044ol7Vvt3eukSL7+6HjEuJYTwOHn?= =?us-ascii?Q?iinEqRyEY3zlkPyJz4kWAHhnqfRVkaxkm2HB8Wc2j4+B72ixF3fx1v28te+F?= =?us-ascii?Q?MsKzGf0m9TJjlb2cxW3LIw=3D?= X-Microsoft-Antispam-Message-Info: n8CT8hDthZGYCRTh3Kk5LgcH0055j+yJ5uTuIHRhkJuBqfnp0LZasPB/x/Zn4rBmIdgvyh0sJuJyglMrh9g/zeS2KGy+PJZITBpQ97lMGw1qgdwuo4bnqQpporSUrJVsgpSiR/XOwVPapCWqczf3lAtnUhLxivhE/JgIOJcwe9XSboVBwpNx7AyOH7u8/csTOLPYc+nCZoLXq+zrHJ08VKeT0zZ3r5Sq/SMutqHIvlmfGrR57ubpwpxKPsKPHsRxaia+8czHT/TmoHs/HgS7pNZfNTJTkegTyTo15rHf4PdScEc7lds0ZgaUApxSJnb3a+TmmOv0soNQhqHDxY5QeQ== X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB2149; 6:07W0KJgpjbr4rMekNsJjbDiyZU/u4XshTMay0vwxQjTu+1RKb+DKXI0OTb6j6kMojoOegt3mmigaJbYoGb1GS2xHc0qepfXc1LxRbRM+rI0V3suWqaTosF7oteG1059mdIR5Axq8s05YgSAAPGo64tjrK1bCvElAzfolttRiEBF5OOsQ+iCd/HAtk/jdSiBdUrKJi9juLq9IlfPR+xQMf4EbUTGYD6wOCtHbWA3zvVup+WoD8F7G75MQGTzxkdq/BgXQ+uuHw1RxiJ2GZx2+y0LASW8DfPACRx/h9SgLy/pRBZGwvro8yFxyIOACbCofDSWu9CQvChQXyDZ6tjwKjZXeVuFrtAwdoc1su3O+oFXMrpnZJ72Gf1ZlDbI5rH/q5pMTMnV5oMO2AZxhfW3SmRr1pZxXNJtMd2IGKmoW07zL1qfmVTgGRycCfwXBnr+kPLk9hUok5hBsqWOtzKshfQ==; 5:rp3mpqFdYCiWLkEtb0BKxiHFqCuidkqwLYPSoPyv3sTiLqkxata5KVCHKLP+kxwPmCPi0dQtLmzvl6YCnkO4UbL65n5scfxnbDTWZspRYDivL8ElgwLOoeztZ9No/sMRIeclcwae0iJjSRLCP5Uqqmd5wgd9qk78rq80Q9guGCM=; 24:3jK/PtP1770qpmdD4dQv8mgD+Wltqiugt4293MDDphcBggb7v0frNubKIAGzwvsuGoVEQ4L2Z6PhBqwS/lT5T9pIuAe+aU6TlG5mzBPMKIE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB2149; 7:nHhtAGRk2gg5wKf8E6om09Z2+zJqTZk7lyspXgtxrCOBH1Y6qOAjOxEAdtlFcpK0UL64Vb0sksUeRUo09RmstpiFHImIw6bK0HYZEpavjW21DHx+t1XfYu/25xNlTZaAFKl3Uyx1znNeQ8Aig0LZyYxIBpZ+ynda+HN72amRkG4DOTMHCuD3D7YQYZgGxVYMgJGcnR3ZGLedvxllJrQ4koADZEjamdEfCXEJJS2z2z1SOuxIwr3WpxPTgZ53CwBj X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2018 17:40:56.6287 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 241c6f00-a892-444c-8886-08d5d6d4fb0a X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB2149 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180620_134115_238214_AB513108 X-CRM114-Status: GOOD ( 12.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, rajanv@xilinx.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jolly Shah Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rajan Vaja Add ZynqMP firmware query data API to query platform specific information(clocks, pins) from firmware. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- drivers/firmware/xilinx/zynqmp.c | 14 ++++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 20 ++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c index 34c5ad5..86d9bb8 100644 --- a/drivers/firmware/xilinx/zynqmp.c +++ b/drivers/firmware/xilinx/zynqmp.c @@ -260,9 +260,23 @@ static int zynqmp_pm_ioctl(u32 node_id, u32 ioctl_id, u32 arg1, u32 arg2, arg1, arg2, out); } +/** + * zynqmp_pm_query_data() - Get query data from firmware + * @qdata: Variable to the zynqmp_pm_query_data structure + * @out: Returned output value + * + * Return: Returns status, either success or error+reason + */ +static int zynqmp_pm_query_data(struct zynqmp_pm_query_data qdata, u32 *out) +{ + return zynqmp_pm_invoke_fn(PM_QUERY_DATA, qdata.qid, qdata.arg1, + qdata.arg2, qdata.arg3, out); +} + static const struct zynqmp_eemi_ops eemi_ops = { .get_api_version = zynqmp_pm_get_api_version, .ioctl = zynqmp_pm_ioctl, + .query_data = zynqmp_pm_query_data, }; /** diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h index 2eec6e7..354385d 100644 --- a/include/linux/firmware/xlnx-zynqmp.h +++ b/include/linux/firmware/xlnx-zynqmp.h @@ -35,6 +35,7 @@ enum pm_api_id { PM_GET_API_VERSION = 1, PM_IOCTL = 34, + PM_QUERY_DATA, }; /* PMU-FW return status codes */ @@ -48,9 +49,28 @@ enum pm_ret_status { XST_PM_ABORT_SUSPEND, }; +enum pm_query_id { + PM_QID_INVALID, +}; + +/** + * struct zynqmp_pm_query_data - PM query data structure + * @qid: query ID + * @arg1: Argument 1 of query data + * @arg2: Argument 2 of query data + * @arg3: Argument 3 of query data + */ +struct zynqmp_pm_query_data { + u32 qid; + u32 arg1; + u32 arg2; + u32 arg3; +}; + struct zynqmp_eemi_ops { int (*get_api_version)(u32 *version); int (*ioctl)(u32 node_id, u32 ioctl_id, u32 arg1, u32 arg2, u32 *out); + int (*query_data)(struct zynqmp_pm_query_data qdata, u32 *out); }; #if IS_REACHABLE(CONFIG_ARCH_ZYNQMP)