Skip to content

Commit 95bdaa8

Browse files
loki666stevenprice-arm
authored andcommitted
drm/panfrost: add h616 compatible string
Tie the Allwinner compatible string to the GPU_PM_RT feature bits that will toggle the clocks and the reset line whenever the power domain is changing state. Reviewed-by: Steven Price <steven.price@arm.com> Signed-off-by: Philippe Simons <simons.philippe@gmail.com> Signed-off-by: Steven Price <steven.price@arm.com> Link: https://lore.kernel.org/r/20250403055210.54486-3-simons.philippe@gmail.com
1 parent d76ebdf commit 95bdaa8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/gpu/drm/panfrost/panfrost_drv.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,13 @@ static const struct panfrost_compatible default_data = {
776776
.pm_domain_names = NULL,
777777
};
778778

779+
static const struct panfrost_compatible allwinner_h616_data = {
780+
.num_supplies = ARRAY_SIZE(default_supplies) - 1,
781+
.supply_names = default_supplies,
782+
.num_pm_domains = 1,
783+
.pm_features = BIT(GPU_PM_RT),
784+
};
785+
779786
static const struct panfrost_compatible amlogic_data = {
780787
.num_supplies = ARRAY_SIZE(default_supplies) - 1,
781788
.supply_names = default_supplies,
@@ -861,6 +868,7 @@ static const struct of_device_id dt_match[] = {
861868
{ .compatible = "mediatek,mt8186-mali", .data = &mediatek_mt8186_data },
862869
{ .compatible = "mediatek,mt8188-mali", .data = &mediatek_mt8188_data },
863870
{ .compatible = "mediatek,mt8192-mali", .data = &mediatek_mt8192_data },
871+
{ .compatible = "allwinner,sun50i-h616-mali", .data = &allwinner_h616_data },
864872
{}
865873
};
866874
MODULE_DEVICE_TABLE(of, dt_match);

0 commit comments

Comments
 (0)