Message ID | 1521512644-25265-2-git-send-email-ping.bai@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 C8516602BD for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 20 Mar 2018 02:22:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6B6329187 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 20 Mar 2018 02:22:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A86B5291A5; Tue, 20 Mar 2018 02:22:34 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham 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 4D87929187 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 20 Mar 2018 02:22:34 +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=Sk4tm4SnZ9oYSWmI50hNfHcyTIvip/peMGJdJK8m7Uw=; b=X8I9Ua/nN5ZICx mVTyigG90CzAo8jDBMXO2jQJUhOpyzQWlE5hubjlNfQJgTqHtyWzHDU9HlBMpItnzR93Xay+TUQk0 vg7s3I87bzTErI8cMqzBMDV22OujtUlomp3wvxmyQCzKNPCjnuJZXfgrA+0seTSKY4reRnfFID7Mp +RQs0+8juWzL0ehLtCTuIrrVEFUuYmZWA4HgzNaESp4ytpu5xOuIOt2+POfrMQIumH7qnfVpgOZZP TeKQ4bY7wT/pDM6gFRtmHp8/3RURIqxgll0mBxOYy+BsfcB+MxJVNNsiwvOZpbVg5YINWCHL5gpMf Ld6cpEVwGnTI8L6winJw==; 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 1ey6ut-0007aP-Ix; Tue, 20 Mar 2018 02:22:23 +0000 Received: from mail-he1eur01on0054.outbound.protection.outlook.com ([104.47.0.54] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ey6uH-0007D9-QC for linux-arm-kernel@lists.infradead.org; Tue, 20 Mar 2018 02:21:47 +0000 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; bh=BO2mJ/xP9inJ1fBLWwTZ21PmU9kMLNd8YXf8Q7J19fI=; b=yLzGQbuAPukDArQTDvXIxvBUWefSmO5tyCjUhhDreMqOi/OBnqlDk07vkPMKVfo5Q8vo4GYDJ49RRG6Jmi0/9S27W9i1TSCp5CXY7hu8Sa6pTIzGJnWFQJk0Q7xoFpS99C0lEt07KMwGlkkE1ozkSFLF4qKCXIMzqD2GDiZ4Aig= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ping.bai@nxp.com; Received: from localhost.localdomain (92.121.68.129) by AM5PR04MB3106.eurprd04.prod.outlook.com (2603:10a6:206:c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Tue, 20 Mar 2018 02:21:30 +0000 From: Bai Ping <ping.bai@nxp.com> To: sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, kernel@pengutronix.de Subject: [PATCH v6 2/4] clk: imx: add new gate/gate2 wrapper funtion Date: Tue, 20 Mar 2018 10:24:02 +0800 Message-Id: <1521512644-25265-2-git-send-email-ping.bai@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521512644-25265-1-git-send-email-ping.bai@nxp.com> References: <1521512644-25265-1-git-send-email-ping.bai@nxp.com> MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: PS1PR0401CA0057.apcprd04.prod.outlook.com (2603:1096:803::25) To AM5PR04MB3106.eurprd04.prod.outlook.com (2603:10a6:206:c::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: bec68413-64d9-4e41-04e6-08d58e094df9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM5PR04MB3106; X-Microsoft-Exchange-Diagnostics: 1; AM5PR04MB3106; 3:HFJ84Ml48sO15vOX9XvJ/Hz2BvlXOOjR3euTa8q6HTC28B+gMgGJAXu5lqmeq+Ock9MwbSEtGFFEd8lwoJQcd53nOXFDO39qR/eZno6ayn+9FsM55fpo4MYKuji+ODyvKczXH2Pf8IisoOF2LbkrpW56VK3MsKT1I9iSJ2PZHLskZF+5lbJ9LVwirPtQhbwWTPRdq0i+MV9D6nvBmcQYsl+h7GaQTflwac/mhFAXD6wSHRSWBNYmOv43aWBYT1LB; 25:YTVJz7CzWCIa7gIJy4RnQZuNfDK4L1/yiAyDMVCvL3WwfiKCL5M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aPIRpB4LvQ8pHDlwtBbk; 4:7nbO7/K6g67hfkRQMQ9xWXPVh4HIfU7yiNCRyeC6K9X27FerdMVAvgAkBCeFwEJosJMyey/yGoy63EVevu1+WFJjM/8+bT3Fq9BbWrOe41iCRIMm3QOgs9w53s68kruT32kHMPdZwXzLolvaVDligthKqpovAjcMMln+t0u+Ut7Yzo47axvqqh8TBkBXbPiu9tOCYBAvQUe5xs3N6JD8zQ7b7wZeodDjffKeSeemsoOVkukAj5oSYRHFcXVtxqiKvN64PmMIG8OpD2J3FafGNhlpjAHBiw42nQpY0sN0bDNvDzlIBDlUr35uRGjBuZgg X-Microsoft-Antispam-PRVS: <AM5PR04MB3106061DE7C1CDD2E06387E687AB0@AM5PR04MB3106.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231221)(944501305)(52105095)(93006095)(93001095)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:AM5PR04MB3106; BCL:0; PCL:0; RULEID:; SRVR:AM5PR04MB3106; X-Forefront-PRVS: 061725F016 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(376002)(346002)(366004)(396003)(39380400002)(39860400002)(199004)(189003)(81156014)(4326008)(52116002)(25786009)(51416003)(53936002)(81166006)(105586002)(186003)(16526019)(478600001)(305945005)(6506007)(8676002)(6486002)(6666003)(2950100002)(2906002)(76176011)(6116002)(7736002)(106356001)(3846002)(26005)(386003)(59450400001)(36756003)(66066001)(39060400002)(8936002)(68736007)(16586007)(50466002)(48376002)(47776003)(97736004)(6512007)(86362001)(316002)(5660300001)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR04MB3106; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR04MB3106; 23:Ztb2lyfnXtP4A/6Qy9Q94uSy7VZ8EsmXtrxoGZ4XW?= =?us-ascii?Q?HmAd6K9giu9x5/IL2EAy+Mk0xzujT5EB/mAxk0iLsbKwwFTq/rc6lFZK3jcF?= =?us-ascii?Q?oUT5ZN8bf+p92mxfHNNJmmYi0wCGK0Nd2QRsjvpljY3JaCJ5oujZiYuiLjZK?= =?us-ascii?Q?8O1ZdeiFomrxrseuJVD7wwAw/wlP4PCPrrUvAuVvyZ6XrRYoatcwXy4l26MG?= =?us-ascii?Q?nRMutBkYCG8gH9AKeogoxkc1jqamOlgRadlcPB5oWzMQpsaxY956TtMznj/h?= =?us-ascii?Q?fhwfxbr4M/ehbXYSnLNS8GkLpwc11u7mUrDPov1Z1UEIPmW6qjIQuB2/HWXu?= =?us-ascii?Q?pcV2HTwPquiNxHZ/ra5CUn1qaAeLEQdYOYKdjvf/t6PF6DO36aqqOMjz5V8/?= =?us-ascii?Q?qLwNt77YTDf4aG3RE4V/odp649ZHQvv5B2lLy1X0a9BsWqBrZ/PtlwE4e7s6?= =?us-ascii?Q?GKqZ0O+T0CfA/42goflCznQtn40dN0xSTU/EiJ8SinBOCdOnjOliV9KpvZAK?= =?us-ascii?Q?9ABy0ZlzfWwXKK4GfMJw944btdhg6wR/aphEfxV56WELAOAf9LZFLtowqM5Q?= =?us-ascii?Q?AIfot6oOSPE8zJ+D3zCdFqxQ7/yb6Vz7pwjgFhMiXhjog/CK94z0zQWNqThF?= =?us-ascii?Q?q9gQwsywchpyNMSa3079m9WlUoXNcfBNrVKdq/K9fKhuXyMKypZ3p9FY2esg?= =?us-ascii?Q?sEATHwP4aYo9Oc3SM/CqNRJ6G7DnYX4HxR7wh+y7VVHmC0s1nTBXX5We/B1O?= =?us-ascii?Q?6dvEFzCmSxfVeH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d9jQQ3pFoXe4eLNzFbTUeUzXfFJk3u9Y=; 5:HxsvfVeyZT7Aur/tWg4FadRpoA1hQddruk7Im73xnwzc3H8UjrRvCblqdmJ2QSzC5515n08KAo8gv3QFI761xHF591FYHbrX/0vusv2tJGj8wnh6q15+n3sWtbDMkpAl8JuozDRXjHC1OrscWkp4MspRs/5YE3pkiu72AVZhHNs=; 24:4OnRTxBOf+p2p6BNGkpVzPBGPfbntYI5RzDeAPw5PXlx+Ua6AMILmyqi758RAAuCe+gSETNZh8G3XE01wbTzSTBM//LWWx7KYAaYPXA6ndo=; 7:XF8YD8d3dPDfwLmxNWV7+aIILPCP4G36yO+CtxwSOxcZwT71IjUIOlOE0iuPiZl6hIp+8a+XS8lO51i51R1xWk6GN40NpviKbUKkOiy0yjUOggpdpXZz1khXPuhRX0lBlQZH6WfSvRBizEUFffUnzR+MMM5f1XsQzjBfzZZ5rdUYWQAVmwFqXhzYXgGjSfrytK8fjESDuQpg00itOTGU7UBzuSARvjYGlZNRF3nB4jilR0ojdkJ4KTX1gjFQHRLB SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2018 02:21:30.0247 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bec68413-64d9-4e41-04e6-08d58e094df9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR04MB3106 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180319_192145_869404_0C97DC61 X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: aisheng.dong@nxp.com, linux-imx@nxp.com, jacky.baip@gmail.com, fabio.estevam@nxp.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Quoting Bai Ping (2018-03-19 19:24:02) > Add new gate/gate2 wrapper function to register clocks with optional flags. > > Signed-off-by: Bai Ping <ping.bai@nxp.com> > Acked-by: Dong Aisheng <aisheng.dong@nxp.com> > --- Applied to clk-next
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index d69c4bb..8076ec0 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -123,6 +123,13 @@ static inline struct clk *imx_clk_gate(const char *name, const char *parent, shift, 0, &imx_ccm_lock); } +static inline struct clk *imx_clk_gate_flags(const char *name, const char *parent, + void __iomem *reg, u8 shift, unsigned long flags) +{ + return clk_register_gate(NULL, name, parent, flags | CLK_SET_RATE_PARENT, reg, + shift, 0, &imx_ccm_lock); +} + static inline struct clk *imx_clk_gate_dis(const char *name, const char *parent, void __iomem *reg, u8 shift) { @@ -137,6 +144,13 @@ static inline struct clk *imx_clk_gate2(const char *name, const char *parent, shift, 0x3, 0, &imx_ccm_lock, NULL); } +static inline struct clk *imx_clk_gate2_flags(const char *name, const char *parent, + void __iomem *reg, u8 shift, unsigned long flags) +{ + return clk_register_gate2(NULL, name, parent, flags | CLK_SET_RATE_PARENT, reg, + shift, 0x3, 0, &imx_ccm_lock, NULL); +} + static inline struct clk *imx_clk_gate2_shared(const char *name, const char *parent, void __iomem *reg, u8 shift, unsigned int *share_count)