Skip to content

Commit 624a972

Browse files
krzkandersson
authored andcommitted
soc: qcom: ubwc: Remove redundant x1e80100_data
UBWC data for X1E80100 is exactly the same as one for SM8550, so reduce code duplication by reusing older entry. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260325120846.139836-2-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent b4d4a4f commit 624a972

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

drivers/soc/qcom/ubwc_config.c

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -217,17 +217,6 @@ static const struct qcom_ubwc_cfg_data sm8750_data = {
217217
.macrotile_mode = true,
218218
};
219219

220-
static const struct qcom_ubwc_cfg_data x1e80100_data = {
221-
.ubwc_enc_version = UBWC_4_0,
222-
.ubwc_dec_version = UBWC_4_3,
223-
.ubwc_swizzle = UBWC_SWIZZLE_ENABLE_LVL2 |
224-
UBWC_SWIZZLE_ENABLE_LVL3,
225-
.ubwc_bank_spread = true,
226-
/* TODO: highest_bank_bit = 15 for LP_DDR4 */
227-
.highest_bank_bit = 16,
228-
.macrotile_mode = true,
229-
};
230-
231220
static const struct qcom_ubwc_cfg_data glymur_data = {
232221
.ubwc_enc_version = UBWC_5_0,
233222
.ubwc_dec_version = UBWC_5_0,
@@ -293,8 +282,8 @@ static const struct of_device_id qcom_ubwc_configs[] __maybe_unused = {
293282
{ .compatible = "qcom,sm8550", .data = &sm8550_data, },
294283
{ .compatible = "qcom,sm8650", .data = &sm8550_data, },
295284
{ .compatible = "qcom,sm8750", .data = &sm8750_data, },
296-
{ .compatible = "qcom,x1e80100", .data = &x1e80100_data, },
297-
{ .compatible = "qcom,x1p42100", .data = &x1e80100_data, },
285+
{ .compatible = "qcom,x1e80100", .data = &sm8550_data, },
286+
{ .compatible = "qcom,x1p42100", .data = &sm8550_data, },
298287
{ }
299288
};
300289

0 commit comments

Comments
 (0)