Skip to content

Commit c82b4d7

Browse files
lw-karopH5
authored andcommitted
drm/imx: imx-ldb: honor 'native-mode' property when selecting video mode from DT
This patch allows to select a specific video mode from a list of modes defined in DT by setting the 'native-mode' property appropriately. This change does not affect the behaviour of existing platforms, since they either: - have just one display-timings subnode - have the native-mode property pointing to the first entry - let the bootloader select the appropriate timing Signed-off-by: Lothar Waßmann <[email protected]> Signed-off-by: Philipp Zabel <[email protected]>
1 parent 97a6075 commit c82b4d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/imx/imx-ldb.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
2626
#include <linux/of_device.h>
2727
#include <linux/of_graph.h>
28+
#include <video/of_display_timing.h>
2829
#include <video/of_videomode.h>
2930
#include <linux/regmap.h>
3031
#include <linux/videodev2.h>
@@ -625,7 +626,7 @@ static int imx_ldb_bind(struct device *dev, struct device *master, void *data)
625626
/* fallback to display-timings node */
626627
ret = of_get_drm_display_mode(child,
627628
&channel->mode,
628-
0);
629+
OF_USE_NATIVE_MODE);
629630
if (!ret)
630631
channel->mode_valid = 1;
631632
}

0 commit comments

Comments
 (0)