[PATCH v2 2/4] drm/panthor: Add SHADER_PWRFEATURES register definition

Nicolas Frattaroli posted 4 patches 1 month, 4 weeks ago
There is a newer version of this series
[PATCH v2 2/4] drm/panthor: Add SHADER_PWRFEATURES register definition
Posted by Nicolas Frattaroli 1 month, 4 weeks ago
Available starting with Mali v12, the SHADER_PWRFEATURES register is a
32-bit register that contains a single bit so far. This bit flag
indicates whether the RT cores should be powered up or not.

The name "SHADER_PWRFEATURES" (as opposed to "SHADER_POWER_FEATURES") is
taken directly from official hardware documentation.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
---
 drivers/gpu/drm/panthor/panthor_regs.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/panthor/panthor_regs.h b/drivers/gpu/drm/panthor/panthor_regs.h
index 08bf06c452d6..4c79cec8dc21 100644
--- a/drivers/gpu/drm/panthor/panthor_regs.h
+++ b/drivers/gpu/drm/panthor/panthor_regs.h
@@ -96,6 +96,8 @@
 #define L2_READY					0x160
 
 #define SHADER_PWRON					0x180
+#define SHADER_PWRFEATURES				0x188
+#define   SHADER_PWRFEATURES_RT				BIT(0)
 #define TILER_PWRON					0x190
 #define L2_PWRON					0x1A0
 

-- 
2.52.0