Merge tag 'imx-drm-fixes-2018-08-03' of git://git.pengutronix.de/git/pza/linux into drm-next
drm/imx: ipu-v3 plane offset and IPU id fixes - Fix U/V plane offsets for odd vertical offsets. Due to wrong operator order, the y offset was not rounded down properly for vertically chroma subsampled planar formats. - Fix IPU id number for boards that don't have an OF alias for their single IPU in the device tree. This is necessary to support imx-media on i.MX51 and i.MX53 SoCs. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Philipp Zabel <p.zabel@pengutronix.de> Link: https://patchwork.freedesktop.org/patch/msgid/1533552680.4204.14.camel@pengutronix.de
This commit is contained in:
@@ -1405,6 +1405,8 @@ static int ipu_probe(struct platform_device *pdev)
|
||||
return -ENODEV;
|
||||
|
||||
ipu->id = of_alias_get_id(np, "ipu");
|
||||
if (ipu->id < 0)
|
||||
ipu->id = 0;
|
||||
|
||||
if (of_device_is_compatible(np, "fsl,imx6qp-ipu") &&
|
||||
IS_ENABLED(CONFIG_DRM)) {
|
||||
|
Reference in New Issue
Block a user