Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp738147ybt; Mon, 6 Jul 2020 22:13:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBSbNHKWVE2yegGxG4DLmaLojVfyQ93GKiTDPhHykwQyAYS/nwH+sp5YWpsKuEkFGIlNWU X-Received: by 2002:aa7:d457:: with SMTP id q23mr55096854edr.376.1594098816225; Mon, 06 Jul 2020 22:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594098816; cv=none; d=google.com; s=arc-20160816; b=0GpY0P2lCP8rtxfsoJTz/SXxVzTYfyIZRX8Primgo6lgXZejXyXIUUd+n5y9akV6yz r6ToOuZ4oGj+vJvyKa4cOBt69LWL2D5VGZoITtsmqmXRZY8dyb1Aw5bqjZTplzd74w4r Vk5LF7UmDnKAOwsb13hIoho+jjDhZoDb29UDAbnNgukKPmaJg/ak407V/HP4nbLV77VO HfVc+vAIKO5keigXfZEvtnOkAgAzcFu2X4bFpN7EopO9RBzT+/j/X3sQMX8AV7CQw5oT 1VTq0nXncNwLrdP/nVUmR4DNIRtnS8GTvv7bqXzcPlI99/vw/2l43rPl/UBv3dvwua2J gogQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=AfOGY6V+4eatGkXJNXJ7qOwfcLMT9XimpeDpbypK2+o=; b=oAPkuPDIkVMqjl7/YxqqdGokYusMLD1WOaZITz5MsLtF0kn4kB6C+X/l/do1qtj4MB N/2oGlOod5kaTZA6TRD0K8RsJaOOH0cue/mpeyY36S1fLFm/jw5uati5w5wyEWPEsMVi DNTKkYNcvi4bqsGKE3/wjwZyLOGlvEsm+PCDtj6BYjgBdMjswJayKHXjrPPuNyPYlUmN edkpYGJT94DYBTEKWJX09HDlnuowv/ChpYd/gsz/7/8bv7fvnGC5RF1ODL0uG+t89OFM oJEHJdEUIeko4xEq2IWdavVlHMRtcfM+jb//pmBClqHxTSUamU1Hxb76SpP7PaoFRk/3 1fiQ== 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 s14si13729130ejq.387.2020.07.06.22.13.12; Mon, 06 Jul 2020 22:13:36 -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 S1727818AbgGGFNE (ORCPT + 99 others); Tue, 7 Jul 2020 01:13:04 -0400 Received: from inva021.nxp.com ([92.121.34.21]:53162 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727046AbgGGFNE (ORCPT ); Tue, 7 Jul 2020 01:13:04 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id D6D47200848; Tue, 7 Jul 2020 07:13:01 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 677CC200842; Tue, 7 Jul 2020 07:12:52 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id A3133402A8; Tue, 7 Jul 2020 13:12:40 +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 0/6] Support building i.MX ARMv8 platforms clock driver as module Date: Tue, 7 Jul 2020 13:09:33 +0800 Message-Id: <1594098579-25050-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 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 Nowdays, there are more and more requirements of building SoC specific drivers as modules, such as Android GKI (generic kernel image), this patch set supports building i.MX ARMv8 SoCs clock drivers as modules, The CLK_IMXxxx is introduced for i.MX ARMv7 platforms in order to make the build options aligned, the reason why i.MX ARMv7 platforms clock driver do NOT support module build and COMPILE_TEST is because, some drivers like i.MX GPT timer driver depends on clock driver to be ready before it, GPT driver uses TIMER_OF_DECLARE(), while i.MX6/7 clock drivers use CLK_OF_DECLARE(), and GPT driver is critical for i.MX6/7 platforms kernel boot up, so GPT driver needs to be changed to support loadable clock driver first, then the i.MX6/7 clock drivers can support loadable module, this will be done later. Changes since V5: - make i.MX ARMv7 platforms clock driver to bool and NOT support COMPILT_TEST, since they depends on ARCH_MXC or SOC config, which makes the COMPILT_TEST NOT make enough sense, so just skip the COMPILT_TEST support for i.MX ARMv7 platform clock drivers, leave them same as original implementation. - add a patch to fix build warning reported by kernel robot test on i.MX6SL clock driver. Anson Huang (6): clk: composite: Export clk_hw_register_composite() clk: imx: Support building i.MX common clock driver as module clk: imx: Add clock configuration for ARMv7 platforms clk: imx8m: Support module build clk: imx8qxp: Support building i.MX8QXP clock driver as module clk: imx6sl: Fix build warning reported by kernel test robot drivers/clk/clk-composite.c | 1 + drivers/clk/imx/Kconfig | 94 ++++++++++++++++++++++++++++++++------ drivers/clk/imx/Makefile | 79 ++++++++++++++++---------------- drivers/clk/imx/clk-composite-8m.c | 2 + drivers/clk/imx/clk-cpu.c | 2 + drivers/clk/imx/clk-frac-pll.c | 2 + drivers/clk/imx/clk-gate2.c | 2 + drivers/clk/imx/clk-imx6sl.c | 15 +++--- drivers/clk/imx/clk-imx8mm.c | 4 ++ drivers/clk/imx/clk-imx8mn.c | 4 ++ drivers/clk/imx/clk-imx8mp.c | 4 ++ drivers/clk/imx/clk-imx8mq.c | 4 ++ drivers/clk/imx/clk-imx8qxp-lpcg.c | 4 ++ drivers/clk/imx/clk-imx8qxp.c | 4 ++ drivers/clk/imx/clk-pll14xx.c | 5 ++ drivers/clk/imx/clk-sscg-pll.c | 2 + drivers/clk/imx/clk.c | 17 +++++-- drivers/clk/imx/clk.h | 6 +++ 18 files changed, 186 insertions(+), 65 deletions(-) -- 2.7.4