summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/imx/ipuv3-plane.h
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2016-02-23 10:22:51 +0100
committerPhilipp Zabel <p.zabel@pengutronix.de>2016-03-31 11:23:31 +0200
commit67ca6b60a72aa940f1db41268f8530e19a7525fd (patch)
treeb16e8d975548119d9f732d685bc93164700bc631 /drivers/gpu/drm/imx/ipuv3-plane.h
parent90195c3651800f9a7c14956f90c2b4eb0bc8f1fb (diff)
downloadlinux-67ca6b60a72aa940f1db41268f8530e19a7525fd.tar.gz
linux-67ca6b60a72aa940f1db41268f8530e19a7525fd.tar.bz2
linux-67ca6b60a72aa940f1db41268f8530e19a7525fd.zip
drm/imx: ipuv3-plane: Add more thorough checks for plane parameter limitations
The IPU addresses multiplanar formats using a base address and relative offsets for the secondary planes. Since those offsets must be positive and not too large, and none of the plane parameters except the base address may be changed while scanout is active, store the pitches and u/v offsets and check all values against IDMAC limitations. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/imx/ipuv3-plane.h')
-rw-r--r--drivers/gpu/drm/imx/ipuv3-plane.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/imx/ipuv3-plane.h b/drivers/gpu/drm/imx/ipuv3-plane.h
index 3a443b413c60..4448fd4ad4eb 100644
--- a/drivers/gpu/drm/imx/ipuv3-plane.h
+++ b/drivers/gpu/drm/imx/ipuv3-plane.h
@@ -29,6 +29,10 @@ struct ipu_plane {
int w;
int h;
+ unsigned int u_offset;
+ unsigned int v_offset;
+ unsigned int stride[2];
+
bool enabled;
};