drm/panfrost: Implement ability to turn on/off regulators in suspend
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 9 Nov 2023 10:25:42 +0000 (11:25 +0100)
committerSteven Price <steven.price@arm.com>
Fri, 10 Nov 2023 14:12:16 +0000 (14:12 +0000)
commit889a2b06f823575f4e8def0fe60d294365b0e1f9
treee2c594bcf25f5d820c2a8056eafc7bbf67717290
parent32f175d4261a2c940fe7913f509f9f41c105b2b6
drm/panfrost: Implement ability to turn on/off regulators in suspend

Some platforms/SoCs can power off the GPU entirely by completely cutting
off power, greatly enhancing battery time during system suspend: add a
new pm_feature GPU_PM_VREG_OFF to allow turning off the GPU regulators
during full suspend only on selected platforms.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231109102543.42971-6-angelogioacchino.delregno@collabora.com
drivers/gpu/drm/panfrost/panfrost_device.c
drivers/gpu/drm/panfrost/panfrost_device.h