From patchwork Mon Feb 6 15:29:27 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: 53382 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2300416wrn; Mon, 6 Feb 2023 07:34:39 -0800 (PST) X-Google-Smtp-Source: AK7set/2lagXKKEYyqk/XZZMuuaA8vWS1xnicPIdqR0ffi6cHP9sDkPnB+rcO+v1FdFKMJHPfpFo X-Received: by 2002:a05:6a21:3293:b0:be:b4ae:eae5 with SMTP id yt19-20020a056a21329300b000beb4aeeae5mr64495pzb.20.1675697679156; Mon, 06 Feb 2023 07:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675697679; cv=none; d=google.com; s=arc-20160816; b=MN1sq4e68CUa4nZHLS1uqkzoG3f+gl1E+Xl266bcXhzcgZ0cYh8t+uxPKdIfg5epl1 BLjEfIU8lJTjbG3a1R0RGoeBmBfucVxZ1zFMOVcvTo8HQG7AQ3SShcw3xXuG1QtFm77C pR42UorF4mipanYvjTVx+d4RULSgCsEzBK4J3Hk/Fi/zMMFx/z0n0H2SGhIEogadZYN1 kmdbYW+IGBDvvlK9affAu5Fa0J2zu99j2iq8tMIsSf3pl3eLKZ9CbFyXHbRz9q4Y7Adl L7rUcDFcScdzhjj1MZ7AWWCaS6LjTV088abCoipVpcd9X1GO++bsYd9f64GCQjsGk/9M QgJA== 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=pR2FLEqd2JSRm1wKFxudnRfhLAYqKvjzk9wr8Sz7qDM=; b=CD0cvKfzfjiblPwU7RrxHL+8QyxoNHnplBn+Khhk1rEAaPorVOgpvSujcHtjvnwGbX P8WXFUCSH+61UIij/Ak/NDSOch2/Y+0knOcCoX2arqdJ8b7Hfd1RkcqSlmDuWPz5nowS zs6TcXBXZbVRBaXKB/GXIKPnW1xe4dB0mIAy2LNgryGgs6hfV466uqJsrT+znWxxjenu pjTR5Z3ILDPSDFKw85NATEv6plp8PqX68VV4djLfKfBREsbEkl2zZsjaDpfRDmAug/Rd GsPS10bPdiDoJxBgLgh+cR1U8ncxcFdFChkBXMZXThluJJoLGgIwqx5DWSSGkayd6c3t UwQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="Fd7nm/or"; 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 123-20020a630181000000b004790f4d9ad2si12289939pgb.636.2023.02.06.07.34.24; Mon, 06 Feb 2023 07:34:39 -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="Fd7nm/or"; 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 S230436AbjBFPdO (ORCPT + 99 others); Mon, 6 Feb 2023 10:33:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231573AbjBFPcU (ORCPT ); Mon, 6 Feb 2023 10:32:20 -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 1DAC72BEDC; Mon, 6 Feb 2023 07:30:54 -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 6AA556602FA3; Mon, 6 Feb 2023 15:30:46 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1675697447; bh=7LnucdGUqjfNzMUJ9Y/GzXml6UH8wcuJkaRBmRWmx+g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fd7nm/or6LjqdeuMwLrDYQWZ2j8KXmqMt9cx3qgezBiB81B6cWwKBvMcnApDZZjLj yA3VFBp96j3lvqP4PiWpVk6q+yQ9GUOdjfYDKxAjBRGCLPKnra1Uxifjkio1pkBOhV 94zvDg9VUm2C0F2jLV6LUmyF/DfyF8UCLrDkWia5bhVBdeF0OlKnAHz7kjtq5w00S8 2/nWGvNNHK4oq0fXcP9TP3NHYPNnbx3BG/g0qsuQSrypw+UwGv+aZ0xxKbV4dNkHC7 rIjwHYYfXpJ/J18YOC6Dg1yFmTh+mIlB8pymCOv8FXhhuAaHDnqZK5wqU2w+VKuQQm iRI88WRrI5tKw== 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 v1 44/45] clk: mediatek: Kconfig: Allow module build for core mt8192 clocks Date: Mon, 6 Feb 2023 16:29:27 +0100 Message-Id: <20230206152928.918562-45-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230206152928.918562-1-angelogioacchino.delregno@collabora.com> References: <20230206152928.918562-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?1757096369320349553?= X-GMAIL-MSGID: =?utf-8?q?1757096369320349553?= 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 --- 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 706a7cf86ce0..e8034cbbe169 100644 --- a/drivers/clk/mediatek/Kconfig +++ b/drivers/clk/mediatek/Kconfig @@ -671,7 +671,7 @@ config COMMON_CLK_MT8186_WPESYS This driver supports MediaTek MT8186 Warp Engine 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