]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
drm: xilinx: crtc: Add crtc set config helper xilinx-v2016.1
authorPreetesh Parekh <preetesh.parekh@xilinx.com>
Mon, 25 Apr 2016 19:02:45 +0000 (12:02 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 26 Apr 2016 10:38:17 +0000 (12:38 +0200)
commitdd7c1f0b5c23bcac5046d77bd5e0631e657003a4
tree77166306b67e9b1de89e8c8e607e03d53d432e21
parent9c1d9104c4cd786ac80151bc11f548ca46c5f098
drm: xilinx: crtc: Add crtc set config helper

The goal is to be able to synchronize resolution changes between the
drm device and emulated fbdev device if both devices are used by an
application e.g. in Qt we use both graphics and video layer whereas
the former is controlled by fbdev and the latter by drm. This patch
propagates resolution changes from the drm device to fbdev. Before
setting the new mode, a copy of the old mode is saved locally and
restored upon last close.

work in progres:
If hot-plug events happen while the application is running, the mode
pre-application start will be restored instead of the mode set by the
last hot-plug event. For example if we switch monitors from 1080p to
4k while the application is running, last close will restore the
fbconsole to 1080p on the 4k monitor.

Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/gpu/drm/xilinx/xilinx_drm_crtc.c
drivers/gpu/drm/xilinx/xilinx_drm_drv.c
drivers/gpu/drm/xilinx/xilinx_drm_drv.h
drivers/gpu/drm/xilinx/xilinx_drm_fb.c
drivers/gpu/drm/xilinx/xilinx_drm_fb.h