diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2014-03-17 11:27:17 +0100 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2014-03-24 00:36:39 +0900 |
commit | 25928a395e89423c2d8f8a8620dc213702a05105 (patch) | |
tree | 8a42e817b9d8c32500700ca9e5e44cc43762424f /drivers/gpu/drm/exynos/exynos_drm_fb.c | |
parent | d2ba65f6a1dc1105c97349257e41cf1db87e47f7 (diff) | |
download | linux-25928a395e89423c2d8f8a8620dc213702a05105.tar.gz linux-25928a395e89423c2d8f8a8620dc213702a05105.tar.bz2 linux-25928a395e89423c2d8f8a8620dc213702a05105.zip |
drm/exynos: delay fbdev initialization until an output is connected
In case fbdev is initialized before any output is connected,
fb resolution defaults to 1024x768. After that any output with
bigger resolution is ignored and fbdev is not displayed.
The patch postpones fbdev initialization to avoid such situation.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_fb.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fb.c b/drivers/gpu/drm/exynos/exynos_drm_fb.c index c7c08d014125..65a22cad7b36 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fb.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fb.c @@ -20,6 +20,7 @@ #include "exynos_drm_drv.h" #include "exynos_drm_fb.h" +#include "exynos_drm_fbdev.h" #include "exynos_drm_gem.h" #include "exynos_drm_iommu.h" #include "exynos_drm_crtc.h" @@ -300,6 +301,8 @@ static void exynos_drm_output_poll_changed(struct drm_device *dev) if (fb_helper) drm_fb_helper_hotplug_event(fb_helper); + else + exynos_drm_fbdev_init(dev); } static const struct drm_mode_config_funcs exynos_drm_mode_config_funcs = { |