]> Git Repo - J-linux.git/commitdiff
soundwire: qcom: Enable software clock gating requirement flag
authorSrinivasa Rao Mandadapu <[email protected]>
Fri, 1 Jul 2022 07:17:07 +0000 (12:47 +0530)
committerVinod Koul <[email protected]>
Wed, 6 Jul 2022 16:44:51 +0000 (22:14 +0530)
Enable software clock gating flag in private data for SC7280
based platforms, which are soundwire 1.6.0 version based.

Signed-off-by: Srinivasa Rao Mandadapu <[email protected]>
Reviewed-by: Srinivas Kandagatla <[email protected]>
[vkoul: fix patch subystem tag]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
drivers/soundwire/qcom.c

index b48815d77f8d53b1c8f5f49fd18b081aca52ba12..9df970eeca454828d037a5836b09afbbfbef4cd1 100644 (file)
@@ -194,6 +194,12 @@ static const struct qcom_swrm_data swrm_v1_5_data = {
        .default_cols = 16,
 };
 
+static const struct qcom_swrm_data swrm_v1_6_data = {
+       .default_rows = 50,
+       .default_cols = 16,
+       .sw_clk_gate_required = true,
+};
+
 #define to_qcom_sdw(b) container_of(b, struct qcom_swrm_ctrl, bus)
 
 static int qcom_swrm_ahb_reg_read(struct qcom_swrm_ctrl *ctrl, int reg,
@@ -1572,7 +1578,7 @@ static const struct dev_pm_ops swrm_dev_pm_ops = {
 static const struct of_device_id qcom_swrm_of_match[] = {
        { .compatible = "qcom,soundwire-v1.3.0", .data = &swrm_v1_3_data },
        { .compatible = "qcom,soundwire-v1.5.1", .data = &swrm_v1_5_data },
-       { .compatible = "qcom,soundwire-v1.6.0", .data = &swrm_v1_5_data },
+       { .compatible = "qcom,soundwire-v1.6.0", .data = &swrm_v1_6_data },
        {/* sentinel */},
 };
 
This page took 0.052281 seconds and 4 git commands to generate.