summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-09-02 17:52:43 -0700
committerPhilippe Schenker <philippe.schenker@toradex.com>2019-05-24 11:34:17 +0200
commit721dee144c883aebd6e997a53eed3ab3c24cef79 (patch)
tree9a06fba50f021e61bec477dfd9b95481ae515170 /drivers/video
parent6ac28d32aba361ee987231530a38ad233329625c (diff)
video: fbdev: mxsfb: honor native-mode
Honor the native-mode property by adding only that mode to the mode list. With that we loose the list of modes, but we currently don't make use of it anyway. Also, the mode list lacks the pixel clock polarity information since struct fb_videomode does not store this information. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 3cb3771edb98e2ae79a887368fc042b89456da7e)
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/mxsfb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c
index 697963a395ec..8dd9cc694c2f 100644
--- a/drivers/video/fbdev/mxsfb.c
+++ b/drivers/video/fbdev/mxsfb.c
@@ -1418,6 +1418,10 @@ static int mxsfb_init_fbinfo_dt(struct mxsfb_info *host)
INIT_LIST_HEAD(&fb_info->modelist);
for (i = 0; i < timings->num_timings; i++) {
+ /* Only consider native mode */
+ if (i != timings->native_mode)
+ continue;
+
ret = videomode_from_timings(timings, &vm, i);
if (ret < 0)
goto put_display_node;