aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/Kconfig
diff options
context:
space:
mode:
authorArchit Taneja <architt@codeaurora.org>2015-08-05 02:58:57 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-08-06 08:13:08 -0400
commita03fdcb1863297481a4b817c2a759cafcbdfa0ae (patch)
tree8a6933c0855f6e637c82701f711b98581bf67fc3 /drivers/gpu/drm/Kconfig
parent2c4124fdeaea4b70120da3bddf90c4587e65bbc6 (diff)
drm: Add top level Kconfig option for DRM fbdev emulation
Legacy fbdev emulation support via DRM is achieved through KMS FB helpers. Most modesetting drivers enable provide fbdev emulation by default by selecting KMS FB helpers. A few provide a separate Kconfig option for the user to enable or disbale fbdev emulation. Enabling fbdev emulation is finally a distro-level decision. Having a top level Kconfig option for fbdev emulation helps by providing a uniform way to enable/disable fbdev emulation for any modesetting driver. It also lets us remove unnecessary driver specific Kconfig options that causes bloat. With a top level Kconfig in place, we can stub out the fb helper functions when not needed without breaking functionality. Having stub functions also prevents drivers to require wrapping fb helper function calls with #ifdefs. DRM_FBDEV_EMULATION defaults to y since many drivers enable fbdev emulation by default and majority of distributions expect the fbdev interface in the kernel. Signed-off-by: Archit Taneja <architt@codeaurora.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/Kconfig')
-rw-r--r--drivers/gpu/drm/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
index 35a8c0bf360f..06ae5008c5ed 100644
--- a/drivers/gpu/drm/Kconfig
+++ b/drivers/gpu/drm/Kconfig
@@ -47,6 +47,19 @@ config DRM_KMS_FB_HELPER
47 help 47 help
48 FBDEV helpers for KMS drivers. 48 FBDEV helpers for KMS drivers.
49 49
50config DRM_FBDEV_EMULATION
51 bool "Enable legacy fbdev support for your modesetting driver"
52 depends on DRM
53 select DRM_KMS_HELPER
54 select DRM_KMS_FB_HELPER
55 default y
56 help
57 Choose this option if you have a need for the legacy fbdev
58 support. Note that this support also provides the linux console
59 support on top of your modesetting driver.
60
61 If in doubt, say "Y".
62
50config DRM_LOAD_EDID_FIRMWARE 63config DRM_LOAD_EDID_FIRMWARE
51 bool "Allow to specify an EDID data set instead of probing for it" 64 bool "Allow to specify an EDID data set instead of probing for it"
52 depends on DRM_KMS_HELPER 65 depends on DRM_KMS_HELPER