Skip to content

Commit d510544

Browse files
superna9999gregkh
authored andcommitted
drm/panfrost: add Amlogic GPU integration quirks
[ Upstream commit afcd0c7 ] 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 <narmstrong@baylibre.com> Reviewed-by: Steven Price <steven.price@arm.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Signed-off-by: Steven Price <steven.price@arm.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200916150147.25753-4-narmstrong@baylibre.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2d72d5c commit d510544

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

drivers/gpu/drm/panfrost/panfrost_drv.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,18 @@ static const struct panfrost_compatible default_data = {
667667
.pm_domain_names = NULL,
668668
};
669669

670+
static const struct panfrost_compatible amlogic_data = {
671+
.num_supplies = ARRAY_SIZE(default_supplies),
672+
.supply_names = default_supplies,
673+
.vendor_quirk = panfrost_gpu_amlogic_quirk,
674+
};
675+
670676
static const struct of_device_id dt_match[] = {
677+
/* Set first to probe before the generic compatibles */
678+
{ .compatible = "amlogic,meson-gxm-mali",
679+
.data = &amlogic_data, },
680+
{ .compatible = "amlogic,meson-g12a-mali",
681+
.data = &amlogic_data, },
671682
{ .compatible = "arm,mali-t604", .data = &default_data, },
672683
{ .compatible = "arm,mali-t624", .data = &default_data, },
673684
{ .compatible = "arm,mali-t628", .data = &default_data, },

0 commit comments

Comments
 (0)