]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/panfrost: add support for vendor quirk
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 16 Sep 2020 15:01:45 +0000 (17:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:08:24 +0000 (10:08 +0100)
commitcc618717afdd615cdc79ffd411c7b2784905f807
tree1e5fc72afb67aef1e679763896a2df7f9ccc5b47
parentc246a3325c7513a705ed89fcb5bcadd984a3e187
drm/panfrost: add support for vendor quirk

[ Upstream commit 91e89097b86f566636ea5a7329c79d5521be46d2 ]

The T820, G31 & G52 GPUs integrated by Amlogic in the respective GXM,
G12A/SM1 & G12B SoCs needs a quirk in the PWR registers after each reset.

This adds a callback in the device compatible struct of permit this.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
[Steven: Fix typo in commit log]
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-2-narmstrong@baylibre.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/panfrost/panfrost_device.h
drivers/gpu/drm/panfrost/panfrost_gpu.c