From patchwork Thu Dec 13 01:07:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10727441 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 1F6CC13AF for ; Thu, 13 Dec 2018 01:07:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E1CA2B486 for ; Thu, 13 Dec 2018 01:07:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1A442B613; Thu, 13 Dec 2018 01:07:56 +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 803082B486 for ; Thu, 13 Dec 2018 01:07:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726401AbeLMBH4 (ORCPT ); Wed, 12 Dec 2018 20:07:56 -0500 Received: from mail-eopbgr150050.outbound.protection.outlook.com ([40.107.15.50]:50835 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726337AbeLMBH4 (ORCPT ); Wed, 12 Dec 2018 20:07:56 -0500 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=L0doExu2QuZqTtgqAYl7O6u99KG7TaLXDBS6SHyLE7g=; b=C87cBvgc7wPZM0KnOFg2Qk20OGx+4TX+BeEk/S/43/2S1BpDqjxd4m5YeJVNJdncLGCjP/KwtFFBihhz3Ub8hN3hwfZGFrU97pwDlHQzE05cVTeUr1bXeH1p/++oxDIbX2e9/Sig04YKOl6yFPPjzrdWdY5dJZbV64TmIU2+Ngc= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4308.eurprd04.prod.outlook.com (52.134.126.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.18; Thu, 13 Dec 2018 01:07:52 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::31e3:2aa6:8d93:9927]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::31e3:2aa6:8d93:9927%2]) with mapi id 15.20.1404.026; Thu, 13 Dec 2018 01:07:52 +0000 From: Aisheng Dong To: "linux-clk@vger.kernel.org" CC: "linux-arm-kernel@lists.infradead.org" , "sboyd@kernel.org" , "mturquette@baylibre.com" , "shawnguo@kernel.org" , Fabio Estevam , dl-linux-imx , "kernel@pengutronix.de" , Aisheng Dong Subject: [PATCH V11 1/7] clk: imx: add configuration option for mmio clks Thread-Topic: [PATCH V11 1/7] clk: imx: add configuration option for mmio clks Thread-Index: AQHUkoBFxXjd98YyekOIqi1bO3Y7gw== Date: Thu, 13 Dec 2018 01:07:52 +0000 Message-ID: <1544662938-5020-2-git-send-email-aisheng.dong@nxp.com> References: <1544662938-5020-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1544662938-5020-1-git-send-email-aisheng.dong@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: SG2PR04CA0163.apcprd04.prod.outlook.com (2603:1096:4::25) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM0PR04MB4308;6:KCi6+uum4/GTizTp7tR+zy8UIoWQAfGNQ45m7dSsi4Rih/dJF9RgkkoRXt13f/6p8A+JiCTwc9pyabCEvKIU0nQqIOPyN4yYtVBF0Ktyzyswvs52ae7UltMg49UbUvss3Ew1N97dDv2UONv38VjWVPD2BgJR+L6Gi+zGpP4LfLL4CZNBlzoFqzWBEfdpNg/A+cjLWVgJbXcLFGH97lkZ6Wi+B7Ak/kda3X8HlXEuLYPU1NISUFynoHQFbcLQSPljNUv2WoEsrcFwJH2lRjLZzErK1mcVjofi7MwrL/+JPtS6b2qU6nnv+7ebakbkNNtgNeQNbYsdzC3ZFNY2o7hi5YsvluUREkwhmOVGcpzg+0ASpxwLAw+1VtH1ddZ7sfyDA/AZ10osrHv4SalsiuutvtSGr3aJVVAQX2XF5SU3ZXvPF6zsIgRGB+lqfaGXchpsk7ZKO8xX+JLZENlIodR6FQ==;5:rZmnpAVnQKwoGFfuo5tf7Rp1MeN7gLdb+sx0vT6vVEJWaavU5UAltNl1EnhMKoK3HLCrRdIVszd0SDZ9gicQq+niCVKZ5+WR+QvKOomvAhHOpIwPej2QuiNN7/RSFzUAWl5dkqMRSFz9Sh6RXAAnQ1PZrR6Fb+cBUeqXNmmsSHU=;7:FlTi8Ne9aVftsyA0TiNokbZyyO44MRtUFcPrrxddULXWDyJSJX7bb/eTnKV4l34HuLCVUem5eF7SnNW1UZMa1a0aS+FCr42fmO5YCxzi9eV5Qniti7mXoe6LleAlVVWHAYTmZ+jjen/rqFbtuU84xw== x-ms-office365-filtering-correlation-id: dffdfff8-f2ba-479a-5d51-08d6609767e5 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB4308; x-ms-traffictypediagnostic: AM0PR04MB4308: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231475)(944501520)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:AM0PR04MB4308;BCL:0;PCL:0;RULEID:;SRVR:AM0PR04MB4308; x-forefront-prvs: 088552DE73 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(346002)(396003)(366004)(39860400002)(376002)(199004)(189003)(105586002)(106356001)(97736004)(76176011)(102836004)(6506007)(386003)(26005)(52116002)(2351001)(186003)(4326008)(2501003)(66066001)(6512007)(5660300001)(53936002)(7736002)(305945005)(316002)(54906003)(6916009)(478600001)(99286004)(44832011)(25786009)(36756003)(6436002)(6486002)(5640700003)(68736007)(256004)(476003)(486006)(71190400001)(71200400001)(3846002)(6116002)(2906002)(14454004)(81166006)(8676002)(50226002)(8936002)(86362001)(575784001)(11346002)(446003)(81156014)(2616005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4308;H:AM0PR04MB4211.eurprd04.prod.outlook.com;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-antispam-message-info: SBuX+c7CTLmH1iwidCZr3eeGW8YRD9/h/Jp3r3xeGvSuHTo2Ocx1wmvHodNyb38015hc0QCld5QWnpurwjcanYXTPhVaPqI8kjD1amDA5BaHO1N3xJ9YRvnpnLAGzuMFtBTMG8Eb9+o+rN1loz8aNAO8ZuQnnxhJDQ7Zq78/P+gbx6pWDhfEltE/yrkIphakiuDuEWw0uVHzgcpEsubiDyG0bB/adYSr6MDQUdiw689UVowyZUyTPctzDUSTm1/IhK7iva+dd6zJ4fnly4FMy/5gfhOIhOauK2oxbOhiYsICuypRAg92Y1SXn4dWWq8N spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dffdfff8-f2ba-479a-5d51-08d6609767e5 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2018 01:07:52.2209 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4308 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The patch introduces CONFIG_MXC_CLK option for legacy MMIO clocks, this is required to compile legacy MMIO clock conditionally when adding SCU based clocks for MX8 platforms later. Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Cc: Stephen Boyd Cc: Michael Turquette Signed-off-by: Dong Aisheng --- v10->v11: * break the dependency on the arch Kconfig v1->v10: no changes --- drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 2 +- drivers/clk/imx/Kconfig | 5 +++++ drivers/clk/imx/Makefile | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 drivers/clk/imx/Kconfig diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 2dc12bf..d2f0bb5 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -294,6 +294,7 @@ source "drivers/clk/actions/Kconfig" source "drivers/clk/bcm/Kconfig" source "drivers/clk/hisilicon/Kconfig" source "drivers/clk/imgtec/Kconfig" +source "drivers/clk/imx/Kconfig" source "drivers/clk/ingenic/Kconfig" source "drivers/clk/keystone/Kconfig" source "drivers/clk/mediatek/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index a47430b..8a9440a 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -72,7 +72,7 @@ obj-$(CONFIG_ARCH_DAVINCI) += davinci/ obj-$(CONFIG_H8300) += h8300/ obj-$(CONFIG_ARCH_HISI) += hisilicon/ obj-y += imgtec/ -obj-$(CONFIG_ARCH_MXC) += imx/ +obj-y += imx/ obj-y += ingenic/ obj-$(CONFIG_ARCH_K3) += keystone/ obj-$(CONFIG_ARCH_KEYSTONE) += keystone/ diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig new file mode 100644 index 0000000..37478ba --- /dev/null +++ b/drivers/clk/imx/Kconfig @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0 +# common clock support for NXP i.MX SoC family. +config MXC_CLK + bool + def_bool (ARCH_MXC && !ARM64) || (ARCH_MXC && ARM64 && SOC_IMX8MQ) diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile index 5c0b11e..f850424 100644 --- a/drivers/clk/imx/Makefile +++ b/drivers/clk/imx/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -obj-y += \ +obj-$(CONFIG_MXC_CLK) += \ clk.o \ clk-busy.o \ clk-composite-8m.o \