summaryrefslogtreecommitdiff
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-09 11:13:55 +0200
commitc000827003594be386e326b2fd7d6188954e0d30 (patch)
tree6b7ddf6d5f63dbaa88e7ff022277b3adac480add
parent06d8724eb16d927e13fbd9b9331ea934505be2da (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)
-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 927a85577a55..b756c969c36c 100644
--- a/drivers/video/fbdev/mxsfb.c
+++ b/drivers/video/fbdev/mxsfb.c
@@ -1416,6 +1416,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;