summaryrefslogtreecommitdiff
path: root/drivers/media/platform/vsp1/vsp1.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2016-07-12 10:59:52 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-09-09 17:31:42 +0300
commit47b4bafd2c510726fd653e7f165634f774e36fb0 (patch)
tree8720e375fb42b85b08725231feb3845aa4110264 /drivers/media/platform/vsp1/vsp1.h
parentf077aa7774bec90dd0e20708f8d5032a7354bfa3 (diff)
downloadlinux-47b4bafd2c510726fd653e7f165634f774e36fb0.tar.xz
[media] v4l: vsp1: Report device model and rev through media device information
Instead of hardcoding the media device model and hardware revision to "VSP1" and 0 respectively, report the actual hardware device model and IP version number. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/vsp1/vsp1.h')
-rw-r--r--drivers/media/platform/vsp1/vsp1.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/vsp1/vsp1.h b/drivers/media/platform/vsp1/vsp1.h
index 06a2ec7e5ad4..b23fa879a9aa 100644
--- a/drivers/media/platform/vsp1/vsp1.h
+++ b/drivers/media/platform/vsp1/vsp1.h
@@ -53,6 +53,7 @@ struct vsp1_uds;
struct vsp1_device_info {
u32 version;
+ const char *model;
unsigned int gen;
unsigned int features;
unsigned int rpf_count;
@@ -65,6 +66,7 @@ struct vsp1_device_info {
struct vsp1_device {
struct device *dev;
const struct vsp1_device_info *info;
+ u32 version;
void __iomem *mmio;
struct rcar_fcp_device *fcp;