Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1567674ybt; Thu, 2 Jul 2020 08:29:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4lU70S/ZilWT504RG0/lyV9CnsncAp2b+0sereKcjZebvPbktnfIg81y0GUBrZ2YsRH+M X-Received: by 2002:aa7:d848:: with SMTP id f8mr26616863eds.329.1593703748481; Thu, 02 Jul 2020 08:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593703748; cv=none; d=google.com; s=arc-20160816; b=aC5qs1+xZEbmcY+FUh+tnC3F2e9pbxao05e2p8ok8F9038DQEMNRk21nFBUjPwJfcS YLuaxq7LcnraBfxs7z1nP6I2GKXfcCsFi1GjtwkmoIrWiMO55aw6sPYyevoSVSRqbMm/ yWOyq5LNq9TcpHwLkh5CijqRKXMzmcUZJpCpbYFYodHAaYVa1m0PgOv51uoGAqXyp/Wm Vny2qYG4MMmM22p4xGAd4ry5j5rD/FWyONzxzNUnjTh79UTBSQljkdBGONrN+9IuAN4w 9CKrh76iuuipDsJN9omCjnhX+lQTouIYjgpCAP5ZhKat34T2B8Hvekc+5tmK2XJZKp5J vk0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=KZu7aNWdUU3dRe/QkldtjwUk2xTOciLur/RnPVReywo=; b=1JMlxw3RWtCYtewofBPiujzY2a0QeZPJg1oWMOgmlbTDolS8K7Iw6eFCZuxkJihmDf 9236lO11u8Esj7XlNcveeyHZ0yAinoOi7uoXlN6kzn/HbY2W61pWweIxXpBTLJBrGn6T mN+v9Dr7oIqQaiid7nqKgPDbcwo8YEyRtRZV9eaIC02btsJN4ZyhbgkL3iiP9f3N0+5s 4wi4ev7VxEEcyuow9JPivYOGtDRw26i2wB6Q15k2vqJJdcSWOkWc3MThPaYME12sTlg7 +mYuhILg+mvtZonl+8yhj0lLbOkkqTwsle+NwvVOieMzyLFIeT2XYWeac54NFIT2xCHa Qqwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q28si5872704edw.196.2020.07.02.08.28.46; Thu, 02 Jul 2020 08:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730298AbgGBP1o (ORCPT + 99 others); Thu, 2 Jul 2020 11:27:44 -0400 Received: from inva020.nxp.com ([92.121.34.13]:55440 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730251AbgGBP1h (ORCPT ); Thu, 2 Jul 2020 11:27:37 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id CE0B01A0BEE; Thu, 2 Jul 2020 17:27:34 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id CD1A91A0C3C; Thu, 2 Jul 2020 17:27:24 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id DCEE840314; Thu, 2 Jul 2020 23:27:12 +0800 (SGT) From: Anson Huang To: mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, aisheng.dong@nxp.com, arnd@arndb.de, peng.fan@nxp.com, abel.vesa@nxp.com, j.remmet@phytec.de, sfr@canb.auug.org.au, georg.waibel@wiedemann-group.de, Georg.Waibel@wiedemann-group.com, laurent.pinchart@ideasonboard.com, chen.fang@nxp.com, fugang.duan@nxp.com, daniel.baluta@nxp.com, yuehaibing@huawei.com, horia.geanta@nxp.com, andrew.smirnov@gmail.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Linux-imx@nxp.com Subject: [PATCH V5 6/6] clk: imx8qxp: Support building i.MX8QXP clock driver as module Date: Thu, 2 Jul 2020 23:24:01 +0800 Message-Id: <1593703441-16944-7-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593703441-16944-1-git-send-email-Anson.Huang@nxp.com> References: <1593703441-16944-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change configuration to "tristate", add module author, description and license to support building i.MX8QXP clock drivers as module. Signed-off-by: Anson Huang --- Changes since V4: - keep using builtin_platform_driver(); - add COMPILE_TEST support. --- drivers/clk/imx/Kconfig | 8 +++++--- drivers/clk/imx/Makefile | 9 ++++----- drivers/clk/imx/clk-imx8qxp-lpcg.c | 4 ++++ drivers/clk/imx/clk-imx8qxp.c | 4 ++++ 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index 4f4f86e..51be5e8 100644 --- a/drivers/clk/imx/Kconfig +++ b/drivers/clk/imx/Kconfig @@ -5,7 +5,8 @@ config MXC_CLK depends on ARCH_MXC || COMPILE_TEST config MXC_CLK_SCU - bool + tristate "IMX SCU clock" + depends on ARCH_MXC || COMPILE_TEST depends on IMX_SCU config CLK_IMX1 @@ -106,8 +107,9 @@ config CLK_IMX8MQ Build the driver for i.MX8MQ CCM Clock Driver config CLK_IMX8QXP - bool "IMX8QXP SCU Clock" - depends on ARCH_MXC && IMX_SCU && ARM64 + tristate "IMX8QXP SCU Clock" + depends on (ARCH_MXC && ARM64) || COMPILE_TEST + depends on IMX_SCU select MXC_CLK_SCU help Build the driver for IMX8QXP SCU based clocks. diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile index 17f5d12..79e53f2 100644 --- a/drivers/clk/imx/Makefile +++ b/drivers/clk/imx/Makefile @@ -21,15 +21,14 @@ mxc-clk-objs += clk-pll14xx.o mxc-clk-objs += clk-sscg-pll.o obj-$(CONFIG_MXC_CLK) += mxc-clk.o -obj-$(CONFIG_MXC_CLK_SCU) += \ - clk-scu.o \ - clk-lpcg-scu.o - obj-$(CONFIG_CLK_IMX8MM) += clk-imx8mm.o obj-$(CONFIG_CLK_IMX8MN) += clk-imx8mn.o obj-$(CONFIG_CLK_IMX8MP) += clk-imx8mp.o obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o -obj-$(CONFIG_CLK_IMX8QXP) += clk-imx8qxp.o clk-imx8qxp-lpcg.o + +obj-$(CONFIG_MXC_CLK_SCU) += clk-imx-scu.o clk-imx-lpcg-scu.o +clk-imx-scu-$(CONFIG_CLK_IMX8QXP) += clk-scu.o clk-imx8qxp.o +clk-imx-lpcg-scu-$(CONFIG_CLK_IMX8QXP) += clk-lpcg-scu.o clk-imx8qxp-lpcg.o obj-$(CONFIG_CLK_IMX1) += clk-imx1.o obj-$(CONFIG_CLK_IMX21) += clk-imx21.o diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c index 04c8ee3..e947a70 100644 --- a/drivers/clk/imx/clk-imx8qxp-lpcg.c +++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c @@ -232,3 +232,7 @@ static struct platform_driver imx8qxp_lpcg_clk_driver = { }; builtin_platform_driver(imx8qxp_lpcg_clk_driver); + +MODULE_AUTHOR("Aisheng Dong "); +MODULE_DESCRIPTION("NXP i.MX8QXP LPCG clock driver"); +MODULE_LICENSE("GPL v2"); diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c index 5e2903e..d650ca3 100644 --- a/drivers/clk/imx/clk-imx8qxp.c +++ b/drivers/clk/imx/clk-imx8qxp.c @@ -152,3 +152,7 @@ static struct platform_driver imx8qxp_clk_driver = { .probe = imx8qxp_clk_probe, }; builtin_platform_driver(imx8qxp_clk_driver); + +MODULE_AUTHOR("Aisheng Dong "); +MODULE_DESCRIPTION("NXP i.MX8QXP clock driver"); +MODULE_LICENSE("GPL v2"); -- 2.7.4