mirror of https://gitee.com/openkylin/linux.git
drm/mediatek: Add disp-color MT8167 support
Add support for disp-color on MT8167 SoC. Signed-off-by: Fabien Parent <fparent@baylibre.com> Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
This commit is contained in:
parent
ca3407a1ca
commit
f376244df4
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#define DISP_COLOR_CFG_MAIN 0x0400
|
#define DISP_COLOR_CFG_MAIN 0x0400
|
||||||
#define DISP_COLOR_START_MT2701 0x0f00
|
#define DISP_COLOR_START_MT2701 0x0f00
|
||||||
|
#define DISP_COLOR_START_MT8167 0x0400
|
||||||
#define DISP_COLOR_START_MT8173 0x0c00
|
#define DISP_COLOR_START_MT8173 0x0c00
|
||||||
#define DISP_COLOR_START(comp) ((comp)->data->color_offset)
|
#define DISP_COLOR_START(comp) ((comp)->data->color_offset)
|
||||||
#define DISP_COLOR_WIDTH(comp) (DISP_COLOR_START(comp) + 0x50)
|
#define DISP_COLOR_WIDTH(comp) (DISP_COLOR_START(comp) + 0x50)
|
||||||
|
@ -148,6 +149,10 @@ static const struct mtk_disp_color_data mt2701_color_driver_data = {
|
||||||
.color_offset = DISP_COLOR_START_MT2701,
|
.color_offset = DISP_COLOR_START_MT2701,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct mtk_disp_color_data mt8167_color_driver_data = {
|
||||||
|
.color_offset = DISP_COLOR_START_MT8167,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct mtk_disp_color_data mt8173_color_driver_data = {
|
static const struct mtk_disp_color_data mt8173_color_driver_data = {
|
||||||
.color_offset = DISP_COLOR_START_MT8173,
|
.color_offset = DISP_COLOR_START_MT8173,
|
||||||
};
|
};
|
||||||
|
@ -155,6 +160,8 @@ static const struct mtk_disp_color_data mt8173_color_driver_data = {
|
||||||
static const struct of_device_id mtk_disp_color_driver_dt_match[] = {
|
static const struct of_device_id mtk_disp_color_driver_dt_match[] = {
|
||||||
{ .compatible = "mediatek,mt2701-disp-color",
|
{ .compatible = "mediatek,mt2701-disp-color",
|
||||||
.data = &mt2701_color_driver_data},
|
.data = &mt2701_color_driver_data},
|
||||||
|
{ .compatible = "mediatek,mt8167-disp-color",
|
||||||
|
.data = &mt8167_color_driver_data},
|
||||||
{ .compatible = "mediatek,mt8173-disp-color",
|
{ .compatible = "mediatek,mt8173-disp-color",
|
||||||
.data = &mt8173_color_driver_data},
|
.data = &mt8173_color_driver_data},
|
||||||
{},
|
{},
|
||||||
|
|
Loading…
Reference in New Issue