]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: qcom: Add support for GXCLK for Milos
authorLuca Weiss <luca.weiss@fairphone.com>
Fri, 17 Apr 2026 07:07:45 +0000 (09:07 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 27 Apr 2026 19:31:35 +0000 (14:31 -0500)
GXCLKCTL (Graphics GX Clock Controller) is a block dedicated to managing
clocks for the GPU subsystem on GX power domain. The GX clock controller
driver manages only the GX GDSC and the rest of the resources of the
controller are managed by the firmware.

We can use the existing kaanapali driver for Milos as well since the
GX_CLKCTL_GX_GDSC supported by the Linux driver requires the same
configuration.

Reviewed-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20260417-milos-gxclkctl-v3-2-08f5988c43a2@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/Makefile
drivers/clk/qcom/gxclkctl-kaanapali.c

index 89d07c35e4d931963f388b7ce0f8e8ca43846eea..462c7615a6d734e76cab64c9f91c9efc5bbfbb25 100644 (file)
@@ -189,7 +189,7 @@ obj-$(CONFIG_SM_GPUCC_8450) += gpucc-sm8450.o
 obj-$(CONFIG_SM_GPUCC_8550) += gpucc-sm8550.o
 obj-$(CONFIG_SM_GPUCC_8650) += gpucc-sm8650.o
 obj-$(CONFIG_SM_GPUCC_8750) += gpucc-sm8750.o gxclkctl-kaanapali.o
-obj-$(CONFIG_SM_GPUCC_MILOS) += gpucc-milos.o
+obj-$(CONFIG_SM_GPUCC_MILOS) += gpucc-milos.o gxclkctl-kaanapali.o
 obj-$(CONFIG_SM_LPASSCC_6115) += lpasscc-sm6115.o
 obj-$(CONFIG_SM_TCSRCC_8550) += tcsrcc-sm8550.o
 obj-$(CONFIG_SM_TCSRCC_8650) += tcsrcc-sm8650.o
index 40d856378a74aeb706c2f4a7a17a2c5602042af2..7b0af0ba1e685dc92507325936adfa2c97439ad7 100644 (file)
@@ -53,6 +53,7 @@ static const struct qcom_cc_desc gx_clkctl_kaanapali_desc = {
 static const struct of_device_id gx_clkctl_kaanapali_match_table[] = {
        { .compatible = "qcom,glymur-gxclkctl" },
        { .compatible = "qcom,kaanapali-gxclkctl" },
+       { .compatible = "qcom,milos-gxclkctl" },
        { .compatible = "qcom,sm8750-gxclkctl" },
        { }
 };