From patchwork Wed Apr 21 10:14:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12215865 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,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 45108C433ED for ; Wed, 21 Apr 2021 10:15:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 143896143B for ; Wed, 21 Apr 2021 10:15:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239221AbhDUKQY (ORCPT ); Wed, 21 Apr 2021 06:16:24 -0400 Received: from mail-db8eur05on2044.outbound.protection.outlook.com ([40.107.20.44]:12162 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239172AbhDUKQP (ORCPT ); Wed, 21 Apr 2021 06:16:15 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DcAtX8Gc7zvzP9JdzoXr47vnVA8QajuRTlTFYc5tNa6JnbHhCc8RH/IEqPvtwPyrnMiJiPR9hw4UBTsj43RnKBjze8yCUuCuz6cGP/JQRY7JdY5CaKyRuye/OhyUklE8K1ZLedaHjqCxp3z/XXQDu5172Vr7Q8giMb/f5205OMCs8H4xE2LUeMnEowGR/+hiVwY3MF8eK1sHHiuX52xiHgRzJLLc7wr1368MOzncyvII6GQcvwb7qLLq/j84IbBs0p8chLF8Mctzb1Qm15Yk2NVcONCJN7uwDqWensZPP4Im6ExOY28lenNnC3ly2nqfFfMfKsJFhTxq4nFtWSQq+g== 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=UQGrPr42DgKzvHRGhCEwcNIzY2a0dTfqwSBO8fIfglE=; b=m8rPiR4kbUG8QIRPixL6smTzD48W3qgL7ZUBL/Xk/LiEq8M4/Kis9p98I1y6TessRdMh2HhuQqFMhAgGZ0yw9PmYHIvbczKDdi8uY1fffTTYd6ijnYEtpD6S0DMTk1RoUVQiZJlLzbCaESUWwywVyvPt3B670EkreGpb4Rj4JWszJoTle9MHYq3sPECb6FPWc/g+6CLRRGNCEP1FKQ1Q4HewoaDqsV+uEQEGgauSpUoWd2/L3sDvkVl5K8jlIVXtbFA67pxgxgDToYyoKtWOYmWJWsT0sDaSMvmK3xLanqCrLlFxub9Ggt6cB03zFhljOILE9D+wx7uq7+nha/ZouA== 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=UQGrPr42DgKzvHRGhCEwcNIzY2a0dTfqwSBO8fIfglE=; b=YA2wH5Wc0GoYF/b3KcF6n78dYoFgmWn0YQOj2hkzGk3lm91VormoDZLfzjk1hcWYgdWjHQ7j0cObMlve9Dt8uDMc/l/FptEXX9J+9Ek6txgTC/x00pu1nlQRaBQ9f4AuMTh0ISslNuNLG0JOmL1LHYGFCj7k9xsQ4X9ItQ3P9IU= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) by AS8PR04MB7687.eurprd04.prod.outlook.com (2603:10a6:20b:291::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.21; Wed, 21 Apr 2021 10:15:40 +0000 Received: from AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b]) by AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b%2]) with mapi id 15.20.4042.024; Wed, 21 Apr 2021 10:15:40 +0000 From: Dong Aisheng To: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dongas86@gmail.com, kernel@pengutronix.de, shawnguo@kernel.org, linux-imx@nxp.com, ulf.hansson@linaro.org, abel.vesa@nxp.com, Dong Aisheng Subject: [PATCH 1/3] firmware: imx: pd: fix img-jpegdec pd names Date: Wed, 21 Apr 2021 18:14:30 +0800 Message-Id: <20210421101432.2043310-1-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0213.apcprd02.prod.outlook.com (2603:1096:201:20::25) To AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by HK2PR02CA0213.apcprd02.prod.outlook.com (2603:1096:201:20::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16 via Frontend Transport; Wed, 21 Apr 2021 10:15:37 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a9ebc99d-829c-410b-0aa5-08d904ae6a07 X-MS-TrafficTypeDiagnostic: AS8PR04MB7687: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:93; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aU2bu45O9YQXoF7z6XfIgdx4KJYUDbOpRbEpIuI08PxoSjGkSOIfqZU07L3Ma8T5g83tH3qyMssWyE/p/sYxX99YKLTU5EL/IryBM/1vn21dAE9qwJCqQSWKz3DgEME5ZOWX9FoQFQ4Zx/GDuexMNzf1vBHREGFYq1osrdoNfhc+dp/jt5YP0LekQAlUKQcbwjQ3txik/jKHOxdPBwbzazEmz4w7E9sAa8R/gVEN7QCiMOVp+mnLBW905TZzEgrMlB+9QdNRuP8GD8ds+vfANHzO42JJ4c7B43KhVFPM+gBurWCMryeCbTLbNa7gT6QmPKAgvsm3S0OPOqdcoKC1jYqR/bFyQcNgfutJTou0QfrA4QkTg8L6UIJ+ukfEpDDFkWTb4rHGw/p34Ssy1mwfsncstCJwST98dPZTQWCphUxv8J9OKrzTwvW5EHZ8BMXwuqzDRHmULig2OVzAaSFFSOQWgoVsfdi0BPFhW5sW5TYDd3ZLAiw6HUYdZFIffCjJu39u736DvnvSiF/1I4kQZz0hbptI5K6U80J+JJxBYKBhWHBhrSWIUvKQHEB0ObySF1E/bcVgOco9QJrVqVwGiaZbNat+DGv4Hq7OVlti0AhYb/HD39qbf5T06kHbR2pGZiZzXEL1ji1tUh0c6EMCuF2BcB6XzgVbXOFhkP7neN98BINn42wPMZcxW2TV0xYP X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4966.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(39860400002)(396003)(366004)(346002)(376002)(86362001)(2616005)(6506007)(26005)(66476007)(36756003)(66556008)(6666004)(478600001)(5660300002)(8936002)(66946007)(316002)(186003)(16526019)(6486002)(8676002)(4326008)(83380400001)(38350700002)(52116002)(38100700002)(1076003)(956004)(2906002)(4744005)(6512007)(69590400013);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: xtUHzQj84MLqxPCLxCKV7ux8JCamKIzBbLBb0JhYpxl7IK8WWNWExO22YbRodVQRi3PSehQyi0ihqbOqWMDPWUXEvdpLaXyiE/HYGjMX1KxESwcoN+PvtkEAdaBlEvx1mIV+28uRQKhTj2+IFCe/BC3wMC2+PkSX+d8cyMd4nuyUZ6zKTUXJQIknIVaZ7rYhb3Qr8gq72ENu6pRyj7D/DqzFxyw5SM/FJ3YOvyDY71vOIfROhD4iwjNKEW/zE48Jdi6cgkUD0QjtTl5KqmirzMEe3L4X3ju9T7cVLice0JIGaFIRqSoS26HCjPe+EKiE8ZbyDLbXSOPwfJSBa2WTwyrHZigz6w71i/o66fvVwGnhzz1tNXCW6XXE31wh9x5NSGAr7r37HArdva/KgnId3I27h06xMy3D7y15tSSOZlZXEZUzcJdLfi5/4jdd2ZZffZp6dMvdOkumcfaAMexS11ymL4lKY1ljNwwvWePmUiZvnrjAYbKrrLpBME5CYapU3kX7Wl3B9xeZs4WFbD9Y7+a2vYKEHtZ/G2cEmFbV78LwUW/8hcnyDOBqSwsbM8cnr2Q8yMN4Cy1w5YM+Z1LVAaZ+vzQD9aOzntdVuNwkgJfKPgXCSPpS0yUchDJ4Wf71tLTgneGL+ECEwKSXHA9s588cGy8riBOet9+EhZs+xdH+lgsxJD3/tPvBWEWvtyPYXfkCEV6Vt3+MVu0U+EMzBvn0P8fmhDznQrB3vN8oamViRkzTrnkl+lI2293MxM+GlEw4seap45oVkJdaFv2+dYFuVAwjRUUCgO0NYTE91hq2kfCPdDUsPW5Cb1JUhk3JjVISW9857hi0qWd60r44Lj1dotbuYBS5Dyw58uIfCU5J2Tsav/VnU9GhxkxVeh0NTN5UxMdL4sGpha9+ycCt5GS2mADmfwfsFDYAKafPHUW2E/UsZeQ5N074TQ7HHD2Tspf3kamSE9vvHN9H6xvFV1T6zLJz1j6Ly7231/xWKfv1TDCrtbyHBTQCUw4aDGhBRKlhbn5IAu/TLxK/Fq8Xjjl49domfNk01TdV9KsN24Y7rv5e5vm6685y2XGAQSYdIReUHd8KfJEoV09pqrM+W7As99jwqU5LVHDxjIgv/VT/J8OnRJoMI42zD8LREDo8hqXRU55yfNLAC0q7SiQ4hJj43wdwInQwTCttSoWSX0O+cV31h2qRGA08fDAKThP/QzhPy1dItYysw8KM+KOMZ1sXS6eChKAxEM2ouJ3q5XlDu/GLmV/ozoP9wm5pKs9sHsg8vbhvEk7foerS1zHR8gWvbeI9f+56hrg7QM6VJb4o4b/Aa/hUNmtqeG6nclQr X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9ebc99d-829c-410b-0aa5-08d904ae6a07 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4966.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 10:15:40.2940 (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: 8BeHULQfUfZxCjnSclRJNIwuOnqkP2gFkBYHhqZe5vVHIdLIuuVnKg2AvCjIiTFHJf0lchy3y1csvEoJ3XfbIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7687 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Changed as follows to align with HW better: img-jpegdec-s00 -> img-jpegdec-s0 img-jpegdec-s01 -> img-jpegdec-s1 Signed-off-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 ff6569c4a53b..a7589cc5ac23 100644 --- a/drivers/firmware/imx/scu-pd.c +++ b/drivers/firmware/imx/scu-pd.c @@ -198,9 +198,9 @@ static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { /* IMAGE SS */ { "img-jpegdec-mp", IMX_SC_R_MJPEG_DEC_MP, 1, false, 0 }, - { "img-jpegdec-s0", IMX_SC_R_MJPEG_DEC_S0, 4, true, 0 }, + { "img-jpegdec-s", IMX_SC_R_MJPEG_DEC_S0, 4, true, 0 }, { "img-jpegenc-mp", IMX_SC_R_MJPEG_ENC_MP, 1, false, 0 }, - { "img-jpegenc-s0", IMX_SC_R_MJPEG_ENC_S0, 4, true, 0 }, + { "img-jpegenc-s", IMX_SC_R_MJPEG_ENC_S0, 4, true, 0 }, }; static const struct imx_sc_pd_soc imx8qxp_scu_pd = { From patchwork Wed Apr 21 10:14:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12215867 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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=-15.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,UNWANTED_LANGUAGE_BODY,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 99430C433B4 for ; Wed, 21 Apr 2021 10:15:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 63FBB6143B for ; Wed, 21 Apr 2021 10:15:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238607AbhDUKQ2 (ORCPT ); Wed, 21 Apr 2021 06:16:28 -0400 Received: from mail-db8eur05on2044.outbound.protection.outlook.com ([40.107.20.44]:12162 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239220AbhDUKQY (ORCPT ); Wed, 21 Apr 2021 06:16:24 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JCTrgVtw4v4/Uu3Mh6NmgyONkVuAiDDOHWVS8FzmqZLXT2hXnnJvW5gQXpmnaM066VSIp/1STlA5YipL1yvpyHgN9aG4EqmwyodmwuOM8qrsDaMQm0zvTIndUR/KY78xRyTZ5C0Te3Msbq0W3/0ezqeztyX8e29WvV/6ytYpnHQaRp+IbHxkLVHzrpQcTr2RoswWd12OP4NTzCVGQucn+x/bLbkQFLNwRVCzBDYvRdqdufp7xEC4OLYn0mGP+N8P9a3W126LoZfqYk94YEel445Z4LfjxqE/017J1wS3auLAuvOdEB8gsJaDpUWliAF/g3cFd7rPAanvUeRqwCi4zg== 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=bZuSHxbI6/0JSTEohDZsBqCcyIu5wyeP7JGQp7zCsJ0=; b=E6ylUHfAS8eDIXik27u3vz9FfOMavgK7qAmWU0YG5JtHmMEXdHmQkT6Zh5mXa6TipStx3GPFyZyRDO6IbuhHPqFvuXD2qvclw95Tualy8xrYsRKDBt8uphgYwp/qqxc1JjlalN41DfRjpecbesEYcCbV14Eju6wOOQahVfKKnYwQcEIrq32avtU8IwfhE2tttcq3AZqqYhlFGbuwg6m7QGN2mVJQ7XYVEVkMEvBHQEuIE2303RVlg4PAA8TlO3xMmodF2URdd6E5l0Ax87h5zw/MgCTYMP8g+3GW+ubusWaMhuMv68lp7HM4fSfa5127RsFLREVYat2O0O4VQ0Jv4w== 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=bZuSHxbI6/0JSTEohDZsBqCcyIu5wyeP7JGQp7zCsJ0=; b=htHVN8xmlqLgBWyr7nSRSYUTHNZB6NcT08HQcYVvLpvPbWn6HUikk/DcIeOlgQ3s32SePTA/sZ20C91jagv3Qku7oZPGUyo1TTOZ/aW3hT1d6TqEMNfKvzXy1yi570y3bJVqH9xJDfnCS0tmrZ43ItSZHBjK+cJXJFE/0jEz5jA= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) by AS8PR04MB7687.eurprd04.prod.outlook.com (2603:10a6:20b:291::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.21; Wed, 21 Apr 2021 10:15:43 +0000 Received: from AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b]) by AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b%2]) with mapi id 15.20.4042.024; Wed, 21 Apr 2021 10:15:43 +0000 From: Dong Aisheng To: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dongas86@gmail.com, kernel@pengutronix.de, shawnguo@kernel.org, linux-imx@nxp.com, ulf.hansson@linaro.org, abel.vesa@nxp.com, Dong Aisheng Subject: [PATCH 2/3] firmware: imx: pd: add missing power domains Date: Wed, 21 Apr 2021 18:14:31 +0800 Message-Id: <20210421101432.2043310-2-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210421101432.2043310-1-aisheng.dong@nxp.com> References: <20210421101432.2043310-1-aisheng.dong@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0213.apcprd02.prod.outlook.com (2603:1096:201:20::25) To AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by HK2PR02CA0213.apcprd02.prod.outlook.com (2603:1096:201:20::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16 via Frontend Transport; Wed, 21 Apr 2021 10:15:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 55598049-6af3-451a-60c5-08d904ae6bf4 X-MS-TrafficTypeDiagnostic: AS8PR04MB7687: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:71; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +cxqbnLptfms27EWd8CAUSWObzwSG8sMp3Y02gpbJ7cfTgH0wNM8/6cKna1slWyY/onrHuMDC27i3diH5Qg002rag3+5OeozWLA+SNlNn10H9Af/z2Bp/+gLYwhe9JMyHUulBuQJZXTECJoRY0ngbEw10wQh6fxTXLQzxvmXG4v9foMZoNAbJCRRUPogG+CS8fsmy4OKZhmy8Ba85KG5sRL/YC0SQEICB1s+LewN4zkA4I8UWBa4PXmdJU7zOSZl/zyXlHdgXpkIsfJsXb3g8QKW3f7uK4wBHiQLsNYPleh2ysIl3r0QGovj2ckW8AAcTHB8zlD+vnucKNWut7RmerNiIdlLHqFSKtCS2UMfD/sdVWA1cxzh6SvSB8ZLqHzYz4NhVwx2O4GcERICSPHxpfuhBOrMqrCH2nXclftWv8xmwGyDGdCD3zu7KDZY+M5Ne9qGXG+ByfJcNZ71EVtRFlh1oFl1mfZ2wcdBtZ31saCfkF4b+KD/MrnBd4jDx3mTqAE9dqmQOhp2AEHE5wqoMpHswEunh1D2F/EF2chczG+ee8CE2NXmInTjb6MExwZZSvGop+i3zBknmW08jpWnHaXEW2GbSuZM3CS5RZx3EONscVxd2rF/p3Bfu455lX1Ws0knIYFdeAZR2SBrkjmHlfUaVYTUDZpM6idVlQa78xTCSsAmWeqluKuQz0FaX0WN X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4966.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(39860400002)(396003)(366004)(346002)(376002)(86362001)(2616005)(6506007)(26005)(66476007)(36756003)(66556008)(6666004)(478600001)(5660300002)(8936002)(66946007)(316002)(186003)(16526019)(6486002)(8676002)(4326008)(83380400001)(38350700002)(52116002)(38100700002)(1076003)(956004)(2906002)(6512007)(69590400013);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: UloRp7SJMfUofHTM0OXgoe9FvfFRf3rwvEsnOGo4bbJ7YsB+MnpVRs0F3DTVwWvjjRNOiHHJ8Ho5+4Xeno60IcdI3fXUR9Y5a6eKSGiDnYsenT/cngOrjUqR0z/wHL6mHJS4JTSa+FIx2rw7gVrJqg799idgVzPi3yY8s52oUuLPuHJWf/5EoheMmBUNpdSNOyUqGQ719H+R1JKmrorfmC0dLCOMTbx9TXiwJi/PWLCBvkc+PLariJE9hqXHivF7JVCMiUQKX2JhbbNbiTFmXJefiE5caZDxngfk+DT5UgBBI5MAVxVqR9JiAbv6HgkOTp/eA/EdfFDvCj5YTnSQtMR6CenaDg8CzQmMcknu0fB+vb3S61IiQKXb1Oxu53pNBdMfIrMJ+RzvdGiWlqh6WzxN7I/5Y6jVOtmwho24fKLaUqCpM9xd7J3nS+9usU8SsoW6JsiWFtlIisZwSyqqCghP6xALIBVwYijEjn7Y6aU+aKJalSTE175KXZcpE7tZ7YXPAxYvssR5Qb3RX058OY7JqGdji7HqF12rzHzXEtOzj4Db4QF4DVMECmTyDWLemTKXgjxQ5HbCZ2eqmJPI4QqTow9i5dDuCUBcCdeESoCjS/6UiqXUvev5wjf0iV0Tg4IY8+BNfYXuZkiTb1tnXUlgtalGqSYCPBsA7YJEusoJD6rcp0ZGQh0rte9PnYPzQmPkDdLcSrfukJF8Ht1oY8+E0p5O8Q7+mEisMOXr/Nl7qoCCv7PFgTBVMrftGIvf31LOrGUQL3YPFBaLe/Aq7rNHsvTqwm0EjxOuJhdEJBOPPlXqdq8HGY60DcmTokxlmv/mJUAPD0wYE9wCZuHkFy+KccOfZmcGN75joZqI3sU4wua9zFxDhTjQP0VSGCMk4UsTOOGDgKXWRkJLUVWs14IGHUJ6iQbMcn7H9P8K30YJ56L+rpPrZaWnr2m0v3G4U7dOuCgSD1dlRyUv63UBcitunmkv8HZ0e87LLpsGOFv/QTn6gqZB1EiqGvP06N6GlJ9joAWCyE7ckpWraNvC0KvV4HfU14797Wq+WyAsXZqOGmi+WWBEUKos71VDsBkDXSvVmHdN2Bm1lSo1jh2AiPT625K30EUBAYNiyM4XIvrUggMY/0XaGlUIg3zAtOw8yHSLq736GXE9Ym2aCx/pyukZ3Kk1/eRLpI97/l8ggylAKz2j50GkRf+aUlQTICTDETyc9X5kWBf5v1lOdMaH7tGjgHuy32C2Kjyy8/1oIeMn9Lo6PSgHmz0CYobqo4U1g5iFfOAO/HMppTMGRA5QxWiYs66PWcBQ0A4rf8dQdtAZRHxOwnyUApNyXiCR/EpR X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55598049-6af3-451a-60c5-08d904ae6bf4 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4966.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 10:15:43.3283 (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: AWmDxGvfeX6DsaBAsnJB+f0fb70WYHFvXPWEvinqCx6llzU3DVsB0/1aJLl1DB4XIGU2qEOSqS3kNJxHwirgoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7687 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org A few power domains supported by SCFW are missing. Add them for driver users. Signed-off-by: Dong Aisheng --- drivers/firmware/imx/scu-pd.c | 69 +++++++++++++++++++++++++++++++++-- 1 file changed, 66 insertions(+), 3 deletions(-) diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c index a7589cc5ac23..446a4f9f0ec9 100644 --- a/drivers/firmware/imx/scu-pd.c +++ b/drivers/firmware/imx/scu-pd.c @@ -120,12 +120,17 @@ static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { { "audio-pll1", IMX_SC_R_AUDIO_PLL_1, 1, false, 0 }, { "audio-clk-0", IMX_SC_R_AUDIO_CLK_0, 1, false, 0 }, { "audio-clk-1", IMX_SC_R_AUDIO_CLK_1, 1, false, 0 }, - { "dma0-ch", IMX_SC_R_DMA_0_CH0, 16, true, 0 }, + { "dma0-ch", IMX_SC_R_DMA_0_CH0, 32, true, 0 }, { "dma1-ch", IMX_SC_R_DMA_1_CH0, 16, true, 0 }, { "dma2-ch", IMX_SC_R_DMA_2_CH0, 5, true, 0 }, + { "dma2-ch", IMX_SC_R_DMA_2_CH5, 27, true, 5 }, + { "dma3-ch", IMX_SC_R_DMA_3_CH0, 32, true, 0 }, { "asrc0", IMX_SC_R_ASRC_0, 1, false, 0 }, { "asrc1", IMX_SC_R_ASRC_1, 1, false, 0 }, { "esai0", IMX_SC_R_ESAI_0, 1, false, 0 }, + { "esai1", IMX_SC_R_ESAI_1, 1, false, 0 }, + { "mclk-out-0", IMX_SC_R_MCLK_OUT_0, 1, false, 0 }, + { "mclk-out-1", IMX_SC_R_MCLK_OUT_1, 1, false, 0 }, { "spdif0", IMX_SC_R_SPDIF_0, 1, false, 0 }, { "spdif1", IMX_SC_R_SPDIF_1, 1, false, 0 }, { "sai", IMX_SC_R_SAI_0, 3, true, 0 }, @@ -142,11 +147,13 @@ static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { /* DMA SS */ { "can", IMX_SC_R_CAN_0, 3, true, 0 }, { "ftm", IMX_SC_R_FTM_0, 2, true, 0 }, - { "lpi2c", IMX_SC_R_I2C_0, 4, true, 0 }, + { "lpi2c", IMX_SC_R_I2C_0, 5, true, 0 }, { "adc", IMX_SC_R_ADC_0, 2, true, 0 }, { "lcd", IMX_SC_R_LCD_0, 1, true, 0 }, + { "lcd-pll", IMX_SC_R_ELCDIF_PLL, 1, true, 0 }, { "lcd0-pwm", IMX_SC_R_LCD_0_PWM_0, 1, true, 0 }, - { "lpuart", IMX_SC_R_UART_0, 4, true, 0 }, + { "lpuart", IMX_SC_R_UART_0, 5, true, 0 }, + { "sim", IMX_SC_R_EMVSIM_0, 2, true, 0 }, { "lpspi", IMX_SC_R_SPI_0, 4, true, 0 }, { "irqstr_dsp", IMX_SC_R_IRQSTR_DSP, 1, false, 0 }, @@ -155,13 +162,21 @@ static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { { "vpu-pid", IMX_SC_R_VPU_PID0, 8, true, 0 }, { "vpu-dec0", IMX_SC_R_VPU_DEC_0, 1, false, 0 }, { "vpu-enc0", IMX_SC_R_VPU_ENC_0, 1, false, 0 }, + { "vpu-enc1", IMX_SC_R_VPU_ENC_1, 1, false, 0 }, + { "vpu-mu0", IMX_SC_R_VPU_MU_0, 1, false, 0 }, + { "vpu-mu1", IMX_SC_R_VPU_MU_1, 1, false, 0 }, + { "vpu-mu2", IMX_SC_R_VPU_MU_2, 1, false, 0 }, /* GPU SS */ { "gpu0-pid", IMX_SC_R_GPU_0_PID0, 4, true, 0 }, + { "gpu1-pid", IMX_SC_R_GPU_1_PID0, 4, true, 0 }, /* HSIO SS */ + { "pcie-a", IMX_SC_R_PCIE_A, 1, false, 0 }, + { "serdes-0", IMX_SC_R_SERDES_0, 1, false, 0 }, { "pcie-b", IMX_SC_R_PCIE_B, 1, false, 0 }, { "serdes-1", IMX_SC_R_SERDES_1, 1, false, 0 }, + { "sata-0", IMX_SC_R_SATA_0, 1, false, 0 }, { "hsio-gpio", IMX_SC_R_HSIO_GPIO, 1, false, 0 }, /* MIPI SS */ @@ -175,13 +190,21 @@ static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { /* LVDS SS */ { "lvds0", IMX_SC_R_LVDS_0, 1, false, 0 }, + { "lvds0-pwm", IMX_SC_R_LVDS_0_PWM_0, 1, false, 0 }, + { "lvds0-lpi2c", IMX_SC_R_LVDS_0_I2C_0, 2, true, 0 }, { "lvds1", IMX_SC_R_LVDS_1, 1, false, 0 }, + { "lvds1-pwm", IMX_SC_R_LVDS_1_PWM_0, 1, false, 0 }, + { "lvds1-lpi2c", IMX_SC_R_LVDS_1_I2C_0, 2, true, 0 }, /* DC SS */ { "dc0", IMX_SC_R_DC_0, 1, false, 0 }, { "dc0-pll", IMX_SC_R_DC_0_PLL_0, 2, true, 0 }, { "dc0-video", IMX_SC_R_DC_0_VIDEO0, 2, true, 0 }, + { "dc1", IMX_SC_R_DC_1, 1, false, 0 }, + { "dc1-pll", IMX_SC_R_DC_1_PLL_0, 2, true, 0 }, + { "dc1-video", IMX_SC_R_DC_1_VIDEO0, 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 }, @@ -196,11 +219,51 @@ static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { { "cm41-mu-a1", IMX_SC_R_M4_1_MU_1A, 1, false, 0}, { "cm41-lpuart", IMX_SC_R_M4_1_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 }, + + /* DB SS */ + { "perf", IMX_SC_R_PERF, 1, false, 0}, + /* IMAGE SS */ { "img-jpegdec-mp", IMX_SC_R_MJPEG_DEC_MP, 1, false, 0 }, { "img-jpegdec-s", IMX_SC_R_MJPEG_DEC_S0, 4, true, 0 }, { "img-jpegenc-mp", IMX_SC_R_MJPEG_ENC_MP, 1, false, 0 }, { "img-jpegenc-s", IMX_SC_R_MJPEG_ENC_S0, 4, true, 0 }, + { "img-pdma", IMX_SC_R_ISI_CH0, 8, true, 0 }, + { "img-csi0", IMX_SC_R_CSI_0, 1, false, 0 }, + { "img-csi0-i2c0", IMX_SC_R_CSI_0_I2C_0, 1, false, 0 }, + { "img-csi0-pwm0", IMX_SC_R_CSI_0_PWM_0, 1, false, 0 }, + { "img-csi1", IMX_SC_R_CSI_1, 1, false, 0 }, + { "img-csi1-i2c0", IMX_SC_R_CSI_1_I2C_0, 1, false, 0 }, + { "img-csi1-pwm0", IMX_SC_R_CSI_1_PWM_0, 1, false, 0 }, + { "img-parallel", IMX_SC_R_PI_0, 1, false, 0 }, + { "img-parallel-i2c0", IMX_SC_R_PI_0_I2C_0, 1, false, 0 }, + { "img-parallel-pwm", IMX_SC_R_PI_0_PWM_0, 2, true, 0 }, + { "img-parallel-pll", IMX_SC_R_PI_0_PLL, 1, false, 0 }, + + /* SECO SS */ + { "seco_mu", IMX_SC_R_SECO_MU_2, 3, true, 2}, + + /* HDMI TX SS */ + { "hdmi-tx", IMX_SC_R_HDMI, 1, false, 0}, + { "hdmi-tx-i2s", IMX_SC_R_HDMI_I2S, 1, false, 0}, + { "hdmi-tx-i2c0", IMX_SC_R_HDMI_I2C_0, 1, false, 0}, + { "hdmi-tx-pll0", IMX_SC_R_HDMI_PLL_0, 1, false, 0}, + { "hdmi-tx-pll1", IMX_SC_R_HDMI_PLL_1, 1, false, 0}, + + /* HDMI RX SS */ + { "hdmi-rx", IMX_SC_R_HDMI_RX, 1, false, 0}, + { "hdmi-rx-pwm0", IMX_SC_R_HDMI_RX_PWM_0, 1, false, 0}, + { "hdmi-rx-i2c0", IMX_SC_R_HDMI_RX_I2C_0, 1, false, 0}, + { "hdmi-rx-bypass", IMX_SC_R_HDMI_RX_BYPASS, 1, false, 0}, + + /* SECURITY SS */ + { "sec-jr", IMX_SC_R_CAAM_JR2, 2, true, 2}, + + /* BOARD SS */ + { "board", IMX_SC_R_BOARD_R0, 8, true, 0}, }; static const struct imx_sc_pd_soc imx8qxp_scu_pd = { From patchwork Wed Apr 21 10:14:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12215869 X-Patchwork-Delegate: daniel.lezcano@linaro.org 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=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,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 E4D49C43460 for ; Wed, 21 Apr 2021 10:15:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B1E2061446 for ; Wed, 21 Apr 2021 10:15:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238627AbhDUKQ3 (ORCPT ); Wed, 21 Apr 2021 06:16:29 -0400 Received: from mail-db8eur05on2044.outbound.protection.outlook.com ([40.107.20.44]:12162 "EHLO EUR05-DB8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238664AbhDUKQ2 (ORCPT ); Wed, 21 Apr 2021 06:16:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bE3vs4G/XXLSSJOkxIQ+NT1VwMHWapZwl7kGg0MQwQuIE+IAxkK5N4+gVSeu6vYDnEJ0BoDEsMC/JafGhv7SZsjeE9LxCBNG1tkO4Mc/M9AP1uCCHc4CubRX0MEcLvOqgV0TfkTkUo4ez/f/ZaxZUifWJQb/oi0SCMMbxvDDR9AFa2zub4HN1ee9AfXkQydrS5++HLbkJaqj7pldye9l8G0Iwo+8o9+X3eFkBW9fHYBMhiQoKuXqKhiI2lhLJbqYCyii4DN8BV5F+yUt4cKaOnMD9VmvRAPOLrbnMnnGNSnjcvXs0GJha6L7W58k1KP+JE9rELXj/teNSkyANKaExQ== 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=aG2abqWgECduXQzuCz99Jq7p6AgL9jL4EUJcuD5FOuQ=; b=NRnf02Ou+yCX3ZWhZTLo6yNbiwqXqRKKzu6n3tX1E1UG8s/t44CifVn43/lwJYidtJ61dQzZGx3WhpijqMD5ywmetpidrpQfzPiuGcmeNcJH0pGRoCAPMCTowa8Ad3onO7SRrXRC/O/VeylssaGMsZJBFh+IkPS5uZQTdC2HFX+s5FcCfLu01NtkoT+HoatV/3zyWqi9FwdPHIyTgVkqxcpThO+7yhX25ygP/Sqm/4ohDTeP5SXV8TqBo0K/iFSfcYgKa2VZlYZk2JVocaDsbzVKIq/3pCD7bClGrE7tXMqKENog2S709KwWfovmkXnEmImFa7RBaXz0BJG+LcK4yw== 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=aG2abqWgECduXQzuCz99Jq7p6AgL9jL4EUJcuD5FOuQ=; b=Sw+uG8Yl03Y8ZGhU0cXdRsYCyfiH6yDSyGQs3yZQCIFk/5MyYVOU118QAhYhpglXfQR5N/y7bRg+PzqGDYk7dfAo6S9S5YZzyoTFWlnIvfVzWGKCMav0+KgGUb8k/JgdBKqndime05fStT7WmA0gR2FMQlSDAc6d5ueFgy9yKZ4= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) by AS8PR04MB7687.eurprd04.prod.outlook.com (2603:10a6:20b:291::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.21; Wed, 21 Apr 2021 10:15:46 +0000 Received: from AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b]) by AM6PR04MB4966.eurprd04.prod.outlook.com ([fe80::b10a:ad0:a6f5:db9b%2]) with mapi id 15.20.4042.024; Wed, 21 Apr 2021 10:15:46 +0000 From: Dong Aisheng To: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: dongas86@gmail.com, kernel@pengutronix.de, shawnguo@kernel.org, linux-imx@nxp.com, ulf.hansson@linaro.org, abel.vesa@nxp.com, Dong Aisheng Subject: [PATCH 3/3] firmware: imx: pd: make driver look more generic Date: Wed, 21 Apr 2021 18:14:32 +0800 Message-Id: <20210421101432.2043310-3-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210421101432.2043310-1-aisheng.dong@nxp.com> References: <20210421101432.2043310-1-aisheng.dong@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR02CA0213.apcprd02.prod.outlook.com (2603:1096:201:20::25) To AM6PR04MB4966.eurprd04.prod.outlook.com (2603:10a6:20b:2::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by HK2PR02CA0213.apcprd02.prod.outlook.com (2603:1096:201:20::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16 via Frontend Transport; Wed, 21 Apr 2021 10:15:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 79ed7e47-5c8b-4efd-f649-08d904ae6dbc X-MS-TrafficTypeDiagnostic: AS8PR04MB7687: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EqlMFJEy0Ox18/OKHnl+0byZocIY/3pie1bAZuTWgkCGtfQfdssu3/fFzieRugV5CmKu5KEGcJJvR5or1LyykRdXUV3zLLZ2CV1Py2BFku7pb7lU+Rndf0rQn9dK17mO5LdFg9x44kAeK/snAgpli9UVPq7mWVhK+7OS3Zi0VcY4k5y6iP7h8f6pQ2/LGq7UmeFQmet/VbylMY0rOQ7heZa23zDRDP2EVgcT7zp9VasUTX/Jsse9MO/Y8aezCqsDx2cG0C48nnvi9eGAQjcPORg/esYAE4rtqD/iIfzJAjQhsLmVYVZ2ILjx/9NaU6qCc5ljur+PMuEisgD/RQeJh1k9M7BThXsxTjNpgC2qRJeinrfPJ7S9mUoe8XssAuPNbZsDmO6djAcXvcXN10nywB9yBT8jX9zFdcidQED1KSrBC+WLw1RRj9TgvatXUwfn+a1SH0LUfap4PIs/0XvLuVAHlQ0Df2YcUOUBwRxhAM+BNuC9ubEL/oVlx9ZEKgJ7wGowu8cOE7DtLb4jyO5LAskT8ugg95loAVPrQCCYW5ZYW8mwoqvi/ex6MyozoW9kujXmd14btfV81TAZ1bWVsq3JsnGJoBvKca4HPI/7QQFuOpEoXi+RdXVMVEpkvJ5eETslG9W+hkaGQUgDCJYF79+7HrCz6QjMaFddmn7SKO7JVd7q1hQSNG0dQCBuWbXxucwf58Nf14OCEpSIukdlaQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4966.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(39860400002)(396003)(366004)(346002)(376002)(86362001)(2616005)(6506007)(26005)(66476007)(36756003)(66556008)(6666004)(478600001)(5660300002)(8936002)(66946007)(316002)(186003)(16526019)(6486002)(8676002)(4326008)(83380400001)(38350700002)(52116002)(38100700002)(1076003)(956004)(2906002)(6512007)(69590400013)(41533002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 2Wpgtnl+BEQVyG0jEE5Xaq+VaB9nBFWDzNn1dbKQowCbzd5ZRfFH6lphDJ4/vDuThGtM9bd0ZJBYsNkqv8GrFmW36UbCZ+CA/J2STaoTCmGzxXLzptKOKFqdWhA6ZZurfQjMoLXlBwj58tvuN1l7hvEOkJ2+VCbbyY7XUabQJrhMY0avsR45C/rlQ51N9Qttzj1KvvogUsUdm7Kvpm2uqMoppmeX53wrzoR+I4Isb9knbNsfhHdXfSMFyJgk1B/n/YL+25UO7NzrDWHOlrsN9bUih5vlPh8UxUJ9qRPAg2HLqf3W+Is1vTiC8UZ2gcOIFa4d/Vb1h1T7iJFQUzbLLpZIRMK+gH0Jj/ys0uMwQ3/wly8Gm83boo/SL2UtFvOw5NwTCug0r7hji4PhZ4G9T6iBpDfgvBqH8jm/O+xdlOqLXUmmYTnJk4VItuFJxyKc3pt8NnMsKKg8/VOASiRqC62kW584j4KugXFBBkmAiW1XkNbMBNsmKLcRwgKOQOa1I2oTpIXTjjFjRfO06QDGSqDU8FlC1FuDClRTVbdD+58tDOVMnBptJHK+kkKrK5OSsMczYSeKye5NZ5rsQlPTkP7bqg9lFR0QFBCXdnJAwoOXxf+cfATGnjXO5h1Tj0joPEpqrgps8eQENGlPDJlgHitCVuFX8y4ueq9AoynTWUeNM1fdOttYn5uivN6Z9TjdBnbEgVQOInrvox7aIz8qgsvX2CpS/llRq0W5/rdE/vykc7vOnpOWCUBaiSIuXR4xcQgBzQIyE9+Eqv7vLcz8bZae5kj0UwTWfEGljPJ1NaB2BozdL/qs1cxt4ajlCSWEBwiDDhywozpNxBdCYzwTi0dr6DYrrjXxVclMfUZRc+80sm+2Zm9QbxgfQ8xqz5tL0Y6DMyxfX9zktx+MFP3s6IyoxNhAaWiOomYn8oKXaDOH3LSv3FaOxx/iqGgqakhMUx2W88hbdaAlnsGvqb0D2SvrkjzNAKzsIVGwo6eM2Y89u9vuZfsofz7tdg0kSI7CFdscYjB+5NxrUxODDoFlgWPQJIaMe64s8+84QBOAa1qhMJnsN73+OSi+cAUCIdsmQNb94kTMItsevLlUFCOY7Kyyg7r0mWi0wUXP53ULv+vaAMm7/Q7N7nskJqAYuaknVYBYg3sh5shrSGNytvIh0wEwVkrPiGU1BPL0ZziQFF3SDfyRDcuahfWI2RS5sEQQPGQ2qIKkDJtbQl1/MOxMMdH6IZst6//MWyn5GkYk/QUTaHWFxpj0U3g2zjoh5o03g0B7QWaimqWZdmvQ4lWyxdcn9Ze+xneKyP0F5K+592tvTmq9SFMKUPkLTT3MBfFa X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79ed7e47-5c8b-4efd-f649-08d904ae6dbc X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4966.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 10:15:46.4285 (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: 2Rontj6Tz9TtWsmQkruckLnJAD+M1x/GuFeEy5p3lV1Nh3G64dDKsOl8++pcdkUWOLhO/PTUqUUbLfrdCYM30Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7687 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The SCU protocal is platform independent, so make the driver code as it is by dropping the soc prefix for structures. Signed-off-by: Dong Aisheng --- drivers/firmware/imx/scu-pd.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c index 446a4f9f0ec9..bdf88aed6dca 100644 --- a/drivers/firmware/imx/scu-pd.c +++ b/drivers/firmware/imx/scu-pd.c @@ -95,7 +95,7 @@ struct imx_sc_pd_soc { static int imx_con_rsrc; -static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { +static const struct imx_sc_pd_range scu_pd_ranges[] = { /* LSIO SS */ { "pwm", IMX_SC_R_PWM_0, 8, true, 0 }, { "gpio", IMX_SC_R_GPIO_0, 8, true, 0 }, @@ -266,9 +266,9 @@ static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { { "board", IMX_SC_R_BOARD_R0, 8, true, 0}, }; -static const struct imx_sc_pd_soc imx8qxp_scu_pd = { - .pd_ranges = imx8qxp_scu_pd_ranges, - .num_ranges = ARRAY_SIZE(imx8qxp_scu_pd_ranges), +static const struct imx_sc_pd_soc scu_pd = { + .pd_ranges = scu_pd_ranges, + .num_ranges = ARRAY_SIZE(scu_pd_ranges), }; static struct imx_sc_ipc *pm_ipc_handle; @@ -463,8 +463,7 @@ static int imx_sc_pd_probe(struct platform_device *pdev) } static const struct of_device_id imx_sc_pd_match[] = { - { .compatible = "fsl,imx8qxp-scu-pd", &imx8qxp_scu_pd}, - { .compatible = "fsl,scu-pd", &imx8qxp_scu_pd}, + { .compatible = "fsl,scu-pd", &scu_pd}, { /* sentinel */ } };