diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2016-09-02 17:52:43 -0700 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-12-24 01:27:34 +0100 |
commit | 0342aaf0e15ffe05eccfcf173cf47b88b008be52 (patch) | |
tree | 6ab05ca6bfabfeab0eeaa30d87db70a38fa51815 /drivers | |
parent | 0ee389f293b59bb475ac811ec308a33d3ade1034 (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')
-rw-r--r-- | drivers/video/fbdev/mxsfb.c | 4 |
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; |