From patchwork Tue Sep 25 16:36:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10614553 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 1384C14BD for ; Tue, 25 Sep 2018 16:51:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 037EF2AA8A for ; Tue, 25 Sep 2018 16:51:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC2CF2AA9F; Tue, 25 Sep 2018 16:51:49 +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 863772AA9D for ; Tue, 25 Sep 2018 16:51:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726888AbeIYXAJ (ORCPT ); Tue, 25 Sep 2018 19:00:09 -0400 Received: from mail-he1eur01on0073.outbound.protection.outlook.com ([104.47.0.73]:35520 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726436AbeIYXAJ (ORCPT ); Tue, 25 Sep 2018 19:00:09 -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=n2aKwI8hknNS1CkC2lRthEOAOgX3wZ+jZZld1EdNvUI=; b=fzLDhWYE3bulU6YTbnNaMpOEWHLNDOwDlVBfoEoiDbu6DAQRZF7DMShHAc0lS8/0JkfCn5Lbqk/oNbN9WjRnzBlkbAQXtnyaTONK1oK0y2Q8dlTv/wGDtzXV2WI/E3hfYYaAYjYIl6I73rQcJLG+EH8qWM6Y2a6mtSX68D1dv0g= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; Received: from shlinux2.ap.freescale.net (119.31.174.66) by DB7PR04MB4219.eurprd04.prod.outlook.com (2603:10a6:5:27::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.25; Tue, 25 Sep 2018 16:51:39 +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 V2 0/2] soc: imx: add scu power domain driver Date: Wed, 26 Sep 2018 00:36:29 +0800 Message-Id: <1537893391-31084-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: HK0PR03CA0047.apcprd03.prod.outlook.com (2603:1096:203:2f::35) To DB7PR04MB4219.eurprd04.prod.outlook.com (2603:10a6:5:27::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ea1c2314-d1fa-4748-d044-08d623072c9b X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB7PR04MB4219; X-Microsoft-Exchange-Di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OIf7V0PH/2no6qU1X1557KpdueQz5Ty0vnB4mvf0eoYPFWnqM6TilcC3RqV7qwQLPxQVd/lBo6V8L3VRuef7Iwb+ArYdDBonGNbdoH9OxvI7LSzQUP61VlhXsku6HoakblxwKBlg7JbTWB9yP0tOl2MAcmQMw4/NRa0fUqJ8FCgsbjSU6fcyIifsxHiLUJ9wVSUyXL5RxPRrpnWOEcSIT0D0ckTtnX0TCvgjC9OMPOFwlhfCL28tzmDdkK/CpmJQtVxinS4bgjt9bWV7ot0lx9opnvMF+tgWQXquxvhoglkcf7V864nGqOKBgyJRGMxZ/z0q6teK/l6JnaN6TJ4ycHe7lj/9fzcKQyVb5NxxVL;4:r/A/AcrKu1z8rdCt/FLGPgm+iinWSmlLF4R8uxUITuqULR98Oi+XNfch2F45oLkW18qjj+2ADKA3Wzjl/gy4yjsLqwm241xIc46WNG5Tc+bF1awuoqiZX/+WJP9xTisRtcLt9lzoEYbpNLGQkGZ4186ueDigYj7De2QOWW60yrvT4z2gEfCfrXHPXvHhu6pI9IW8u1tY/VgxQCj8NvWuCX3zT+hHNk0oFockhXE4nWkjVZcJxC6spG8416LInPf5tSqeVYr91/E7uIucHiw5zDz9ZwNt51HEYrxCt/3Uo+yLU9kp+SIc/El3O8rreC/W 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)(3231355)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149066)(150027)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051);SRVR:DB7PR04MB4219;BCL:0;PCL:0;RULEID:;SRVR:DB7PR04MB4219; X-Forefront-PRVS: 08062C429B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(136003)(396003)(346002)(376002)(366004)(39860400002)(189003)(199004)(68736007)(476003)(66066001)(105586002)(86362001)(14444005)(6666003)(486006)(7736002)(39060400002)(47776003)(106356001)(2361001)(6506007)(51416003)(36756003)(34290500001)(97736004)(16586007)(2616005)(956004)(316002)(52116002)(386003)(16526019)(8936002)(5660300001)(81156014)(50226002)(8676002)(81166006)(6512007)(6916009)(4326008)(26005)(53936002)(478600001)(6486002)(305945005)(2351001)(25786009)(2906002)(50466002)(6116002)(3846002)(48376002)(186003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB4219;H:shlinux2.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;DB7PR04MB4219;23:bxbkMNy8MlRZ+/UXESfjJrCbJ3NqgdczJ8LhsmmUEn1awHNYVb6Hn7WG5+/4+JJWiuhNZEWihNHJxvYGtDTn/f/4IeRtPlR9jzOXmNE+t2CYU/OIJx6PPXyi+WdgrZNFh/edvdIzTr1GgW1BXwpwZ5jyb2taYv4jhC5cSOysck/OSIcYclwt+ZkW5Qiic2HHBlkIw/K/VkNyFzwn18UIoDQtvNQIJvdoOwYDOUZ6Gwqu265QK2TDEV0iPByp/u9hu2OITa7FirPc44j5I4wk4iPncwhxysCi8erdt41//NtKMpNXH4OxY9UD74X2XI3Hkpy6PDmjKwKdfvHhK1zzBKIx0RgQ3NLRgRSpx9zuTGdLTTpg3tZcdsdgfIMk+mTW97jroeZlcfwC8cgxlGNKddyTnsATCBTtkHarbykuiuiiKmzFRCIRSMZkeHFFIHsIKy7vUUNSeES16SxVV6buRevmDsfCIJN6jWb6BMi4APlgbKuAZ/Mlmlhvt9l8cWRJfGYMy8GWUUomE+CGRV5+8cbhlbYSwMqB/jMW1rjUDAfifeV+c8Srhke3IBzwZ5yLaw//9H9OOJBwkdgh85IYXeSrhZgYz1fVn6G13z6H7tkB/fHqEtQtVM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/qyIBcfk3ZZa0R2Bsz1xAJ9PWzKXpXykQvkF7E+6KAOrDKjAgQprFfC0sUVKiIH5kCn4WbxXaqcR/SSUJnDRfW/7DS1jlqWFdptSrmwwl+fTyNA1wl1Kb7w3xySTK99EpB6TKVpodh86ITb3MQPg73XA0Mp90O0IHYEC6PhLCJ0UlkAE0Jy0SOeB8k2VNfbLvCiZQHC/2J1e6haIolx1LVQQf2U6H40ktPzPJhJ7HpKlmHzDLmMVuOc5lwySYgzB7FPI3YOcIog/qpGH+8Z3fj+gvULZFaNvJwJ5gzXRQ0L6S04Ryk77ocOCeneMyh2r5OC6B1WOxqBlqGS8M0uzW+G0CN578iOLCUWD+SNgcFoa7CsETwARvCDPIDhQgQ4emJ1x4CKRd3nDvfT72U8rSxGwemTGHNua3VxWf07A==;5:T7y19jrq+TpfRMq7XXQbbqvCOujoZtqZdVCoVYnOmFBKbAIjZ7ml7rL+4zn82M41boVNvVinM7UOJ/K8hXizvlK6UigS7e+vVKwDgfRp1bds6X+L2qUumyMgewsjFEcPddtzke/UDHpQxXDEtg9hK8+kvw1fIQRShhWO1WzXL+w=;7:2qqTGIRTQk1p6zKmMCc25qZ58irI44kghie4Ho1k2N5Cz8VcJsgf0y5b88ie+/npQImae2/xP/lGr0t17dLweeAkjCkKEqE+v1zCWFihoUA+ww5wcZ2HsLKtWFg7XeLnlZez+fCQVHemrpd1yGrPcUT22PTe54WEvV9DI405CvCAJFw5RTWYYFM/U5LqKn2RT9pGkcMtOzGTcTSa9fhlTgG9X5XUBT15zYQdlG0O26xIfkzt6f1DqsZaMyDzcw6o SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2018 16:51:39.9655 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ea1c2314-d1fa-4748-d044-08d623072c9b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4219 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. 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 | 175 ++++++++++++++++++++++++++++++++++++++++++ include/soc/imx/scu/sci.h | 1 + include/soc/imx/scu/svc/pm.h | 85 ++++++++++++++++++++ 5 files changed, 269 insertions(+), 1 deletion(-) create mode 100644 drivers/firmware/imx/scu-pd.c create mode 100644 include/soc/imx/scu/svc/pm.h