Skip to content

Commit 6841f6f

Browse files
AngeloGioacchino Del RegnoChun-Kuang Hu
authored andcommitted
drm/mediatek: gamma: Add support for MT8195
Now that this driver supports 12-bit LUTs, we can add support for the DISP_GAMMA found on the MT8195 SoC: add its driver data and compatible. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: CK Hu <[email protected]> Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent af0e042 commit 6841f6f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/gpu/drm/mediatek/mtk_disp_gamma.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,20 @@ static const struct mtk_disp_gamma_data mt8183_gamma_driver_data = {
283283
.lut_size = 512,
284284
};
285285

286+
static const struct mtk_disp_gamma_data mt8195_gamma_driver_data = {
287+
.lut_bank_size = 256,
288+
.lut_bits = 12,
289+
.lut_diff = true,
290+
.lut_size = 1024,
291+
};
292+
286293
static const struct of_device_id mtk_disp_gamma_driver_dt_match[] = {
287294
{ .compatible = "mediatek,mt8173-disp-gamma",
288295
.data = &mt8173_gamma_driver_data},
289296
{ .compatible = "mediatek,mt8183-disp-gamma",
290297
.data = &mt8183_gamma_driver_data},
298+
{ .compatible = "mediatek,mt8195-disp-gamma",
299+
.data = &mt8195_gamma_driver_data},
291300
{},
292301
};
293302
MODULE_DEVICE_TABLE(of, mtk_disp_gamma_driver_dt_match);

0 commit comments

Comments
 (0)