Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp738445ybt; Mon, 6 Jul 2020 22:14:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxknJJIRbcLxnkYf4gL+18epKY9cPpVIt81KBgmwyt7MA4tXeyFOJ1FdZ+vhpPSjgeXXKkV X-Received: by 2002:a50:f047:: with SMTP id u7mr62030589edl.274.1594098849879; Mon, 06 Jul 2020 22:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594098849; cv=none; d=google.com; s=arc-20160816; b=uLBphSiHR84bB4GhuL7klQax4i0FB+ZC0rwAubw0kVsVlvbCOtj/h8dMCLyA17Zrq3 TW12WQfF3L1xN0++DW+JiWG45JguhOejmOfpUpyqBC2k8iQfvC5L8gniEVjuX940PbLm dUwefoAg9PnLSNlyzs+sVp2Gupphr3SZFrJBaqYtTQlH1LPOVS8RcwHiiox6yNvmfNrB 3iC9ose4C11TSiRgW2u8TvIKrPsNgVI3afmLABL1XN54TxOvo2Ukleod0EXvCuiJFXWq R/T+4W7ilCCKxWohGCkCHOr2DSDwLx6YFL8+zUPeyguaBBROmvy8xIfIYFH+dJQxUoQJ SoUw== 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=SZXUGNHuiMIMqxDw/EXf8GjJAlE88cyCuHLaTW5Xx70=; b=RrgikR/kROP1tC+0bPwQfrl5XCrDtc4QdI5VkWdnXnIIdxlfY/cbTKmwjfRA5GCPlA ETrAA/ZuuRUQqMP/z9B6F6hWg+a1jqiIWh316GZZ5XTZlG/ZIrflTHIPVPROHrXrxUih 9IMx1pxkLr316NCLj9+nfWADhNp98gltq1LVJGU7NDmdYKDLcEFV+Tglbv2frpecO+lv bGZPHc/camfU35iiJgpzX9QUS2MXSZBTJd4/dpDuNmwVNizUKXfutCwOwlThr7/ypsbF 1uJd+wGzcj7Ts6V0rIsKY+c2CoJPTmwLlxCzuBmCXQCTZ9Z++yas2QJ5TIyGFz4cZgNE ud/A== 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 a20si13717522ejb.361.2020.07.06.22.13.46; Mon, 06 Jul 2020 22:14:09 -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 S1728152AbgGGFNS (ORCPT + 99 others); Tue, 7 Jul 2020 01:13:18 -0400 Received: from inva020.nxp.com ([92.121.34.13]:46250 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728125AbgGGFNO (ORCPT ); Tue, 7 Jul 2020 01:13:14 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3223A1A098B; Tue, 7 Jul 2020 07:13:12 +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 82BAA1A0983; Tue, 7 Jul 2020 07:13:02 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id BE713402FC; Tue, 7 Jul 2020 13:12:50 +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, abel.vesa@nxp.com, peng.fan@nxp.com, sfr@canb.auug.org.au, j.remmet@phytec.de, 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, andrew.smirnov@gmail.com, horia.geanta@nxp.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Linux-imx@nxp.com Subject: [PATCH V6 5/6] clk: imx8qxp: Support building i.MX8QXP clock driver as module Date: Tue, 7 Jul 2020 13:09:38 +0800 Message-Id: <1594098579-25050-6-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1594098579-25050-1-git-send-email-Anson.Huang@nxp.com> References: <1594098579-25050-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 --- No change. --- drivers/clk/imx/Kconfig | 10 ++++++---- drivers/clk/imx/Makefile | 9 ++++----- drivers/clk/imx/clk-imx8qxp-lpcg.c | 4 ++++ drivers/clk/imx/clk-imx8qxp.c | 4 ++++ 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig index 3897712..e7defba 100644 --- a/drivers/clk/imx/Kconfig +++ b/drivers/clk/imx/Kconfig @@ -5,8 +5,9 @@ config MXC_CLK depends on ARCH_MXC || COMPILE_TEST config MXC_CLK_SCU - bool - depends on IMX_SCU + tristate "IMX SCU clock" + depends on ARCH_MXC || COMPILE_TEST + depends on IMX_SCU && HAVE_ARM_SMCCC config CLK_IMX1 def_bool SOC_IMX1 @@ -97,8 +98,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 && HAVE_ARM_SMCCC 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