From patchwork Thu Nov 15 08:56:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 998178 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HWnDKq8c"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="qq2FDRf8"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42wZx83Xzmz9s5c for ; Thu, 15 Nov 2018 19:57:00 +1100 (AEDT) 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:In-Reply-To:References: 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=smdtXsuwtBQd/KBVfiXT46vXzQ1akgpHVY0G860yAMg=; b=HWnDKq8c2V57IS gYDOKvoY9yzh/IdBAZJeaKkLvsc+v8iGV/SvtbtvyytPaIMTqrc7gNPOsN8DDkJdurA25Mr3Zj1Wi TDkrFOe/MwZj5EPgkLQNwzT3xQCZkyhz4MqOp1/+lc1xa6jpdhebeF6B/FjlOLKK9wggDqacZOV7T 8D2ZNhIopGpq19RHTHdxVoNwVmFgZyEzQYdhHI45UFiw2IvrR5TQ4cGjqMOTN5tjXPQawlC6bgtu8 /z0uVJa31YUtRR7AYXDYTdOAP3mBeW1FkpvdittiP7OIc4+5c5SEeKt6FM3e3CKne3xgRqComrhou uZRA2ytxV7xNgHb3VTdA==; 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 1gNDSG-0006ON-9C; Thu, 15 Nov 2018 08:56:52 +0000 Received: from mail-ve1eur01on0602.outbound.protection.outlook.com ([2a01:111:f400:fe1f::602] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNDS4-0006Be-CR for linux-arm-kernel@lists.infradead.org; Thu, 15 Nov 2018 08:56:41 +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:X-MS-Exchange-SenderADCheck; bh=xNj3VLX4jSz+P7zDKxKkqtqVf0IJGnC/SMHyGHswazY=; b=qq2FDRf89D0oX3eoNR3n5aenbt+dLSZp/CncCmck1VsY6DCxQczmEdBdX7JG1/CUrgg/5RZIqpEk7UQs9fLNZA6Tbi+QzwUNcWDqDRHoWW004iPAqE2u6+E339AebjqM4yjeLeQ7JGcn+t8ymGXaTlQhfECQ59Uu2yEs6AndzF8= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4068.eurprd04.prod.outlook.com (52.134.125.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Thu, 15 Nov 2018 08:56:13 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10%2]) with mapi id 15.20.1294.045; Thu, 15 Nov 2018 08:56:13 +0000 From: "A.s. Dong" To: "linux-clk@vger.kernel.org" Subject: [PATCH V7 1/7] clk: imx: add configuration option for mmio clks Thread-Topic: [PATCH V7 1/7] clk: imx: add configuration option for mmio clks Thread-Index: AQHUfMEP/mnZYGuA4Uu7tDPICKwLHg== Date: Thu, 15 Nov 2018 08:56:13 +0000 Message-ID: <1542271869-18600-2-git-send-email-aisheng.dong@nxp.com> References: <1542271869-18600-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1542271869-18600-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: HK0PR03CA0010.apcprd03.prod.outlook.com (2603:1096:203:2e::22) 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; AM0PR04MB4068; 6:qWgf7dtUJQpR2fi53fcmT9yotlE/X4OiOzDBFd8DqD5zl///fWmmM3+uiCBxLSuxHBbCoLDK19Ytn3MJBJPics6bYpUI4ZzKxcloyeXToka3nmAyupU6sokyItrY3QsnWXLBxzJFBSRlcHrPr48OARqReLTGVJG2dE1j8OU9NC68Fu/JffTebZ/veGr+JWRyyFbLdVKhORD31vLQS5EiIQYDg54GVDB7vPmrAUh73PhvZSH9Y+vrOruFp/B3oy7YhmJRvL3DnUeiYfXumaKE7U7zvWteoZAEFvo2aKadooB2CFlmeDfw8JRz3D4sDXNfth+aozSsMErRy1okx/EujBgDLfq+kiJSdHBwfE2A8c6xQYE0+nw3bt8w2JCm7uP2rb2Grgzkuve3Q3rBNXxM9IWCxMib92EoFDtF4uvVN5KjX5Q8NjeJOrHL54dGWOd7zQilxBS0Yd32cf0ItGRg+g==; 5:Tw392lIEz2xLhe4wn/OAYca6RroJHbzL6Uoj0Uc7JUytCnEb11cy7tpcR7yPqyQKRilefHgQgu0l/KXT5WDA/zQCQPK9QtvB3mN/Hm+m7bHG6e2tj06BPzAu9yacfu6DQrxJqMwwUl867tBM5xZktcM3ob1acE2Uee1EW71QIcU=; 7:BjlVFwA97kKeSSQW/VOWAkpcVIK5RnLq7aETx6e7oGx2yxqOigYctgoh8V7nPnbBwznYPIk0DkBpFWbyq77gq4Vu+fTTB6Nb7hKIAF2di07U3Ju0WhubfsN6Yw1YkeHtY1zzhOAaS+Iy0+C/NwfKJg== x-ms-office365-filtering-correlation-id: fb535bcd-f80e-4c8e-ccc2-08d64ad83239 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:AM0PR04MB4068; x-ms-traffictypediagnostic: AM0PR04MB4068: x-microsoft-antispam-prvs: 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)(8121501046)(5005006)(3002001)(10201501046)(3231415)(944501410)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4068; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4068; x-forefront-prvs: 08572BD77F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(396003)(376002)(39860400002)(366004)(136003)(199004)(189003)(102836004)(4326008)(5640700003)(316002)(54906003)(8676002)(53936002)(25786009)(81166006)(50226002)(81156014)(8936002)(106356001)(86362001)(6436002)(6512007)(186003)(6916009)(36756003)(76176011)(99286004)(97736004)(386003)(2900100001)(105586002)(26005)(2351001)(52116002)(6506007)(2906002)(256004)(2501003)(478600001)(5660300001)(3846002)(66066001)(6116002)(14444005)(68736007)(71190400001)(71200400001)(476003)(305945005)(2616005)(7736002)(6486002)(14454004)(486006)(446003)(11346002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4068; 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: 9vS+64F1Iuh4YMc7RZIJktAMn84Yu2xKXooDFcF1txy6xXHDqnrQZZO59te5h7LK9ljm96oyNbCjlx84ae8Kut0nLSm+XnhlKh/RI2O7Y4zfmxrIFb//3c7IKg238IBrDYLW0hPs2Sf/yQL5Zx4Zt2cT+OV2et9Z08aQ6GVW3IRCiKT9fwPRRfTiTmWt52TnWzKBsBhaWhgy4ulq8Zbi6Tl8arvdzg6GLw64Ts/vAmekl5KCQ1fCMyL4YdtAGHbhUA/07Cj73i/nKtSwLiXD/ObfUfBh01SDfElgyNlBOw0ZGZHEfKJVFJ7d475hFqRkTZkGnhgT+bu+U9SPXC8PsbQXM2ZNdO+DC+hKc5+z8/U= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fb535bcd-f80e-4c8e-ccc2-08d64ad83239 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Nov 2018 08:56:13.8365 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4068 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181115_005640_420133_E80B64FF X-CRM114-Status: GOOD ( 15.67 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a01:111:f400:fe1f:0:0:0:602 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "A.s. Dong" , "sboyd@kernel.org" , "mturquette@baylibre.com" , dl-linux-imx , "kernel@pengutronix.de" , Fabio Estevam , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org 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 --- arch/arm/mach-imx/Kconfig | 11 +++++++++++ drivers/clk/Kconfig | 1 + drivers/clk/imx/Kconfig | 5 +++++ drivers/clk/imx/Makefile | 2 +- 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 drivers/clk/imx/Kconfig diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index abc3371..11a9661 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -57,23 +57,27 @@ config SOC_IMX21 select CPU_ARM926T select IMX_HAVE_IOMUX_V1 select MXC_AVIC + select MXC_CLK config SOC_IMX27 bool select CPU_ARM926T select IMX_HAVE_IOMUX_V1 select MXC_AVIC + select MXC_CLK select PINCTRL_IMX27 config SOC_IMX31 bool select CPU_V6 select MXC_AVIC + select MXC_CLK config SOC_IMX35 bool select ARCH_MXC_IOMUX_V3 select MXC_AVIC + select MXC_CLK select PINCTRL_IMX35 if ARCH_MULTI_V5 @@ -417,6 +421,7 @@ config SOC_IMX1 bool "i.MX1 support" select CPU_ARM920T select MXC_AVIC + select MXC_CLK select PINCTRL_IMX1 help This enables support for Freescale i.MX1 processor @@ -430,6 +435,7 @@ config SOC_IMX25 select ARCH_MXC_IOMUX_V3 select CPU_ARM926T select MXC_AVIC + select MXC_CLK select PINCTRL_IMX25 help This enables support for Freescale i.MX25 processor @@ -442,6 +448,7 @@ comment "Cortex-A platforms" config SOC_IMX5 bool select HAVE_IMX_SRC + select MXC_CLK select MXC_TZIC config SOC_IMX50 @@ -478,6 +485,7 @@ config SOC_IMX6 select HAVE_IMX_MMDC select HAVE_IMX_SRC select MFD_SYSCON + select MXC_CLK select PL310_ERRATA_769419 if CACHE_L2X0 config SOC_IMX6Q @@ -545,10 +553,12 @@ config SOC_IMX7D_CA7 select HAVE_IMX_MMDC select HAVE_IMX_SRC select IMX_GPCV2 + select MXC_CLK config SOC_IMX7D_CM4 bool select ARMV7M_SYSTICK + select MXC_CLK config SOC_IMX7D bool "i.MX7 Dual support" @@ -561,6 +571,7 @@ config SOC_IMX7D config SOC_VF610 bool "Vybrid Family VF610 support" select ARM_GIC if ARCH_MULTI_V7 + select MXC_CLK select PINCTRL_VF610 help diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 292056b..09eba54 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -287,6 +287,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/keystone/Kconfig" source "drivers/clk/mediatek/Kconfig" source "drivers/clk/meson/Kconfig" diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig new file mode 100644 index 0000000..43a3ecc --- /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 + depends on ARCH_MXC diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile index 8c3baa7..d447f8c 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-cpu.o \