Files
erofs-linux/include/video/of_videomode.h
T
Steffen Trumtrar cc3f414cf2 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 <[email protected]>
Signed-off-by: Philipp Zabel <[email protected]>
Acked-by: Stephen Warren <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Tested-by: Thierry Reding <[email protected]>
Tested-by: Philipp Zabel <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Acked-by: Laurent Pinchart <[email protected]>
Tested-by: Afzal Mohammed <[email protected]>
Tested-by: Rob Clark <[email protected]>
Tested-by: Leela Krishna Amudala <[email protected]>
2013-01-24 09:03:48 +01:00

19 lines
367 B
C

/*
* Copyright 2012 Steffen Trumtrar <[email protected]>
*
* videomode of-helpers
*
* This file is released under the GPLv2
*/
#ifndef __LINUX_OF_VIDEOMODE_H
#define __LINUX_OF_VIDEOMODE_H
struct device_node;
struct videomode;
int of_get_videomode(struct device_node *np, struct videomode *vm,
int index);
#endif /* __LINUX_OF_VIDEOMODE_H */