aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/Kconfig
diff options
context:
space:
mode:
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>2012-10-04 09:32:52 -0400
committerSteffen Trumtrar <s.trumtrar@pengutronix.de>2013-01-24 03:03:48 -0500
commitcc3f414cf2e404130584b63d373161ba6fd24bc2 (patch)
tree08d61d026631c79a176f514fb1364b71011599ba /drivers/video/Kconfig
parent8714c0cecfc28f7ce73a520be4831f09743c4fd7 (diff)
video: add of helper for display timings/videomode
This adds support for reading display timings from DT into a struct display_timings. The of_display_timing implementation supports multiple subnodes. All children are read into an array, that can be queried. If no native mode is specified, the first subnode will be used. For cases where the graphics driver knows there can be only one mode description or where the driver only supports one mode, a helper function of_get_videomode is added, that gets a struct videomode from DT. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Acked-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Thierry Reding <thierry.reding@avionic-design.de> Acked-by: Thierry Reding <thierry.reding@avionic-design.de> Tested-by: Thierry Reding <thierry.reding@avionic-design.de> Tested-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Afzal Mohammed <Afzal@ti.com> Tested-by: Rob Clark <robclark@gmail.com> Tested-by: Leela Krishna Amudala <leelakrishna.a@gmail.com>
Diffstat (limited to 'drivers/video/Kconfig')
-rw-r--r--drivers/video/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig
index 09a8f0d8a3d4..807c7fa689fa 100644
--- a/drivers/video/Kconfig
+++ b/drivers/video/Kconfig
@@ -39,6 +39,21 @@ config DISPLAY_TIMING
39config VIDEOMODE 39config VIDEOMODE
40 bool 40 bool
41 41
42config OF_DISPLAY_TIMING
43 bool "Enable device tree display timing support"
44 depends on OF
45 select DISPLAY_TIMING
46 help
47 helper to parse display timings from the devicetree
48
49config OF_VIDEOMODE
50 bool "Enable device tree videomode support"
51 depends on OF
52 select VIDEOMODE
53 select OF_DISPLAY_TIMING
54 help
55 helper to get videomodes from the devicetree
56
42menuconfig FB 57menuconfig FB
43 tristate "Support for frame buffer devices" 58 tristate "Support for frame buffer devices"
44 ---help--- 59 ---help---