From patchwork Sun Oct 7 13:10:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10629629 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 40D3C13BB for ; Sun, 7 Oct 2018 13:25:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F0A129171 for ; Sun, 7 Oct 2018 13:25:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1242D29206; Sun, 7 Oct 2018 13:25:38 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A647829171 for ; Sun, 7 Oct 2018 13:25:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727339AbeJGUct (ORCPT ); Sun, 7 Oct 2018 16:32:49 -0400 Received: from mail-ve1eur01on0077.outbound.protection.outlook.com ([104.47.1.77]:4640 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726803AbeJGUct (ORCPT ); Sun, 7 Oct 2018 16:32:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=daYL7olAGkJDCXWnl9uXkVC24EFw+MJDwQDTjoXMCDA=; b=yJUmfI1x6CvGcYVkEcH2woOXqxj7eK4OssAIeDp7Or5sjT/TFcLtccWLlObWQ/KTFvV8ioGz5fo+d6/TKMidDlBat30Nd/lf7wfr2vP12j1qpaUp/dhyc19p6m4cO/3fF5WfeE1kK4r2hWe08Kwd3f9sCnJ1SZdV+sjcmsam7Ls= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; Received: from shlinux2.ap.freescale.net (119.31.174.66) by AM6PR04MB4215.eurprd04.prod.outlook.com (2603:10a6:209:4f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.18; Sun, 7 Oct 2018 13:25:27 +0000 From: Dong Aisheng To: linux-arm-kernel@lists.infradead.org Cc: dongas86@gmail.com, kernel@pengutronix.de, shawnguo@kernel.org, fabio.estevam@nxp.com, linux-imx@nxp.com, rjw@rjwysocki.net, ulf.hansson@linaro.org, khilman@kernel.org, linux-pm@vger.kernel.org, Dong Aisheng Subject: [PATCH V4 0/2] soc: imx: add scu power domain driver Date: Sun, 7 Oct 2018 21:10:05 +0800 Message-Id: <1538917807-1921-1-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0PR01CA0045.apcprd01.prod.exchangelabs.com (2603:1096:203:3e::33) To AM6PR04MB4215.eurprd04.prod.outlook.com (2603:10a6:209:4f::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e090cbb9-5c2a-407a-403d-08d62c585ac5 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR04MB4215; X-Microsoft-Exchange-Diagnostics: 1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aTyzsLmgLySLZoekr57YqBc6cCBWCErgpFSBDO3X3zaxBJ1g5NNiXsqWpMoV/C3RbGB+NAJqqcYTN26UaruJWY/Wx5P+gOEeZbgX9gbOXSA3e5/We6y8KQoaf/lSrKmVnYuAAS6BOPRauGHj4Lqqr4+rWE/i6/kcjAn9ZS7cYbCUVus28Ns3IRo1MLPrIAJT+RrEAmGwnx0h+WPhojPY57NU6LInfvnB8n69fEx1cL9tFYUFn4b/M4037qJSbxNsMLh+hMjYTHIZxO/GNt9q3bu3hSemfKOHx21JZab1r5+muV2xA4wHYm+dI4rxusN7xZRvCeeP2dE+pdJeYVANuiAnmRdnLpCNMQ;4:vpHiOUELMtoC5z2Q0sor0MBkvZkkc74pTVaoG6dFyJHxHiTRgglDXPydCqauMnmkXe6TaLqrXiCH2eLFKbgGjrQa9GiRHKRY69pfyZoCMw1F70m3CrVDIqcAWKX0M8EwyZbZ9GticMirsbYGcGuH9h6pO+I0OZoHwPHZehV8AwGpJ3Nki6nLaWInNJCiPwRXrqtSW3wMAYHA6Vctp9ss+eEpSh3VoUaaq/uyN+mXiD4oqI5g6TZuvME2MKjnhiuyNBLgi6TdXjRw6hzVfxrAgfwpp77oW6HM5Apl8rZLYlACAecWD9yAbRb1p5tKSfkh X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(269456686620040); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(201708071742011)(7699051);SRVR:AM6PR04MB4215;BCL:0;PCL:0;RULEID:;SRVR:AM6PR04MB4215; X-Forefront-PRVS: 0818724663 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39850400004)(376002)(346002)(366004)(136003)(396003)(54534003)(199004)(189003)(4326008)(16586007)(39060400002)(8936002)(8676002)(86362001)(2906002)(106356001)(50226002)(478600001)(2361001)(52116002)(51416003)(36756003)(68736007)(81166006)(2351001)(81156014)(6486002)(14444005)(105586002)(316002)(6506007)(386003)(48376002)(16526019)(186003)(97736004)(6512007)(50466002)(476003)(2616005)(956004)(53936002)(486006)(3846002)(6116002)(7736002)(305945005)(25786009)(66066001)(6666003)(6916009)(5660300001)(26005)(47776003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4215;H:shlinux2.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;AM6PR04MB4215;23:FPl///u6J2q2dCuZMl7mZ3q0PWwl9fDRxfjcHKKd81VOQyKoT3/A0yB76l5MATh3NqsLqDEVsOYzGTj5gu29zitZo7jPegPVV4vb3eL8OuxzXcWKusjdJ1v7OSy26RwwVhKqauv0bHlL/9rISfP2yB1nxQL+vyeRM0FkK32tF/z51n+L3+KajblCSqdsqu+g9miPegusEbyiDvD2blSKi4NxzwN8pvth4uNwNBG0kowpX5bkZiTwevR9wBttRsVmrViR6izJSzrPHnJq9s0BXWMr9BFKkY1q4vcTEIRb8PKRLqUFFj2YhiH5M95uu9thwlO1sy+5K+wjWCgpDA7k6bOderfIh3XmNAQ/FuM2NBFhzOrc1Lbq1pu+i+def+UtKcwk5QsIW0g5j3jeC/j8cHCeyyHyBCGyRBUiiVHjHP7Jf7k0s7deAkTPwJbNKok2zdjFGBUjTBLf3qydjNBs7yZxtjxPjM/9BICwYUTAr99YpEw6u8u6vwSdUyJ9ciCTZLaYA2nPDTvaWlKSwuXrzc07EcT9SRPkZuZfCtv00N+P6UfMiZJexCY/ZcalHes4DSDA5AqcRdg4Pec7BsBTH/v+sPx69QW+pakH5fiJEJJFxZ3QWvNSBhi34zbgUegFOT41Gw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LU9ELjJBrQHeTzCWNOJ6Wb9riRPKF3rCujARfPN0JKpu5CVtDrmclqdPSjst+qcqfD4GhFr+uvAfgtrJtiscwb+HPxyLMFNoD1z8pdpmoOQOjQnxFB5oyGy9a2blNrvSPaMqqaPiBBDV3DNMRTdG7aZ1p87kuhVIFIq5tpg6QOoUbIriiRTUjyPO1C+Mxp3QmrVqW93GFOPjnIzfEa518ile+yCp2WeBPm+pV67NFtFSzevGnwBIzZ1jHbgHDxO90u1IHqnr4xOyrE93IQd4Wu1aYyZvIjXDoDpQkesCaHzXRFZODLKtraj56eTroEQKCmc1EAWnVyi+m93SAobnrXYeUA7a6YpZwdg+yO6Lc2gapMjGMw5IQTaq4FT4zToNnUGxyAWse8hBtpembJw==;5:6SjGCfvvN0BV1qw6A4r8iSJ/Zd1aK1KejnZfKatrQJ78f9aifxl+FNfJP5Oan9voC0t0Ts5gbBg/uTtkB7VBUcecrpg7MlyQDoCEo+6sQ8PP7We46IvW/vHDaamSQREcj1Y00LYtRECBVvWK6eGSlY8gS9b64i71UNvQl3Bk3as=;7:cNMzOQiH6JFg6aKxGWQjSiV4+900eiGrXpWZsscguuJ+P+/LpBKSodyv7vahiNsdtdEJkR7tfqoq2ElZ6dzN5BXiWg7x9Sgl/zJRmabRKvAqO1xKjlvUnLpTKjyc0aoEzH7+qj9L2Nh5ohD4g0KZL0/urec1Frj3aL/X/11LxcZnWCUkYPTNJrvyDYmEe3whygMBv9P70phRZGLicxUM+2r0X2LwPSuf+0+zjEnYpoP2wG/6AH1irpSm2WIxWGSu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2018 13:25:27.8661 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e090cbb9-5c2a-407a-403d-08d62c585ac5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4215 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch set adds the scu based power domain driver. It depends on SCU driver. Change Log: v3->v4: * only scu headfile path update v2->v3: * structure and enums name update * api usage update Dong Aisheng (2): firmware: imx: add pm svc headfile firmware: imx: add SCU power domain driver drivers/firmware/imx/Kconfig | 6 ++ drivers/firmware/imx/Makefile | 3 +- drivers/firmware/imx/scu-pd.c | 167 ++++++++++++++++++++++++++++++++++++ include/linux/firmware/imx/sci.h | 1 + include/linux/firmware/imx/svc/pm.h | 85 ++++++++++++++++++ 5 files changed, 261 insertions(+), 1 deletion(-) create mode 100644 drivers/firmware/imx/scu-pd.c create mode 100644 include/linux/firmware/imx/svc/pm.h