Message ID | 1537893837-31172-10-git-send-email-aisheng.dong@nxp.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <linux-clk-owner@kernel.org> 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 6C34A14BD for <patchwork-linux-clk@patchwork.kernel.org>; Tue, 25 Sep 2018 17:00:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AD192AAC0 for <patchwork-linux-clk@patchwork.kernel.org>; Tue, 25 Sep 2018 17:00:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E9772AACF; Tue, 25 Sep 2018 17:00:00 +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 DB1CE2AAC4 for <patchwork-linux-clk@patchwork.kernel.org>; Tue, 25 Sep 2018 16:59:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727187AbeIYXIW (ORCPT <rfc822;patchwork-linux-clk@patchwork.kernel.org>); Tue, 25 Sep 2018 19:08:22 -0400 Received: from mail-eopbgr70075.outbound.protection.outlook.com ([40.107.7.75]:45688 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726322AbeIYXIW (ORCPT <rfc822;linux-clk@vger.kernel.org>); Tue, 25 Sep 2018 19:08:22 -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=XLlgjzQjTeWyQfIyeDD6ETMaEjkBoNBbh7JiLt25ehc=; b=X25DwGm958EN4BS5kEHSvZKx0MS9hu9A6cW8D84JRnj9PTn/GNBH/vpH/sSxTiIIH5MgbMJxClVDP2+ZevRDrb/8hZb8NuRts4mOqK7gk7h19b5feySIVbGsXnO0d5/T6MRDwJMRqVArSnZBVOeZd8uwP9mMpcDC/mpFSqAwS+E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; Received: from shlinux2.ap.freescale.net (119.31.174.66) by AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.22; Tue, 25 Sep 2018 16:59:31 +0000 From: Dong Aisheng <aisheng.dong@nxp.com> To: linux-clk@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, sboyd@kernel.org, mturquette@baylibre.com, shawnguo@kernel.org, fabio.estevam@nxp.com, linux-imx@nxp.com, kernel@pengutronix.de, Dong Aisheng <aisheng.dong@nxp.com> Subject: [PATCH V2 09/11] clk: imx: add common imx_clk_hw_fixed functions Date: Wed, 26 Sep 2018 00:43:55 +0800 Message-Id: <1537893837-31172-10-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1537893837-31172-1-git-send-email-aisheng.dong@nxp.com> References: <1537893837-31172-1-git-send-email-aisheng.dong@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0PR03CA0033.apcprd03.prod.outlook.com (2603:1096:203:2f::21) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f84abb6b-f603-4f4f-95a3-08d623084502 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB4211; X-Microsoft-Exchange-Diagnostics: 1;AM0PR04MB4211;3:ESlG9z4trS3t8vV0tC+tebiw983zXOdKX5gy60azZyPOJbefyTQOt4bLubJ22Asj37ht6FarApPNBEKTdzWB0dJ/Q5cHYUANs63jPiRImNmeZmH9HlwVlW5haoLFw8RDPy/QSZaPj2K7wxCk4piLicIXIAA1pnFy4imQnTtA583fXCBF4B0i10oNzYOtbSHKNc+QNDtyIrNPaklOzrpA8BU5Z4no1M7vUdcGdRFrwt0f9OpnpUHhQY2buqVAXnDM;25:ATt26k3ubQNyHz3JqqZJqIRRNkqv3s3SXMQKZBO2ZdfmEp7hX+O1sw9kyuVDcmP1jPhPMORWv6l9+UaZOP4QdqayvEgLQE22/KNTAoYj+PFThjbcAx75VWaGh16W7mcwe4ko5814wMRhNs7rURhs5hLyb3FWp3aORTXPixbLjH0KXQ6cwlySGgoHYXRELsV89tNsRKhkicZnirk4eXc4w0pYC+9AWacK3ybEAWJ/ybn+zzh1YJojvk6ne2VttWjRdDPRUTU3Any00uOBq2Ljel05UNcbpF+lzGFYmsGC5+6vG9tQs+nNIYvHpJB5xkfR4TvLd93PbaLmYdYxZyNDyA==;31:YYjT2RD4d0b7ye8jS8cJ6ged5RH92u8p/nd2/TLe424SIHZdk7ToD7aL2Nx8rG0i89oC+JVJUF9AkM9ldrsnwxG19+qpusQd6o9ckbSWtjwlJpaw/8d/gg90KyDzHfkMFApd8Lebc8qpuEpsHPIhTNEwB40auPIMbClra1DvG1C2mUM8l6+mss9SA3dSkkCYS2eGABl2XSkkaVD0eiadMEwJv6TCASe+FY0bTpkgGcQ= X-MS-TrafficTypeDiagnostic: AM0PR04MB4211: X-Microsoft-Exchange-Diagnostics: 1;AM0PR04MB4211;20:kjJompaWoGogQkBFXpKooQrB5q6VxB9xxFQi7TdHPiBOUkq7H+XgBPDavrC8grpDBShy8x/ZIQCeX3p3kSwbo1sx7Fs0MhnEOx4/l0p4EOenOnyS8znYcOb16ZP5TC5sPhEsDsBLcuKF9IjlMjA7o+u1q0YKoPTR82dqrhJQ7/ETJ/LYXj8dH2Ex9pt5mN69m1YtCgynufMxEt79zGGLTG51aTkEcGra7O/qwFax0dGNdjRt0sH3uAeB7I1eH9TYzxFXnl+Y9vgPdDwYkoh9pWrbU+gSMMkIC4Fnu/sDwfzW59mKAxWl4IO7wujPSX1FqizpJni+drLZmrE1ExZ3zGhS12IGcmPPX3pUr0bdzyNmDKA7otUxvzTRMoyzhsCvS5XJ1eJAYYbUyIn1rSq5GN73VLcX5jrfCY19If5/GHMp3nSssUG+7itPuTA8Mj9Fa91z1N1ZotUAex6xyxN1JHi5zA4KWSMA6912whFWtjeQA0jgG5DEbi0BtxSnR0pZ;4:wlAdup0o8eRWTOPTqspA86pBPZ2GXQjRvoUf6k7sFp33h3lU/gw3p8yqBq6JVrq5AxAU1xWc9aN9ifwEVulB3BjiVF4ZTc5NGTUQLkFATEQrq7uxGrS5n0WzlHmKGs9vI8dyO3igLF497cImhgOPeyMGgwM0aZ7UuyThAddpScnHT/pms07L+TzNp1bACzHGsUkoJdMLJOc22L4eiWgy9pwOW/Guz6C2xrYBF0ErpYQ8TS5TbgAKK77VCqnXFxMM8VnvNRBxh1bGvbQ5bm+MR31LbVR0igiWlC4TokZH0su3Jl+5BGUu9PagRS/5t3M9 X-Microsoft-Antispam-PRVS: <AM0PR04MB4211CA72038B1D0770A8C95580160@AM0PR04MB4211.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(149066)(150027)(6041310)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051);SRVR:AM0PR04MB4211;BCL:0;PCL:0;RULEID:;SRVR:AM0PR04MB4211; X-Forefront-PRVS: 08062C429B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(136003)(366004)(39860400002)(396003)(346002)(376002)(199004)(189003)(478600001)(6486002)(11346002)(446003)(53936002)(6512007)(68736007)(2906002)(48376002)(6116002)(316002)(3846002)(34290500001)(14444005)(106356001)(186003)(16526019)(2361001)(2351001)(26005)(305945005)(7736002)(486006)(36756003)(66066001)(4326008)(47776003)(25786009)(105586002)(6916009)(6666003)(50226002)(97736004)(81156014)(8676002)(16586007)(5660300001)(956004)(52116002)(386003)(86362001)(2616005)(476003)(76176011)(51416003)(6506007)(8936002)(50466002)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4211;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;AM0PR04MB4211;23:3tjFIYlaYPNmOof1BlcoFEz48DWcW2BtQmsOPow1K9PL23JGT8C4vpFQFC3Ik0YblfUKIkLlEenyaaiMd97mY/CDgCVhosJNpnbiwWdKhDZzDi1CKJkokcIqBSsEW/3lVl6rf4PXF1tBEWDuZkdaWH20YwDc5B2TCy5S54ONFYup0fFVXZvmaANeweAJ/P4c3oMyNdyc7S6lz2Ge5ZvA8zptFLnx0YgzaP0SRlKp3u+KJFS5lysnWv3z/+aufnAkSYYw1rZT0TeAh3cV9YZyzNh97izUw75mfGyCodh81GDZHIrR3FKPi+iVK7XMrshJvxYIhb4ewtjBhw3GvX0D0tU5tzZMGqyTiS2Npnv1NVBDzzMClnzG0dtGGMp4lpIUbbhovMe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IbMN0hWrySz1KY8SCn9JRiCzKNSl+N7uu0Lsu+Tzs09m SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2018 16:59:31.4793 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f84abb6b-f603-4f4f-95a3-08d623084502 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4211 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: <linux-clk.vger.kernel.org> X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
clk: imx: add imx8qxp clock support
|
expand
|
diff --git a/drivers/clk/imx/clk-common.h b/drivers/clk/imx/clk-common.h new file mode 100644 index 0000000..e3634a5 --- /dev/null +++ b/drivers/clk/imx/clk-common.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2018 NXP + */ + +#ifndef __IMX_CLK_COMMON_H +#define __IMX_CLK_COMMON_H + +#include <linux/clk-provider.h> + +static inline struct clk_hw *imx_clk_hw_fixed(const char *name, int rate) +{ + return clk_hw_register_fixed_rate(NULL, name, NULL, 0, rate); +} + +#endif /* __IMX_CLK_COMMON_H */ diff --git a/drivers/clk/imx/scu/clk-scu.h b/drivers/clk/imx/scu/clk-scu.h index 828700d..60c476b 100644 --- a/drivers/clk/imx/scu/clk-scu.h +++ b/drivers/clk/imx/scu/clk-scu.h @@ -11,6 +11,8 @@ #include <linux/spinlock.h> #include <soc/imx/scu/sci.h> +#include "../clk-common.h" + extern spinlock_t imx_ccm_lock; extern struct sc_ipc *ccm_ipc_handle;
This may be used by both mmio and scu clks. So let's put it into a common file. Cc: Shawn Guo <shawnguo@kernel.org> Cc: Sascha Hauer <kernel@pengutronix.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Stephen Boyd <sboyd@kernel.org> Cc: Michael Turquette <mturquette@baylibre.com> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> --- drivers/clk/imx/clk-common.h | 16 ++++++++++++++++ drivers/clk/imx/scu/clk-scu.h | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 drivers/clk/imx/clk-common.h