diff options
author | Rex-BC Chen <rex-bc.chen@mediatek.com> | 2021-03-18 08:40:56 +0300 |
---|---|---|
committer | Chun-Kuang Hu <chunkuang.hu@kernel.org> | 2021-03-20 09:59:15 +0300 |
commit | 38eaef2dca4ec8dfb9ea84d9dde0f76da5c8caaa (patch) | |
tree | 7be060bc0969aa3fca2c00700704fe1cdfb5440a /drivers/gpu/drm/mediatek | |
parent | 44b07120291c4b7a6722ccb7149f6b9d938cf5a2 (diff) | |
download | linux-38eaef2dca4ec8dfb9ea84d9dde0f76da5c8caaa.tar.xz |
drm/mediatek: dpi: Add config for mt8192
Add dpi config setting and compatible for MT8192.
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/mediatek')
-rw-r--r-- | drivers/gpu/drm/mediatek/mtk_dpi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 07afbdd19ab1..04d60b3d3c5a 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -699,6 +699,12 @@ static const struct mtk_dpi_conf mt8183_conf = { .max_clock_khz = 100000, }; +static const struct mtk_dpi_conf mt8192_conf = { + .cal_factor = mt8183_calculate_factor, + .reg_h_fre_con = 0xe0, + .max_clock_khz = 150000, +}; + static int mtk_dpi_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -817,6 +823,9 @@ static const struct of_device_id mtk_dpi_of_ids[] = { { .compatible = "mediatek,mt8183-dpi", .data = &mt8183_conf, }, + { .compatible = "mediatek,mt8192-dpi", + .data = &mt8192_conf, + }, { }, }; |