Skip to content

Commit afcd0c7

Browse files
superna9999Steven Price
authored andcommitted
drm/panfrost: add Amlogic GPU integration quirks
This adds the required GPU quirks, including the quirk in the PWR registers at the GPU reset time and the IOMMU quirk for shareability issues observed on G52 in Amlogic G12B SoCs. Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Steven Price <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Signed-off-by: Steven Price <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 1100030 commit afcd0c7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/gpu/drm/panfrost/panfrost_drv.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,18 @@ static const struct panfrost_compatible default_data = {
656656
.pm_domain_names = NULL,
657657
};
658658

659+
static const struct panfrost_compatible amlogic_data = {
660+
.num_supplies = ARRAY_SIZE(default_supplies),
661+
.supply_names = default_supplies,
662+
.vendor_quirk = panfrost_gpu_amlogic_quirk,
663+
};
664+
659665
static const struct of_device_id dt_match[] = {
666+
/* Set first to probe before the generic compatibles */
667+
{ .compatible = "amlogic,meson-gxm-mali",
668+
.data = &amlogic_data, },
669+
{ .compatible = "amlogic,meson-g12a-mali",
670+
.data = &amlogic_data, },
660671
{ .compatible = "arm,mali-t604", .data = &default_data, },
661672
{ .compatible = "arm,mali-t624", .data = &default_data, },
662673
{ .compatible = "arm,mali-t628", .data = &default_data, },

0 commit comments

Comments
 (0)