drm/imx: imx-ldb: honor 'native-mode' property when selecting video mode from DT
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 24 May 2016 06:31:49 +0000 (08:31 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 30 May 2016 07:14:00 +0000 (09:14 +0200)
commitc82b4d73e2cd32fff41be0cd6e75ea83d32943b3
tree762d21fe0ac1674ae46dbc7672826e435aa56725
parent97a6075d7cfabd0d45f8667a89da2a5fd13b4e70
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 <LW@KARO-electronics.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-ldb.c