From patchwork Fri Jun 5 01:59:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 11588885 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B51691391 for ; Fri, 5 Jun 2020 02:10:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 4BBAC20823 for ; Fri, 5 Jun 2020 02:10:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AbTegjLq"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="k8I/NGDh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4BBAC20823 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=YxamQG+qZ7GZMY9nBdV+dtC+jEPtD4pMqf5lprdj3wM=; b=AbTegjLqAEV9ME 8xvY3g50J+qM49n8b3Dy9JrZUKUT8PBigviXk0slxEzhyVT2usKw0mc3qljRIG561Fnv6Ef9wKOW1 NXVHS8sxsgbAxcKxU3olW0VTsiQ0w09XIrPL5hBXX3oflAuG/I+IUgX8rBU580pLs3Piv9MLGoY7B RxzQgPodHfgEinArKqR/UouxylFa33meVUtiJcYa4bR7BofffsaPDhNqnjf+YsWxRSdSoO1ZhQFMx 0GSR6mZpUQjccs2UXPMoFuiECQuek+gOeUp1oG8wXuuDRPyJ0IjbQNSDXE49ZDugyuQfx6/CKRDuE tpI0RXCiTsCCl8xri+Ng==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jh1of-0003Vi-6p; Fri, 05 Jun 2020 02:10:41 +0000 Received: from mail-vi1eur05on2049.outbound.protection.outlook.com ([40.107.21.49] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jh1ob-0003P2-9N for linux-arm-kernel@lists.infradead.org; Fri, 05 Jun 2020 02:10:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PE4sO/mYPu6mQN1cuW/3PAo6mxwva1ju/x4g/mVOtICfWrZNEtbEQ9cP0MpzD1y4F4hMDhLxkhnLllw0SdTy3tK8yMTC48W7LFv0U+HY7mvu0mo5tH+7Gy5TyfJFR9yClCqMBqrixqO+xPHcerpllrDcbLCtRlEviBfEWTudkOxuJx5ZrGXLExnONmOWMkJvHv1G+hWTk96NbTnMMTeoOP1Cf1mKbf732byj5z1TR0JTvJpuklZMqSDXKmOpgh/whwWGxqZjWBO6j90IIKtys17YZLTGfRHY3ch/uFAGM75Jj59bf+XNojZrcp/LZKo2Y/N25mYU3bd/6JvGqdb1Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K8k7NXNuGefdlSKiqskM6lVCF/mKipaKJjqtQnfYlFU=; b=gjUQYF4WtUklqlTFYSCvdq9Uvf1TZCjoXGAfcmgZeQJzsVgUS8kXiQhjdWqUH0ApOj9Hml2r2P8AwEzFRc6WNUPJxiGl49fkQikvtHgm3becvzDr7Q3JASE7zKJ51F9T1FBPPhuFFKIP/PBk0gRgutrEqSyVwGVGFIPzm2Ae+hlXSA1S7bUC2AqmRqPeSKjXXLsrEQRQTlsleSLatAGHT5cRltYVHaJD/PQaLs+JN/vnGRmJCVbQsAZVd1DfWXtL3wiGZ4798vrSEpJHpXM/rQpl0AntoYXp3SXQjnMpSkg+rCE5R8DK3nyWHN+07fxsm8fqNeP/uhkKsKBLhzss2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K8k7NXNuGefdlSKiqskM6lVCF/mKipaKJjqtQnfYlFU=; b=k8I/NGDhu78xDUmyDc+VDZvr15mFiwe/+KQPNalJvyxCiFciozgHrG8eE8UBmh2/rDd2K42ROdHCOxkTQ+nPv8VnLrKINPx6byWXC2QLsNVmqx1aPSqzHRElBAeQEBkUr9E5B10zd2zjdu57pNSaAiEHObjUfq1gf6JDIjNcbxo= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR0402MB2696.eurprd04.prod.outlook.com (2603:10a6:4:a1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Fri, 5 Jun 2020 02:10:34 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871%6]) with mapi id 15.20.3066.018; Fri, 5 Jun 2020 02:10:34 +0000 From: peng.fan@nxp.com To: shawnguo@kernel.org, s.hauer@pengutronix.de, aisheng.dong@nxp.com Subject: [PATCH V3 1/3] firmware: imx: scu-pd: fix cm40 power domain Date: Fri, 5 Jun 2020 09:59:30 +0800 Message-Id: <1591322372-3793-2-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591322372-3793-1-git-send-email-peng.fan@nxp.com> References: <1591322372-3793-1-git-send-email-peng.fan@nxp.com> X-ClientProxiedBy: SGAP274CA0014.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::26) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SGAP274CA0014.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3066.18 via Frontend Transport; Fri, 5 Jun 2020 02:10:29 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2a282068-1813-4f24-0e72-08d808f5a180 X-MS-TrafficTypeDiagnostic: DB6PR0402MB2696: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 0425A67DEF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6FRgfYgxBh86zpRKoA0l2A/5OzS/UyU9zo9tcbPKmqywEHzGJ50ZCWjQaA3Wyy7Pf2uLkHmgRHPXz65tySQ0cEvocp9T1ZkFSe6zwjGSxMz4bvGI1T91CAtvsnbaZaBIg7sjGaSRu7E3b6CeLMBcpq7QB/NyJd1xeu9cDpMaxoUx0CfF74mrS4nasVphaPSEJ3bawi27cpKhU/jlQuZZGannggY6lQybA1NIC5PxM3DDIXOYPVU+BAuzpygN0bVHfV3WgdOYbeRAsCySqwO6TAZRrez5+D9QMn2Vkq6fIA/Q0lLKrxnaJfkNnqlWgCPTQAoWURlNXuouPREU7oE6gkx2TMj32FOL7aTseM1U6FFpah51KHFdOtIYmQYn/g+S X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(376002)(136003)(39860400002)(396003)(366004)(86362001)(83380400001)(6506007)(52116002)(478600001)(66556008)(66946007)(8676002)(9686003)(66476007)(6512007)(8936002)(2906002)(186003)(36756003)(2616005)(6486002)(956004)(4326008)(69590400007)(16526019)(6666004)(26005)(5660300002)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: tsus6vvc03SksAP/GrjwZ1GFwVc1smztOG3j5Ued8uz8c7YWCLrCiC+18reJcPn8YgNwK/z7Hxl0v/3n0hzzR0MVblZ7fqc4/JwTBQiO8YRa6ug1NKyOWyvYhPf5AQjX9lruqJ9wH1EuzNcKPXi1CNdw+HiGRcj7hLCNmfnJYlnJiK6/VnbJPQ1aVP7v5ipP24HB91C7bhIAcipBdoWNIddo0PA9YSKTrxbrpnaopmPyo5h4l30Wnv7nrd2MLet0sUs0l2ic62DNMtoBUiZPdcuDJ91BnFK7P5IMH4QFzztjNvyakn1/deZhaErNXZZyb9nFsVT6hVWz00863HpoIoaU0ASZzK7ylnSYqsAwBBnByBDd6F9cqDHFwB2+prfC44lBvMcIMbv+NlKOrhR5TwinrfUIxsEdbSrKi4xMHMDXHIJA9mp9TDXX4NrshWYhJiWlhKZB1Z1J9td2ZvN8j3wXqme9S2mngsyEb5blRK0= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a282068-1813-4f24-0e72-08d808f5a180 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2020 02:10:34.6847 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 61168j//I8Z8yhv58IdebimRvYpji6IcplBc48q2v6KeZleQHRlsWwdv+OqLk8dVx/Q5VIyMoG9Z0N/LcZ5biA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2696 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200604_191037_335215_5133D93E X-CRM114-Status: UNSURE ( 9.53 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.21.49 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.21.49 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , festevam@gmail.com, qiangqing.zhang@nxp.com, linux@rempel-privat.de, franck.lenormand@nxp.com, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, leonard.crestez@nxp.com, daniel.baluta@nxp.com, linux-kernel@vger.kernel.org, linux-imx@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Peng Fan The postfix needs to be false. Alought compiler use 0 for postfix now, and take start_from as 0, it is better we add explicit false to postfix. Fixes: 705dcca91d0a("firmware: imx: scu-pd: add power domain for I2C and INTMUX in CM40 SS") Signed-off-by: Peng Fan Reviewed-by: Dong Aisheng --- drivers/firmware/imx/scu-pd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c index fb5523aa16ee..d1b313fa7b96 100644 --- a/drivers/firmware/imx/scu-pd.c +++ b/drivers/firmware/imx/scu-pd.c @@ -167,8 +167,8 @@ static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { { "dc0-pll", IMX_SC_R_DC_0_PLL_0, 2, true, 0 }, /* CM40 SS */ - { "cm40_i2c", IMX_SC_R_M4_0_I2C, 1, 0 }, - { "cm40_intmux", IMX_SC_R_M4_0_INTMUX, 1, 0 }, + { "cm40_i2c", IMX_SC_R_M4_0_I2C, 1, false, 0 }, + { "cm40_intmux", IMX_SC_R_M4_0_INTMUX, 1, false, 0 }, }; static const struct imx_sc_pd_soc imx8qxp_scu_pd = { From patchwork Fri Jun 5 01:59:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 11588887 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 513CC14E3 for ; Fri, 5 Jun 2020 02:10:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E7657207DA for ; Fri, 5 Jun 2020 02:10:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZZbFf0ye"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="socc6IEV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E7657207DA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=a3LrHIh2UkU5s5DmfJVYC64xbceHnkStgrUlxpuXnEs=; b=ZZbFf0yeqYZL1D DYUgjWh6N45DDzYX6ooqXG0Mt1oO15X4bN5TWpPxUuFzXqAgtxiUtiRIsjwWWt32jGhHGf35H+H03 9CVEWCuZMsBXNJZgLTHY2O6koPCgYFI0PzPgPapECaaIMvO34jZwrSBmhPz6Bjc5/zhC4Ia5SIRuV 3yiGrwOXL4A32QDMDVR4gORmBgRJphB/kzbpUKXBoQyqPEbQ0H62AJuUVmq7o4sZ4Z+UxWfWvOSdb VXi4yIesdnSB5rvovFREpSZA+tFuHp6wI/bcVgwmSTeayJoxzTTGQuKriztgkFmMSs5T1IpxilM4c C46uCGAHcNxcGYYrsasA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jh1os-0003n0-BL; Fri, 05 Jun 2020 02:10:54 +0000 Received: from mail-vi1eur05on2045.outbound.protection.outlook.com ([40.107.21.45] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jh1ok-0003ap-3q for linux-arm-kernel@lists.infradead.org; Fri, 05 Jun 2020 02:10:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mfobkIiaPvqvWXHof5G1sD6EyyD33BRwl+T/OQh8H5v5DoHnwNrccVHiksQ1hSGE58NEMY1/SwQPj0hlQRqYH5ckbkDShZE5iFndz9d7y9ATsFiOx+QTiDvTBcOiQMp6cYzHsq1xMT72TLCFJ/Kyid7VPDYtiVHtE8NhWXv5Bl1hCmCGri4jMmZn4z7w5e/yhKr/pd4CyOlDFR/JjD9OxIT5zOUs7X7Qs+w4pTvYCvO4cgPqLb+o1fWKS+Pld+wzbKcEBbJXY/w0fXVQ6MChbGjhDDcmWSrowZEp6tD5h6fAWWPYttiZtvYNGI0QOkZL8OR3PQ+C/WhMnzlVlWuJCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=00IQ+fLa14IEg9epmEfUz7KLdhcVInmjMAPLVLEoYxM=; b=DIKVHUFNAHWxOJfMOVVW/FCCY0R46sakISsZN6JpcwOJoJbtkoKbpUNxy5BnU45tqoK9Ogt2JPP0Vfi7uv1XdCpRbnTXbONiMiV/sdOKNsKqRQigry3W9S0V5b/6Se34dmdXNoXo3MHQyGYnvbUQoYdr3UVj+x8GdeY9NU32WXzhD1/u8ay2vFTVX2CzXQ3yTcli0XCvDP3qeYr7kyoAeZvxm8nfwcWRJg9ehrPRwCMKUBSUa4TvNZb1SChkKXieLzLivx7HiRaFCB1ROYK4o/1H82DgTK0KJYK1COm0TVVSnV/J9EL4MwXG0qXYauO/ys13olEKD5nkMaUhvKFwig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=00IQ+fLa14IEg9epmEfUz7KLdhcVInmjMAPLVLEoYxM=; b=socc6IEV2AtXdBLy//STAMz4NuhEVGdF1084WYDZ3ZFLzqElWNuxTgvttj9Ge82yZ6MzRBUp1RCHRsDVvMM0Y+GDvCFwTFN45gGA0rEDQ2ovP7Yd9pKrVK65NIxEEA8CW80mVpLAQBfYIAyoOt2d/5Fe644kZ5PMgYhyNOxdFsY= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR0402MB2696.eurprd04.prod.outlook.com (2603:10a6:4:a1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Fri, 5 Jun 2020 02:10:41 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871%6]) with mapi id 15.20.3066.018; Fri, 5 Jun 2020 02:10:41 +0000 From: peng.fan@nxp.com To: shawnguo@kernel.org, s.hauer@pengutronix.de, aisheng.dong@nxp.com Subject: [PATCH V3 2/3] firmware: imx: add resource management api Date: Fri, 5 Jun 2020 09:59:31 +0800 Message-Id: <1591322372-3793-3-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591322372-3793-1-git-send-email-peng.fan@nxp.com> References: <1591322372-3793-1-git-send-email-peng.fan@nxp.com> X-ClientProxiedBy: SGAP274CA0014.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::26) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SGAP274CA0014.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3066.18 via Frontend Transport; Fri, 5 Jun 2020 02:10:35 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c50392bb-02d6-4d3b-5645-08d808f5a596 X-MS-TrafficTypeDiagnostic: DB6PR0402MB2696: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-Forefront-PRVS: 0425A67DEF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V9zdnLMXA9mM0dCP8SHZY3uhqpDV2RoSnahCzw0OG33wXm4+ZHUV9O8I5IAwP/XjplI4N9pWS1H8e0v/7FkOlbw8p/XWso3jlb2d4YgvXl3rwWUBjzqfFLBsZ5zKNw/QHUyDwJ6t7SGCn/2/BdKcmU+72w0YAuMrgQzfjTgGkwYrliERRUswmMycyjwgiOzrPQQ7dK7eckKGTIMkID+TnIdTbLhxbaMmZ3/TTCXGkeyal+6UTT83peTMDfwTYo3Onc65KvuIfZT5YgR+aHxJ8NfgAbhF0c12pkaHR+bZ5uOkztFMNM7psFI09FKP9vZcxhTW8ZYfkTyZeiVCI5XGkaVuFGSMIDH9VssqOFeNBYB4lAQzODrk5SHwmZ80TYM0 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(376002)(136003)(39860400002)(396003)(366004)(86362001)(83380400001)(6506007)(52116002)(478600001)(66556008)(66946007)(8676002)(9686003)(66476007)(6512007)(8936002)(2906002)(186003)(36756003)(2616005)(6486002)(956004)(4326008)(69590400007)(16526019)(6666004)(26005)(5660300002)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 6eJ8Ncr99W1LYK0Pcvw2kcgxPQqiGfvsD1AIg0j5XYENIxxVAR/1hA1L8OC+/AaIGlDNQeC3D17tDyaQReTPuaDguXp1WwmPp4goNMf/SdGWpZA4WRzcWYiBonnyQYK9UQ+/bzREkw7j9f42hf+RJ6DvdjtudT+X6FwVPowKqkRyMVtKmsNpEACYvvTiinSlSY/4rgUqxMsizry7cRYQxltQVkQjgIsZct/XxZTVZZSqMERJo66ARhtCmJUC8ozrGaDFmh8j4s1yKM6Qcl7g86tnf2Nq3Nl89dvp+M4erRDz7iRCjYynegvIGHUlh+QWPljZAlp/cgVaCgy53Q6vcef7YCymQuxc80wzo2AsYMzgcf9w3c7XaccR5QwC51HPehNOQIzRz709WCrNPTHRJsg03jsQx8Y1cbNMQId91o6cJKo7rlZkyaBG33tCLegr3J52HhJcxpr91smzjcGd2vdrHUALY/9KCnWyWwhGUqY= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c50392bb-02d6-4d3b-5645-08d808f5a596 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2020 02:10:41.4626 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UIA5OmCH1Hrtve1Bo5IFN6cM7QXpfLRu8DL+PA5g3qPquH8qL5PTBqSk74WPGKq+5EEFHZ4kaSuEf/3knRs+Mg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2696 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200604_191046_197697_A2AF48DC X-CRM114-Status: GOOD ( 15.85 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.21.45 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.21.45 listed in wl.mailspike.net] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , festevam@gmail.com, qiangqing.zhang@nxp.com, linux@rempel-privat.de, franck.lenormand@nxp.com, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, leonard.crestez@nxp.com, daniel.baluta@nxp.com, linux-kernel@vger.kernel.org, linux-imx@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Peng Fan Add resource management API, when we have multiple partition running together, resources not owned to current partition should not be used. Reviewed-by: Leonard Crestez Reviewed-by: Dong Aisheng Signed-off-by: Peng Fan --- drivers/firmware/imx/Makefile | 2 +- drivers/firmware/imx/rm.c | 45 ++++++++++++++++++++++++ include/linux/firmware/imx/sci.h | 1 + include/linux/firmware/imx/svc/rm.h | 69 +++++++++++++++++++++++++++++++++++++ 4 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 drivers/firmware/imx/rm.c create mode 100644 include/linux/firmware/imx/svc/rm.h diff --git a/drivers/firmware/imx/Makefile b/drivers/firmware/imx/Makefile index 08bc9ddfbdfb..17ea3613e142 100644 --- a/drivers/firmware/imx/Makefile +++ b/drivers/firmware/imx/Makefile @@ -1,4 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_IMX_DSP) += imx-dsp.o -obj-$(CONFIG_IMX_SCU) += imx-scu.o misc.o imx-scu-irq.o +obj-$(CONFIG_IMX_SCU) += imx-scu.o misc.o imx-scu-irq.o rm.o obj-$(CONFIG_IMX_SCU_PD) += scu-pd.o diff --git a/drivers/firmware/imx/rm.c b/drivers/firmware/imx/rm.c new file mode 100644 index 000000000000..a12db6ff323b --- /dev/null +++ b/drivers/firmware/imx/rm.c @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2020 NXP + * + * File containing client-side RPC functions for the RM service. These + * function are ported to clients that communicate to the SC. + */ + +#include + +struct imx_sc_msg_rm_rsrc_owned { + struct imx_sc_rpc_msg hdr; + u16 resource; +} __packed __aligned(4); + +/* + * This function check @resource is owned by current partition or not + * + * @param[in] ipc IPC handle + * @param[in] resource resource the control is associated with + * + * @return Returns 0 for not owned and 1 for owned. + */ +bool imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource) +{ + struct imx_sc_msg_rm_rsrc_owned msg; + struct imx_sc_rpc_msg *hdr = &msg.hdr; + + hdr->ver = IMX_SC_RPC_VERSION; + hdr->svc = IMX_SC_RPC_SVC_RM; + hdr->func = IMX_SC_RM_FUNC_IS_RESOURCE_OWNED; + hdr->size = 2; + + msg.resource = resource; + + /* + * SCU firmware only returns value 0 or 1 + * for resource owned check which means not owned or owned. + * So it is always successful. + */ + imx_scu_call_rpc(ipc, &msg, true); + + return hdr->func; +} +EXPORT_SYMBOL(imx_sc_rm_is_resource_owned); diff --git a/include/linux/firmware/imx/sci.h b/include/linux/firmware/imx/sci.h index 3fa418a4ca67..3c459f54a88f 100644 --- a/include/linux/firmware/imx/sci.h +++ b/include/linux/firmware/imx/sci.h @@ -14,6 +14,7 @@ #include #include +#include int imx_scu_enable_general_irq_channel(struct device *dev); int imx_scu_irq_register_notifier(struct notifier_block *nb); diff --git a/include/linux/firmware/imx/svc/rm.h b/include/linux/firmware/imx/svc/rm.h new file mode 100644 index 000000000000..456b6a59d29b --- /dev/null +++ b/include/linux/firmware/imx/svc/rm.h @@ -0,0 +1,69 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (C) 2016 Freescale Semiconductor, Inc. + * Copyright 2017-2020 NXP + * + * Header file containing the public API for the System Controller (SC) + * Resource Management (RM) function. This includes functions for + * partitioning resources, pads, and memory regions. + * + * RM_SVC (SVC) Resource Management Service + * + * Module for the Resource Management (RM) service. + */ + +#ifndef _SC_RM_API_H +#define _SC_RM_API_H + +#include + +/* + * This type is used to indicate RPC RM function calls. + */ +enum imx_sc_rm_func { + IMX_SC_RM_FUNC_UNKNOWN = 0, + IMX_SC_RM_FUNC_PARTITION_ALLOC = 1, + IMX_SC_RM_FUNC_SET_CONFIDENTIAL = 31, + IMX_SC_RM_FUNC_PARTITION_FREE = 2, + IMX_SC_RM_FUNC_GET_DID = 26, + IMX_SC_RM_FUNC_PARTITION_STATIC = 3, + IMX_SC_RM_FUNC_PARTITION_LOCK = 4, + IMX_SC_RM_FUNC_GET_PARTITION = 5, + IMX_SC_RM_FUNC_SET_PARENT = 6, + IMX_SC_RM_FUNC_MOVE_ALL = 7, + IMX_SC_RM_FUNC_ASSIGN_RESOURCE = 8, + IMX_SC_RM_FUNC_SET_RESOURCE_MOVABLE = 9, + IMX_SC_RM_FUNC_SET_SUBSYS_RSRC_MOVABLE = 28, + IMX_SC_RM_FUNC_SET_MASTER_ATTRIBUTES = 10, + IMX_SC_RM_FUNC_SET_MASTER_SID = 11, + IMX_SC_RM_FUNC_SET_PERIPHERAL_PERMISSIONS = 12, + IMX_SC_RM_FUNC_IS_RESOURCE_OWNED = 13, + IMX_SC_RM_FUNC_GET_RESOURCE_OWNER = 33, + IMX_SC_RM_FUNC_IS_RESOURCE_MASTER = 14, + IMX_SC_RM_FUNC_IS_RESOURCE_PERIPHERAL = 15, + IMX_SC_RM_FUNC_GET_RESOURCE_INFO = 16, + IMX_SC_RM_FUNC_MEMREG_ALLOC = 17, + IMX_SC_RM_FUNC_MEMREG_SPLIT = 29, + IMX_SC_RM_FUNC_MEMREG_FRAG = 32, + IMX_SC_RM_FUNC_MEMREG_FREE = 18, + IMX_SC_RM_FUNC_FIND_MEMREG = 30, + IMX_SC_RM_FUNC_ASSIGN_MEMREG = 19, + IMX_SC_RM_FUNC_SET_MEMREG_PERMISSIONS = 20, + IMX_SC_RM_FUNC_IS_MEMREG_OWNED = 21, + IMX_SC_RM_FUNC_GET_MEMREG_INFO = 22, + IMX_SC_RM_FUNC_ASSIGN_PAD = 23, + IMX_SC_RM_FUNC_SET_PAD_MOVABLE = 24, + IMX_SC_RM_FUNC_IS_PAD_OWNED = 25, + IMX_SC_RM_FUNC_DUMP = 27, +}; + +#if IS_ENABLED(CONFIG_IMX_SCU) +bool imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource); +#else +static inline bool +imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource) +{ + return true; +} +#endif +#endif From patchwork Fri Jun 5 01:59:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 11588889 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 361B31391 for ; Fri, 5 Jun 2020 02:11:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 0905A20738 for ; Fri, 5 Jun 2020 02:11:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fapcSd6e"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="ax2Rzb74" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0905A20738 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=iI3m1hDOca4CiryQSFUzUoxkySjqziVMAmjHC6AocDM=; b=fapcSd6eueyKQ+ 9wxewpYJL7J533VXYetCyHzkV+RoBWE7jRdEWcCzBi+/CI+hw9oQ8VYdaHSSN4B83K25gMYf9aNO2 Nd2yVIBe6+vYzP8tfFP9HSYKkgKeoCteYEVENsfzr0Ew6olNd8GGf9qQeYcgMBVrvLcmDjIu5rxiG OBbxBIDpwy5GHt5NCcx9y2kif+NGXtDBwt5gEcRDKdfZqyKMAmPNoMpwKqYxgyeaVqgQryzm61aVl SJ+oO+yjsG+50imH1MYE/VLff8l5+HdogNP3o/TrUhIjx4pgP1JY3Za/fK84M0aD6ZByN5LBS9uNX F5At/32Jabm+nq5VBGMQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jh1pH-00047L-Eo; Fri, 05 Jun 2020 02:11:19 +0000 Received: from mail-vi1eur05on2045.outbound.protection.outlook.com ([40.107.21.45] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jh1om-0003ap-9H for linux-arm-kernel@lists.infradead.org; Fri, 05 Jun 2020 02:10:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=POXDS+Cg0PIg9P9yJ9SgCYudsqaxeOoxARRNGhPvAEXa6aNH4VAE7nx6tymls8TEMcrTOYXrdg4CMSaNxQw0P62N9SpWzZiHOqOH8EXtcsssuUh8Hj/edKkNah8EZBy2mRZzQhakZzPlWOs5LWkYXCnkwl3lDvsJLLJ6onhscRxuJyhhlVLACVfuD9kSLcpsTE+uEKKn79+w2QKiFLMA7KPemIXw2128//dFnDnY2p7L+5kjOG5a8m0yCX5avjbGgXxLnlQGHz76aY4SkNF7vEKrpJ/x0fBVyYm6NL2IDViHocccBtx6LRXG9NdvpKSO/m8WBOHTR3wUNhe2vCVVGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kTNMJKnmzYPf2aJxxbbqOyDbOxZ83LKwA9t9cMSoDrc=; b=AT+IzNx5vUUUgkFAMFJucgxLGyyJYpBOPU7SASXBekAsZ69QhrAePXko79miCJU0USLa/4Z4eDNzid0we8H7C+iO70Fs/Iq/euUyz0Jd5wqu4Tg+TTZmghclsmoSbijtgihoQwreHXPXvDYiLF3lZ5sUsPMJG0tkVqLytrHtCb3iJhGz9OztRuwtyIZm8ce3oOEe0toZPOFq86afAlHnyb61C7N+eBlx/zjNdWpICaZkvao3MIksZxdHPyrNEq4+UFvgHyo19tHFmaPq1y7qdzXn5Fyf6CfjbjbvP1HIn71awBDbxMQk3IQBzYZTZybFQcoOMO3MwXEcJveTGDfGcA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kTNMJKnmzYPf2aJxxbbqOyDbOxZ83LKwA9t9cMSoDrc=; b=ax2Rzb74CRGG9d5pF0pFsSi4QvrUETB2o6CQKcTwNK0pz0lnqLYwyzDkhCjMcTkfaDXiPUlP/WaxT1t7X5r8ybDBAEBXb7vqW3J6W3t6ObqpWzfjvBE0IkRdrrEe9ON4ESuHYbqbtqBu2/0eymVk1+IYvu83+76elDJ24Kdt6nc= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR0402MB2696.eurprd04.prod.outlook.com (2603:10a6:4:a1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Fri, 5 Jun 2020 02:10:46 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871%6]) with mapi id 15.20.3066.018; Fri, 5 Jun 2020 02:10:46 +0000 From: peng.fan@nxp.com To: shawnguo@kernel.org, s.hauer@pengutronix.de, aisheng.dong@nxp.com Subject: [PATCH V3 3/3] firmware: imx: scu-pd: add more cm4 resources Date: Fri, 5 Jun 2020 09:59:32 +0800 Message-Id: <1591322372-3793-4-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591322372-3793-1-git-send-email-peng.fan@nxp.com> References: <1591322372-3793-1-git-send-email-peng.fan@nxp.com> X-ClientProxiedBy: SGAP274CA0014.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::26) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SGAP274CA0014.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3066.18 via Frontend Transport; Fri, 5 Jun 2020 02:10:41 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f79eaed5-4b36-47da-c4ea-08d808f5a865 X-MS-TrafficTypeDiagnostic: DB6PR0402MB2696: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:364; X-Forefront-PRVS: 0425A67DEF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NrGuVoncW1u9tnGuSHmL3wFuHKr8sM35Ej7M/azG8faU5QBEjL99R6g+5j1DEXO4givrCOiEz6VSkheyRPj41OA633qdwWWz5nRiFoXMBu/Nz679T2VCUtboeiCxC4dqVWhkiwP/1a+sFGWuN8cIYoIReVqvgsJ1z9bY0l0kvrx9z0fLFrct8x1ZiEN+jIq0wsHL2cuADAb7Bw/0GDb/n1h/Ck68c2U3HswAzmTKUlY1tpZGrBjcjdD8qnqBPV4lwl5pXT411KWLGqOlo4lO0qtIvynDM7hHqMDUdZFixoo3HINcUVRExpyLLFzExuUIk3TSRRw0p454AeX8HOv79jPkkn4XGWs6Ws1wClw+4jqPiysw13w1iYskcJFZU8kl X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(376002)(136003)(39860400002)(396003)(366004)(86362001)(83380400001)(6506007)(52116002)(478600001)(66556008)(66946007)(8676002)(9686003)(66476007)(6512007)(8936002)(2906002)(186003)(36756003)(2616005)(6486002)(956004)(4326008)(69590400007)(16526019)(6666004)(26005)(5660300002)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: CHKyqFLh6VGa8efsS7qiLWV9x3qY1ehlZtc9Sq9e1o2r+W7Nd/MP+7cRw3VnJGZWblSrf0jKM/t+gHQ9FRQqvZRHsjnz6vASz1GfUOa7yBgPK5X1LX0bpOGuQYWjgRMVHJ3Z3Fjj0Bfnjalvsq0BEkvtqKzOg8mOI8WGxTcv6PfzaC6bHERW18iKB5YuLltxOjVMsLXqoGE72qa1N2pUqy5Dtc4mF9/ZCooZtTuMHOva1WEZUD2WOxYZzYdc2e8yRsAHIqj7os4aHPsNbZCtEpzar4REM2SinP77e/DiF7sHRTpgA+pbYKidBTng5VQH1wB5RpmghusRuBju4UpK8nbpRZtOWkKsFcbMON/HyiLe9vf5ykHNlsxQIf40ToRmoVBPVnmTFZHQWdUwL0H9WgpX0pgVCYF3GKkMT/ibiYU1CDw03cknC5NwmpQhevZCfH+l1CrroRtEMY7S4rwODnw5grv8yyQhr/TeV9+aNT1EFMNqYYDuMhx7y63AmUJ0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f79eaed5-4b36-47da-c4ea-08d808f5a865 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2020 02:10:46.0555 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: c63ZYavQYsfLWxToPVop6E+BBFA7erYoxdocm1nRcW2WJEWF8ihIFEJIax+H+tpPnHeIrx/UfrokDroGJHla8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2696 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200604_191048_442348_35F322A0 X-CRM114-Status: UNSURE ( 8.69 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.21.45 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.21.45 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , festevam@gmail.com, qiangqing.zhang@nxp.com, linux@rempel-privat.de, franck.lenormand@nxp.com, linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, leonard.crestez@nxp.com, daniel.baluta@nxp.com, linux-kernel@vger.kernel.org, linux-imx@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Peng Fan Add more cm4 resources, then linux could use cm4's i2c/lpuart and could kick cm4 core. Reviewed-by: Dong Aisheng Signed-off-by: Peng Fan --- drivers/firmware/imx/scu-pd.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c index d1b313fa7b96..af3d6d9ead28 100644 --- a/drivers/firmware/imx/scu-pd.c +++ b/drivers/firmware/imx/scu-pd.c @@ -167,8 +167,18 @@ static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { { "dc0-pll", IMX_SC_R_DC_0_PLL_0, 2, true, 0 }, /* CM40 SS */ - { "cm40_i2c", IMX_SC_R_M4_0_I2C, 1, false, 0 }, - { "cm40_intmux", IMX_SC_R_M4_0_INTMUX, 1, false, 0 }, + { "cm40-i2c", IMX_SC_R_M4_0_I2C, 1, false, 0 }, + { "cm40-intmux", IMX_SC_R_M4_0_INTMUX, 1, false, 0 }, + { "cm40-pid", IMX_SC_R_M4_0_PID0, 5, true, 0}, + { "cm40-mu-a1", IMX_SC_R_M4_0_MU_1A, 1, false, 0}, + { "cm40-lpuart", IMX_SC_R_M4_0_UART, 1, false, 0}, + + /* CM41 SS */ + { "cm41-i2c", IMX_SC_R_M4_1_I2C, 1, false, 0 }, + { "cm41-intmux", IMX_SC_R_M4_1_INTMUX, 1, false, 0 }, + { "cm41-pid", IMX_SC_R_M4_1_PID0, 5, true, 0}, + { "cm41-mu-a1", IMX_SC_R_M4_1_MU_1A, 1, false, 0}, + { "cm41-lpuart", IMX_SC_R_M4_1_UART, 1, false, 0}, }; static const struct imx_sc_pd_soc imx8qxp_scu_pd = {