From patchwork Mon Mar 6 14:05:29 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: 64717 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1869936wrd; Mon, 6 Mar 2023 06:25:04 -0800 (PST) X-Google-Smtp-Source: AK7set8CTrkh/8nScUwozPYnU3bVXw1NzvzbTQPDWouNgLgvRS63kfQDlNUqXCXs2zO82RAHh4XQ X-Received: by 2002:aa7:c903:0:b0:4bc:403f:a7b3 with SMTP id b3-20020aa7c903000000b004bc403fa7b3mr14303271edt.3.1678112704227; Mon, 06 Mar 2023 06:25:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678112704; cv=none; d=google.com; s=arc-20160816; b=o4gI9aLPK9LBjJJdOuATMJDfI6rDx5+unf6WyUvRY7GyG7G1Pk+/arMf8nI3YUjFdN 02EMvIbugusB9Y/ffVVzEvZPohXsUYBBuI7j+Rfqg5vkCIbKKpjP3BmwjZ2HInsbQ1+s 3oFh3NQtMC8yq75xM+LCJ5RuHuqiTebCCgJtMcCtQm580RcNCw1wzM4j+0ibPitrhWyQ r0A6N5G7mKkf0IDrGcAhweRfnSTuzwifKpJdWqpYitOwtbsck0o0JqNeQfHgLN+iojAx dsWg2g4+I7jM7pv0Xqk0MVMdCJU8M8zHtXDgE4L1UiHW6PWtzGXdqoMhaVYdB8Ojr7id FSYQ== 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=GlTsN+Y9x4L1oxM826pywTgl6TFt3jA8Pu9ZN682gF0=; b=LVX+2+xf5o3t2yVmtdr2gz6d6CRqf8WMvhzy/6MuiZkKjhdcyHnShboVEUI9EjLBmX +Z6bzKU5O5hI+PmI1+maUXG2iVFVLg86OSrneWNTC5IVBrYTqHjuVE15HShLC61s/EDK HtStWM7QS4QuPhC2VA+/hBc4qw8GtH+7GFznf+eOUhH2QF8OfVNPgAN7QdA6TI0yBQD/ a0Px4Z45Kv/+WPytkxtt+2V/ilCws+bgtNBY2bI/rD0iZFofRcrwm0lAQOjqH2F0EPiK ypB15IzyFvkRteP0CJ0AzkTg/QXMTtKYoduueabuQ05i5RFU9qEu5nVOqeSwPRIpVVBf EYAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="aY7V/Blq"; 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=QUARANTINE sp=QUARANTINE 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 bm25-20020a0564020b1900b004bf6ddc13d8si9887288edb.439.2023.03.06.06.24.40; Mon, 06 Mar 2023 06:25:04 -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="aY7V/Blq"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231342AbjCFOKV (ORCPT + 99 others); Mon, 6 Mar 2023 09:10:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230422AbjCFOJk (ORCPT ); Mon, 6 Mar 2023 09:09:40 -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 66D1CCA1D; Mon, 6 Mar 2023 06:08:07 -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 8AE676602FFE; Mon, 6 Mar 2023 14:06:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678111611; bh=np5hssnoopKs1KVPmnLg/JPyXKOV6IVQgns0Dgfm0/k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aY7V/BlqFN8wQUdhjAK/kDPy1L4KZb8irjbiumV3E8yGF/QV/vUQw64BK6naiVpso +Ge61JieSdbffNmuLn3dd3mKSs+qO5vCCimqYGv1MtilbZagskNw8kJtkdZRiCwEZN D/kudAaTXRnfH/aQi0vkyvUIq2tuOBS08k7qyziZKRbrTHcTfE2Df9QyAAR/8Ps62s nrEioD7ifudbl0qhQjwb1qDDwMP0KQak0dwv4sHxZJQW34sTo5MfgBcfmNY72VsrMt 66atfncWfcFKBHVnsu+npI7tpXkZk+4AX0pNNuwAwbuTC52h1i2ypyxG/A3QFHziiR KZxGkVR4MS0fw== 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, kernel@collabora.com Subject: [PATCH v6 40/54] clk: mediatek: Allow building MT8192 non-critical clocks as modules Date: Mon, 6 Mar 2023 15:05:29 +0100 Message-Id: <20230306140543.1813621-41-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306140543.1813621-1-angelogioacchino.delregno@collabora.com> References: <20230306140543.1813621-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?1759628707227622709?= X-GMAIL-MSGID: =?utf-8?q?1759628707227622709?= Allow building non boot critical clocks for MT8192 SoC as modules by changing them to tristate. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai Tested-by: Miles Chen Tested-by: Chen-Yu Tsai --- drivers/clk/mediatek/Kconfig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/clk/mediatek/Kconfig b/drivers/clk/mediatek/Kconfig index ab47b9ec64af..fc073e5be4eb 100644 --- a/drivers/clk/mediatek/Kconfig +++ b/drivers/clk/mediatek/Kconfig @@ -613,73 +613,73 @@ config COMMON_CLK_MT8192 This driver supports MediaTek MT8192 basic clocks. config COMMON_CLK_MT8192_AUDSYS - bool "Clock driver for MediaTek MT8192 audsys" + tristate "Clock driver for MediaTek MT8192 audsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 audsys clocks. config COMMON_CLK_MT8192_CAMSYS - bool "Clock driver for MediaTek MT8192 camsys" + tristate "Clock driver for MediaTek MT8192 camsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 camsys and camsys_raw clocks. config COMMON_CLK_MT8192_IMGSYS - bool "Clock driver for MediaTek MT8192 imgsys" + tristate "Clock driver for MediaTek MT8192 imgsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 imgsys and imgsys2 clocks. config COMMON_CLK_MT8192_IMP_IIC_WRAP - bool "Clock driver for MediaTek MT8192 imp_iic_wrap" + tristate "Clock driver for MediaTek MT8192 imp_iic_wrap" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 imp_iic_wrap clocks. config COMMON_CLK_MT8192_IPESYS - bool "Clock driver for MediaTek MT8192 ipesys" + tristate "Clock driver for MediaTek MT8192 ipesys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 ipesys clocks. config COMMON_CLK_MT8192_MDPSYS - bool "Clock driver for MediaTek MT8192 mdpsys" + tristate "Clock driver for MediaTek MT8192 mdpsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 mdpsys clocks. config COMMON_CLK_MT8192_MFGCFG - bool "Clock driver for MediaTek MT8192 mfgcfg" + tristate "Clock driver for MediaTek MT8192 mfgcfg" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 mfgcfg clocks. config COMMON_CLK_MT8192_MMSYS - bool "Clock driver for MediaTek MT8192 mmsys" + tristate "Clock driver for MediaTek MT8192 mmsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 mmsys clocks. config COMMON_CLK_MT8192_MSDC - bool "Clock driver for MediaTek MT8192 msdc" + tristate "Clock driver for MediaTek MT8192 msdc" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 msdc and msdc_top clocks. config COMMON_CLK_MT8192_SCP_ADSP - bool "Clock driver for MediaTek MT8192 scp_adsp" + tristate "Clock driver for MediaTek MT8192 scp_adsp" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 scp_adsp clocks. config COMMON_CLK_MT8192_VDECSYS - bool "Clock driver for MediaTek MT8192 vdecsys" + tristate "Clock driver for MediaTek MT8192 vdecsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 vdecsys and vdecsys_soc clocks. config COMMON_CLK_MT8192_VENCSYS - bool "Clock driver for MediaTek MT8192 vencsys" + tristate "Clock driver for MediaTek MT8192 vencsys" depends on COMMON_CLK_MT8192 help This driver supports MediaTek MT8192 vencsys clocks.