Il 15/02/26 09:53, Luca Leonardo Scorcia ha scritto:
From: Val Packett <[email protected]>

While this configuration is otherwise identical to mt8173, according
to Android kernel sources, this SoC does need smi_id_en.

Signed-off-by: Val Packett <[email protected]>
Signed-off-by: Luca Leonardo Scorcia <[email protected]>

Okay, sure.

Reviewed-by: AngeloGioacchino Del Regno 
<[email protected]>

---
  drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 12 ++++++++++++
  1 file changed, 12 insertions(+)

diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c 
b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c
index e0236353d499..97a899e4bd99 100644
--- a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c
+++ b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c
@@ -671,6 +671,16 @@ static const struct mtk_disp_ovl_data 
mt2701_ovl_driver_data = {
        .num_formats = ARRAY_SIZE(mt8173_formats),
  };
+static const struct mtk_disp_ovl_data mt8167_ovl_driver_data = {
+       .addr = DISP_REG_OVL_ADDR_MT8173,
+       .gmc_bits = 8,
+       .layer_nr = 4,
+       .fmt_rgb565_is_0 = true,
+       .smi_id_en = true,
+       .formats = mt8173_formats,
+       .num_formats = ARRAY_SIZE(mt8173_formats),
+};
+
  static const struct mtk_disp_ovl_data mt8173_ovl_driver_data = {
        .addr = DISP_REG_OVL_ADDR_MT8173,
        .gmc_bits = 8,
@@ -742,6 +752,8 @@ static const struct mtk_disp_ovl_data 
mt8195_ovl_driver_data = {
  static const struct of_device_id mtk_disp_ovl_driver_dt_match[] = {
        { .compatible = "mediatek,mt2701-disp-ovl",
          .data = &mt2701_ovl_driver_data},
+       { .compatible = "mediatek,mt8167-disp-ovl",
+         .data = &mt8167_ovl_driver_data},
        { .compatible = "mediatek,mt8173-disp-ovl",
          .data = &mt8173_ovl_driver_data},
        { .compatible = "mediatek,mt8183-disp-ovl",


Reply via email to