]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
soc: qcom: ubwc: Add configuration Eliza SoC
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Wed, 25 Mar 2026 12:16:49 +0000 (13:16 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 25 Mar 2026 22:57:48 +0000 (17:57 -0500)
Add configuration data and an entry to OF table for matching the Eliza
SoC.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260325-drm-display-eliza-v3-8-dc2b2f0c74a2@oss.qualcomm.com
[bjorn: Reordered device_id list]
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/ubwc_config.c

index e63daf748e303602870c3d2c15676a8d48ed1eb8..355d9ea1f7d9d7727c5e532c9dd1bc660b016430 100644 (file)
@@ -16,6 +16,17 @@ static const struct qcom_ubwc_cfg_data no_ubwc_data = {
        /* no UBWC, no HBB */
 };
 
+static const struct qcom_ubwc_cfg_data eliza_data = {
+       .ubwc_enc_version = UBWC_5_0,
+       .ubwc_dec_version = UBWC_5_0,
+       .ubwc_swizzle = UBWC_SWIZZLE_ENABLE_LVL2 |
+                       UBWC_SWIZZLE_ENABLE_LVL3,
+       .ubwc_bank_spread = true,
+       /* TODO: highest_bank_bit = 14 for LP_DDR4 */
+       .highest_bank_bit = 15,
+       .macrotile_mode = true,
+};
+
 static const struct qcom_ubwc_cfg_data kaanapali_data = {
        .ubwc_enc_version = UBWC_6_0,
        .ubwc_dec_version = UBWC_6_0,
@@ -232,6 +243,7 @@ static const struct of_device_id qcom_ubwc_configs[] __maybe_unused = {
        { .compatible = "qcom,apq8026", .data = &no_ubwc_data },
        { .compatible = "qcom,apq8074", .data = &no_ubwc_data },
        { .compatible = "qcom,apq8096", .data = &msm8998_data },
+       { .compatible = "qcom,eliza", .data = &eliza_data, },
        { .compatible = "qcom,kaanapali", .data = &kaanapali_data, },
        { .compatible = "qcom,glymur", .data = &glymur_data},
        { .compatible = "qcom,msm8226", .data = &no_ubwc_data },