summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/arm/malidp_regs.h
diff options
context:
space:
mode:
authorMihail Atanassov <mihail.atanassov@arm.com>2017-01-23 16:46:41 +0300
committerLiviu Dudau <Liviu.Dudau@arm.com>2017-01-26 18:46:02 +0300
commit592d8c8ccef6c8bdbe6d03fd01fd5baea921dc83 (patch)
tree600ca167038a30a6053c1c0f4f07b464ee525259 /drivers/gpu/drm/arm/malidp_regs.h
parent6211b4868ea615227d61859d65e22bd2942f32a0 (diff)
downloadlinux-592d8c8ccef6c8bdbe6d03fd01fd5baea921dc83.tar.xz
drm: mali-dp: Check hw version matches device-tree
Refuse to bind if the device-tree compatible string lists a different hardware version. Reviewed-by: Brian Starkey <brian.starkey@arm.com> Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com> Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Diffstat (limited to 'drivers/gpu/drm/arm/malidp_regs.h')
-rw-r--r--drivers/gpu/drm/arm/malidp_regs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/arm/malidp_regs.h b/drivers/gpu/drm/arm/malidp_regs.h
index 73fecb38f955..7a89997dd134 100644
--- a/drivers/gpu/drm/arm/malidp_regs.h
+++ b/drivers/gpu/drm/arm/malidp_regs.h
@@ -92,6 +92,8 @@
#define MALIDP_DE_H_ACTIVE(x) (((x) & 0x1fff) << 0)
#define MALIDP_DE_V_ACTIVE(x) (((x) & 0x1fff) << 16)
+#define MALIDP_PRODUCT_ID(__core_id) ((u32)(__core_id) >> 16)
+
/* register offsets and bits specific to DP500 */
#define MALIDP500_DC_BASE 0x00000
#define MALIDP500_DC_CONTROL 0x0000c