summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/arm/malidp_drv.h
diff options
context:
space:
mode:
authorLiviu Dudau <Liviu.Dudau@arm.com>2017-04-05 11:55:26 +0100
committerLiviu Dudau <Liviu.Dudau@arm.com>2017-04-24 10:45:34 +0100
commit50c7512fd7496129d774ccabf32537e9a45be186 (patch)
treed1a834196124f4d01afea95e9cec24f61491dcab /drivers/gpu/drm/arm/malidp_drv.h
parent6954f24588ebddc2e3c840103f02d1fe7e65a2d6 (diff)
downloadlinux-stable-50c7512fd7496129d774ccabf32537e9a45be186.tar.gz
linux-stable-50c7512fd7496129d774ccabf32537e9a45be186.tar.bz2
linux-stable-50c7512fd7496129d774ccabf32537e9a45be186.zip
drm/mali-dp: Add core_id file to the sysfs interface
Add a core_id file in the driver's sysfs directory, exposing the hardware CORE ID. This is useful to allow userspace to discover the hardware version used. 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_drv.h')
-rw-r--r--drivers/gpu/drm/arm/malidp_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/arm/malidp_drv.h b/drivers/gpu/drm/arm/malidp_drv.h
index e1c784dcdd92..75070efda2fc 100644
--- a/drivers/gpu/drm/arm/malidp_drv.h
+++ b/drivers/gpu/drm/arm/malidp_drv.h
@@ -25,6 +25,7 @@ struct malidp_drm {
wait_queue_head_t wq;
atomic_t config_valid;
struct drm_atomic_state *pm_state;
+ u32 core_id;
};
#define crtc_to_malidp_device(x) container_of(x, struct malidp_drm, crtc)