From patchwork Wed Feb 22 09:25:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 60426 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp474034wrd; Wed, 22 Feb 2023 01:30:35 -0800 (PST) X-Google-Smtp-Source: AK7set/KtJIBEPI0FopvzKCwYW5dKAzzYJ0yWvm75xAyAbjnGWzLBOc9V4RCVENDBaOTmeQRh8DM X-Received: by 2002:a05:6a20:728a:b0:cb:df6c:ba89 with SMTP id o10-20020a056a20728a00b000cbdf6cba89mr698751pzk.8.1677058235194; Wed, 22 Feb 2023 01:30:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677058235; cv=none; d=google.com; s=arc-20160816; b=Z8sf0IvnvxVo+FiwRz9DCpDkuGovjJ040PrYdf36OC33Ehg63zs8qTBWxC5l1zoa8N Qg8UPBYMJueaurvrc/TAEsyM1Bnbkd2JMLgHEOeds9ajCeyGNCTycrLCDV3i0wkJcxL2 wP0zgorBqh1P01Y0C0nvUyr9cA2Xk9OSqJ4t9bNRTkGCMeIeQdRNsisftlbP0PQ7xP9G dr2aITdQ9m06jVH8SsetVdG3tUoxd/svT0ZPSdy38gHJrwo54G7uHOhZYpeL3UMfP7o2 7zN+Q0nJc8MWdxBjfcX3xmfj4g8VV2Gl/ibTVJRkPeGRy4TTJKGxVM2K91ZKTUgtsFAJ AFNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rxdDmX7srBgFPOHIwV/hVu7+ZeJcKK8UBBEL8Ybi974=; b=kZEh0JvvNNDWGhwyWVQK0ZtpMyLJoEfzaAck3gRctmx8CzUcTEYkXBXbDclOebNPah Cr9eGqS8ZaFRAdwN3mb4179UxSPUlJPzo1ho76cW/5M2mwpibY7OBtg4c9fH+Yp+QdxC mjBi+two7zTjGcc9xMsVeBIEpXtxq//j79wLlsihbkwmJOnkkevDnuwE/ABnWK0wZmST bW+xjbwIDRdc/BhkgcH9dBBdzgWNdhyBnX+tv44Twj1fS6Jpm6lM9qeeT5hsQeW4VojN y35o9RnO5myt/nsmMM19C1zpQKClUuPuJmA7N7GZvQ2rQ1XjU4bENRnWG/0GabffsbuD z4gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=k+Bnsd0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 195-20020a6302cc000000b004fc235bd318si18918411pgc.669.2023.02.22.01.30.22; Wed, 22 Feb 2023 01:30:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=k+Bnsd0Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231867AbjBVJaL (ORCPT + 99 others); Wed, 22 Feb 2023 04:30:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232093AbjBVJ3E (ORCPT ); Wed, 22 Feb 2023 04:29:04 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 061443929E; Wed, 22 Feb 2023 01:27:19 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 4CC9D66021E6; Wed, 22 Feb 2023 09:26:57 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677058018; bh=Infn8Si6lq8h+pOdKk/QVovpPmYS4MK0XTNGm2wio2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k+Bnsd0YeVktN8J6zP4hrgw2zJbc8W0clzdeNEpvRKVQ75dEm0NT2Kz+bjpfA3rIQ xZfcWz3mzK7/OyV/rFPv7b4tSYLTelTd2qO8LsnfUW6GrjKSiekHgtMxOTljT4k95k GY7lhRPXLgU3LkIq7pYXNuH3totjspl8VxkOo92P5G+xF9ckG8XYSP72MmgTDLnzl2 JXB4GQoM7t1qQnbTs9jBFwyLSubmZ4bJYqAWW05LqEzNWF87gakTk+d7gTWPj7Bqcb DarGg6JWqQVhZjiU6v2Tl/PRRR6YtiyLyMExbjfMZh2bRIPhg7PROyeli+18t6779S cMjtixgu7nysA== From: AngeloGioacchino Del Regno To: mturquette@baylibre.com Cc: sboyd@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, johnson.wang@mediatek.com, miles.chen@mediatek.com, chun-jie.chen@mediatek.com, daniel@makrotopia.org, fparent@baylibre.com, msp@baylibre.com, nfraprado@collabora.com, rex-bc.chen@mediatek.com, zhaojh329@gmail.com, sam.shih@mediatek.com, edward-jw.yang@mediatek.com, yangyingliang@huawei.com, granquet@baylibre.com, pablo.sun@mediatek.com, sean.wang@mediatek.com, chen.zhong@mediatek.com, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v5 48/54] clk: mediatek: Kconfig: Allow module build for core mt8192 clocks Date: Wed, 22 Feb 2023 10:25:37 +0100 Message-Id: <20230222092543.19187-49-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230222092543.19187-1-angelogioacchino.delregno@collabora.com> References: <20230222092543.19187-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758523015765343332?= X-GMAIL-MSGID: =?utf-8?q?1758523015765343332?= Bootloaders must in a way setup the SoC to boot Linux: this means that it will be possible to decompress a ramdisk and eventually insert the core clock driver module from there. Allow module build for all MT8192 clocks by switching to tristate. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai Tested-by: Miles Chen --- drivers/clk/mediatek/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig index 04b4be419bd0..02093996ccc3 100644 --- a/drivers/clk/mediatek/Kconfig +++ b/drivers/clk/mediatek/Kconfig @@ -682,7 +682,7 @@ config COMMON_CLK_MT8186_VENCSYS This driver supports MediaTek MT8186 vencsys clocks. config COMMON_CLK_MT8192 - bool "Clock driver for MediaTek MT8192" + tristate "Clock driver for MediaTek MT8192" depends on ARM64 || COMPILE_TEST select COMMON_CLK_MEDIATEK default ARM64