From patchwork Mon Feb 15 11:57:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 12087993 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42DD9C433E0 for ; Mon, 15 Feb 2021 11:59:14 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EA33264E04 for ; Mon, 15 Feb 2021 11:59:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EA33264E04 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=mn9TVQmN57SnMPaybCiVOYzAHukfWCgrTmzkG3pwBGU=; b=G2eVP/hRGbKtPPYvtuLgORnbVM eKEJJpOm42tjV2rjp3vGKc3+ne5dZ9RAiwaLIaowO2MoVRlkFKSUco7XSrrHtv3T8BJ+LIZK9QNUP bw/SpwIcPvlv1r+Hd/PEH2TyXq6exNWf/QPX2x5JN67bhlBHobD1+TJe48KZoo9AGkECWVCBN+eh2 2oNmJfPyRPe7N9wvcIxlu1aQSDxTo/fnGbRGeZRYSY7toS+OYVAulANn/3wYHuU6NhTTj6rOT6X8Q KBx6azz+xKPXdO3Xfh79HGSs/g+tjTf/miWX4Tcs5/Yh69+8f74Vfbqf93lh+Hb/zGT/jqcYLn8mm 5X0arYbQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBcVP-00033K-JC; Mon, 15 Feb 2021 11:57:31 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBcVN-00032T-3x for linux-arm-kernel@lists.infradead.org; Mon, 15 Feb 2021 11:57:30 +0000 Received: by mail-pg1-x530.google.com with SMTP id t11so4075262pgu.8 for ; Mon, 15 Feb 2021 03:57:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wtOFBAROWn4tRAGWU26y/eJJ/kwxNC4QA5jAPbFGV7g=; b=wlHupBR1vtKwm24/995UNv8lpusZKFFBBgk6UJmyW9yZoohl0GKOvEJMd6AQZBaAMT l7A94hvMo+jrQr753WX/IQbq50M36674RcdQ16U8aCORaUhajyzppg1jXt80Ltvz8lpD I5C8f4TQgvUsKynlv3JMRKYRUiQG3o0SAguTs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wtOFBAROWn4tRAGWU26y/eJJ/kwxNC4QA5jAPbFGV7g=; b=EF+ThPnz4TBPAX1K46zGQc9C+kquQk7EV27rLEKGGXhZUG69KlZa0r3Nq9CN7I6RuV wirFeH3lcAf4pY3esC3HjWNiMpebdG+I7Ebm0TPoyV3thOY2Yz50e+HeTiW+lIH/HAs0 UnDP9bi20qvHiIaxNkA65DiWsV5Oz6kK7nezIgsfV13EX7hp/r6uHxK/vQhiR7J5teeD cqSUMQt9nTSQQmrcOJdewTMNsLUL9qVmjyUvXQ5dz1uhEMGxKyk8IdvQOBGbujyubyG/ WBRSQNLGDjd2bXRLG2U5h60IHJrSTzk1hSLozNruh0fVW61PKRIKMRLsacqxLDEvqHq+ 43Cg== X-Gm-Message-State: AOAM533l2dX8n4u84paTuAvrrKUfFc2HNi5eASLXcw6mAqlJgZM4+3ff zicLkm4aby/buLM4TZnSf/ZVEg== X-Google-Smtp-Source: ABdhPJz/yAzGJGWuL52vFZHe7Ni8abCUE2hGZsqISk9nlVj//hWIJ9T8D0L6v6AOWZqWKDjhxzqI+Q== X-Received: by 2002:a62:640d:0:b029:1c0:3a5c:f0f7 with SMTP id y13-20020a62640d0000b02901c03a5cf0f7mr15223480pfb.12.1613390246286; Mon, 15 Feb 2021 03:57:26 -0800 (PST) Received: from shiro.work (p345188-ipngn200408sizuokaden.shizuoka.ocn.ne.jp. [124.98.97.188]) by smtp.googlemail.com with ESMTPSA id a5sm17929504pgl.41.2021.02.15.03.57.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 03:57:25 -0800 (PST) From: Daniel Palmer To: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sboyd@kernel.org Subject: [PATCH 1/2] clk: mstar: Allow MStar clk drivers to be compile tested Date: Mon, 15 Feb 2021 20:57:09 +0900 Message-Id: <20210215115710.3762276-1-daniel@0x0f.com> X-Mailer: git-send-email 2.30.0.rc2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210215_065729_369350_EAEBCC40 X-CRM114-Status: GOOD ( 12.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Palmer Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Allow COMPILE_TEST to also build the MStar clk drivers instead of only building them when ARCH_MSTARV7 is selected. Signed-off-by: Daniel Palmer Suggested-by: Stephen Boyd --- drivers/clk/Makefile | 2 +- drivers/clk/mstar/Kconfig | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 7fed7e5944cd..e5e23a44fbe9 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -95,7 +95,7 @@ obj-$(CONFIG_MACH_PIC32) += microchip/ ifeq ($(CONFIG_COMMON_CLK), y) obj-$(CONFIG_ARCH_MMP) += mmp/ endif -obj-$(CONFIG_ARCH_MSTARV7) += mstar/ +obj-y += mstar/ obj-y += mvebu/ obj-$(CONFIG_ARCH_MXS) += mxs/ obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ diff --git a/drivers/clk/mstar/Kconfig b/drivers/clk/mstar/Kconfig index 23765edde3af..eab8f7dcaa90 100644 --- a/drivers/clk/mstar/Kconfig +++ b/drivers/clk/mstar/Kconfig @@ -1,5 +1,10 @@ # SPDX-License-Identifier: GPL-2.0-only config MSTAR_MSC313_MPLL - bool + bool "MStar MPLL driver" + depends on ARCH_MSTARV7 || COMPILE_TEST + default ARCH_MSTARV7 select REGMAP select REGMAP_MMIO + help + Support for the MPLL PLL and dividers block present on + MStar/Sigmastar SoCs.