diff options
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/omap2/dss/dispc.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/video/fbdev/omap2/dss/dispc.c b/drivers/video/fbdev/omap2/dss/dispc.c index 37373b61784e..be053aa80880 100644 --- a/drivers/video/fbdev/omap2/dss/dispc.c +++ b/drivers/video/fbdev/omap2/dss/dispc.c | |||
@@ -2879,22 +2879,24 @@ static bool _dispc_mgr_pclk_ok(enum omap_channel channel, | |||
2879 | bool dispc_mgr_timings_ok(enum omap_channel channel, | 2879 | bool dispc_mgr_timings_ok(enum omap_channel channel, |
2880 | const struct omap_video_timings *timings) | 2880 | const struct omap_video_timings *timings) |
2881 | { | 2881 | { |
2882 | bool timings_ok; | 2882 | if (!_dispc_mgr_size_ok(timings->x_res, timings->y_res)) |
2883 | 2883 | return false; | |
2884 | timings_ok = _dispc_mgr_size_ok(timings->x_res, timings->y_res); | ||
2885 | 2884 | ||
2886 | timings_ok &= _dispc_mgr_pclk_ok(channel, timings->pixelclock); | 2885 | if (!_dispc_mgr_pclk_ok(channel, timings->pixelclock)) |
2886 | return false; | ||
2887 | 2887 | ||
2888 | if (dss_mgr_is_lcd(channel)) { | 2888 | if (dss_mgr_is_lcd(channel)) { |
2889 | /* TODO: OMAP4+ supports interlace for LCD outputs */ | 2889 | /* TODO: OMAP4+ supports interlace for LCD outputs */ |
2890 | timings_ok &= timings->interlace == false; | 2890 | if (timings->interlace) |
2891 | return false; | ||
2891 | 2892 | ||
2892 | timings_ok &= _dispc_lcd_timings_ok(timings->hsw, timings->hfp, | 2893 | if (!_dispc_lcd_timings_ok(timings->hsw, timings->hfp, |
2893 | timings->hbp, timings->vsw, timings->vfp, | 2894 | timings->hbp, timings->vsw, timings->vfp, |
2894 | timings->vbp); | 2895 | timings->vbp)) |
2896 | return false; | ||
2895 | } | 2897 | } |
2896 | 2898 | ||
2897 | return timings_ok; | 2899 | return true; |
2898 | } | 2900 | } |
2899 | 2901 | ||
2900 | static void _dispc_mgr_set_lcd_timings(enum omap_channel channel, int hsw, | 2902 | static void _dispc_mgr_set_lcd_timings(enum omap_channel channel, int hsw, |