drm/vc4: Attach margin props to the HDMI connector
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 6 Dec 2018 14:24:39 +0000 (15:24 +0100)
committerpopcornmix <popcornmix@gmail.com>
Tue, 23 Jul 2019 18:05:50 +0000 (19:05 +0100)
commit5352ca0ec04a242a6b8e197ce1238029948a559c
treef8ed20dc5694f6ec77084f24e007c8499a3a0a3c
parentf8fa37e1f48b98e06f04a4f01c2ea7fec63614c3
drm/vc4: Attach margin props to the HDMI connector

Commit db999538fdb0679629d90652f8a1437df1e85a7d upstream.

Now that the plane code takes the margins setup into account, we can
safely attach margin props to the HDMI connector.

We also take care of filling AVI infoframes correctly to expose the
top/botton/left/right bar.

Note that those margin props match pretty well the
overscan_{left,right,top,bottom} properties defined in config.txt and
parsed by the VC4 firmware.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181206142439.10441-6-boris.brezillon@bootlin.com
drivers/gpu/drm/vc4/vc4_hdmi.c