mirror of https://github.com/armbian/build.git
53 lines
1.8 KiB
Diff
53 lines
1.8 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
|
Date: Sat, 25 Apr 2020 22:14:27 +0200
|
|
Subject: drm/meson: Enable support for Meson8/Meson8b/Meson8m2
|
|
|
|
Add a compatible string for each of the three SoCs now that all hardware
|
|
specific quirks are added to the driver.
|
|
|
|
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
|
---
|
|
drivers/gpu/drm/meson/meson_drv.c | 18 ++++++++++
|
|
1 file changed, 18 insertions(+)
|
|
|
|
diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c
|
|
index 111111111111..222222222222 100644
|
|
--- a/drivers/gpu/drm/meson/meson_drv.c
|
|
+++ b/drivers/gpu/drm/meson/meson_drv.c
|
|
@@ -660,6 +660,18 @@ static void meson_drv_remove(struct platform_device *pdev)
|
|
component_master_del(&pdev->dev, &meson_drv_master_ops);
|
|
}
|
|
|
|
+static struct meson_drm_match_data meson_drm_m8_data = {
|
|
+ .compat = VPU_COMPATIBLE_M8,
|
|
+};
|
|
+
|
|
+static struct meson_drm_match_data meson_drm_m8b_data = {
|
|
+ .compat = VPU_COMPATIBLE_M8B,
|
|
+};
|
|
+
|
|
+static struct meson_drm_match_data meson_drm_m8m2_data = {
|
|
+ .compat = VPU_COMPATIBLE_M8M2,
|
|
+};
|
|
+
|
|
static struct meson_drm_match_data meson_drm_gxbb_data = {
|
|
.compat = VPU_COMPATIBLE_GXBB,
|
|
};
|
|
@@ -679,6 +691,12 @@ static struct meson_drm_match_data meson_drm_g12a_data = {
|
|
};
|
|
|
|
static const struct of_device_id dt_match[] = {
|
|
+ { .compatible = "amlogic,meson8-vpu",
|
|
+ .data = (void *)&meson_drm_m8_data },
|
|
+ { .compatible = "amlogic,meson8b-vpu",
|
|
+ .data = (void *)&meson_drm_m8b_data },
|
|
+ { .compatible = "amlogic,meson8m2-vpu",
|
|
+ .data = (void *)&meson_drm_m8m2_data },
|
|
{ .compatible = "amlogic,meson-gxbb-vpu",
|
|
.data = (void *)&meson_drm_gxbb_data },
|
|
{ .compatible = "amlogic,meson-gxl-vpu",
|
|
--
|
|
Armbian
|
|
|