diff options
-rw-r--r-- | drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dispc.c | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dpi.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/omapdss.h | 18 | ||||
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/sdi.c | 2 |
5 files changed, 15 insertions, 14 deletions
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c index c3d2a12358fa..8f676b8ac038 100644 --- a/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c +++ b/drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | |||
@@ -1023,7 +1023,7 @@ static int dsicm_memory_read(struct omap_dss_device *dssdev, | |||
1023 | goto err1; | 1023 | goto err1; |
1024 | } | 1024 | } |
1025 | 1025 | ||
1026 | size = min(w * h * 3, | 1026 | size = min((u32)w * h * 3, |
1027 | dssdev->panel.timings.hactive * | 1027 | dssdev->panel.timings.hactive * |
1028 | dssdev->panel.timings.vactive * 3); | 1028 | dssdev->panel.timings.vactive * 3); |
1029 | 1029 | ||
diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c b/drivers/gpu/drm/omapdrm/dss/dispc.c index 83b7a7a2a9e7..63d3dc44913c 100644 --- a/drivers/gpu/drm/omapdrm/dss/dispc.c +++ b/drivers/gpu/drm/omapdrm/dss/dispc.c | |||
@@ -2870,7 +2870,8 @@ int dispc_wb_setup(const struct omap_dss_writeback_info *wi, | |||
2870 | int wbdelay; | 2870 | int wbdelay; |
2871 | 2871 | ||
2872 | wbdelay = min(mgr_timings->vfront_porch + | 2872 | wbdelay = min(mgr_timings->vfront_porch + |
2873 | mgr_timings->vsync_len + mgr_timings->vback_porch, 255); | 2873 | mgr_timings->vsync_len + mgr_timings->vback_porch, |
2874 | (u32)255); | ||
2874 | 2875 | ||
2875 | /* WBDELAYCOUNT */ | 2876 | /* WBDELAYCOUNT */ |
2876 | REG_FLD_MOD(DISPC_OVL_ATTRIBUTES2(plane), wbdelay, 7, 0); | 2877 | REG_FLD_MOD(DISPC_OVL_ATTRIBUTES2(plane), wbdelay, 7, 0); |
@@ -3242,7 +3243,7 @@ void dispc_mgr_set_timings(enum omap_channel channel, | |||
3242 | ht = timings->pixelclock / xtot; | 3243 | ht = timings->pixelclock / xtot; |
3243 | vt = timings->pixelclock / xtot / ytot; | 3244 | vt = timings->pixelclock / xtot / ytot; |
3244 | 3245 | ||
3245 | DSSDBG("pck %u\n", timings->pixelclock); | 3246 | DSSDBG("pck %lu\n", timings->pixelclock); |
3246 | DSSDBG("hsync_len %d hfp %d hbp %d vsw %d vfp %d vbp %d\n", | 3247 | DSSDBG("hsync_len %d hfp %d hbp %d vsw %d vfp %d vbp %d\n", |
3247 | t.hsync_len, t.hfront_porch, t.hback_porch, | 3248 | t.hsync_len, t.hfront_porch, t.hback_porch, |
3248 | t.vsync_len, t.vfront_porch, t.vback_porch); | 3249 | t.vsync_len, t.vfront_porch, t.vback_porch); |
diff --git a/drivers/gpu/drm/omapdrm/dss/dpi.c b/drivers/gpu/drm/omapdrm/dss/dpi.c index d653f492cbfd..8fb40efa65af 100644 --- a/drivers/gpu/drm/omapdrm/dss/dpi.c +++ b/drivers/gpu/drm/omapdrm/dss/dpi.c | |||
@@ -351,7 +351,7 @@ static int dpi_set_mode(struct dpi_data *dpi) | |||
351 | pck = fck / lck_div / pck_div; | 351 | pck = fck / lck_div / pck_div; |
352 | 352 | ||
353 | if (pck != t->pixelclock) { | 353 | if (pck != t->pixelclock) { |
354 | DSSWARN("Could not find exact pixel clock. Requested %d Hz, got %lu Hz\n", | 354 | DSSWARN("Could not find exact pixel clock. Requested %lu Hz, got %lu Hz\n", |
355 | t->pixelclock, pck); | 355 | t->pixelclock, pck); |
356 | 356 | ||
357 | t->pixelclock = pck; | 357 | t->pixelclock = pck; |
diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h index 84d34242d5a4..bd38da3af01f 100644 --- a/drivers/gpu/drm/omapdrm/dss/omapdss.h +++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h | |||
@@ -301,23 +301,23 @@ struct omap_dss_dsi_config { | |||
301 | 301 | ||
302 | struct omap_video_timings { | 302 | struct omap_video_timings { |
303 | /* Unit: pixels */ | 303 | /* Unit: pixels */ |
304 | u16 hactive; | 304 | u32 hactive; |
305 | /* Unit: pixels */ | 305 | /* Unit: pixels */ |
306 | u16 vactive; | 306 | u32 vactive; |
307 | /* Unit: Hz */ | 307 | /* Unit: Hz */ |
308 | u32 pixelclock; | 308 | unsigned long pixelclock; |
309 | /* Unit: pixel clocks */ | 309 | /* Unit: pixel clocks */ |
310 | u16 hsync_len; /* Horizontal synchronization pulse width */ | 310 | u32 hsync_len; /* Horizontal synchronization pulse width */ |
311 | /* Unit: pixel clocks */ | 311 | /* Unit: pixel clocks */ |
312 | u16 hfront_porch; /* Horizontal front porch */ | 312 | u32 hfront_porch; /* Horizontal front porch */ |
313 | /* Unit: pixel clocks */ | 313 | /* Unit: pixel clocks */ |
314 | u16 hback_porch; /* Horizontal back porch */ | 314 | u32 hback_porch; /* Horizontal back porch */ |
315 | /* Unit: line clocks */ | 315 | /* Unit: line clocks */ |
316 | u16 vsync_len; /* Vertical synchronization pulse width */ | 316 | u32 vsync_len; /* Vertical synchronization pulse width */ |
317 | /* Unit: line clocks */ | 317 | /* Unit: line clocks */ |
318 | u16 vfront_porch; /* Vertical front porch */ | 318 | u32 vfront_porch; /* Vertical front porch */ |
319 | /* Unit: line clocks */ | 319 | /* Unit: line clocks */ |
320 | u16 vback_porch; /* Vertical back porch */ | 320 | u32 vback_porch; /* Vertical back porch */ |
321 | 321 | ||
322 | enum display_flags flags; | 322 | enum display_flags flags; |
323 | }; | 323 | }; |
diff --git a/drivers/gpu/drm/omapdrm/dss/sdi.c b/drivers/gpu/drm/omapdrm/dss/sdi.c index 3b076329a3ac..c8658f97ab7d 100644 --- a/drivers/gpu/drm/omapdrm/dss/sdi.c +++ b/drivers/gpu/drm/omapdrm/dss/sdi.c | |||
@@ -162,7 +162,7 @@ static int sdi_display_enable(struct omap_dss_device *dssdev) | |||
162 | pck = fck / dispc_cinfo.lck_div / dispc_cinfo.pck_div; | 162 | pck = fck / dispc_cinfo.lck_div / dispc_cinfo.pck_div; |
163 | 163 | ||
164 | if (pck != t->pixelclock) { | 164 | if (pck != t->pixelclock) { |
165 | DSSWARN("Could not find exact pixel clock. Requested %d Hz, got %lu Hz\n", | 165 | DSSWARN("Could not find exact pixel clock. Requested %lu Hz, got %lu Hz\n", |
166 | t->pixelclock, pck); | 166 | t->pixelclock, pck); |
167 | 167 | ||
168 | t->pixelclock = pck; | 168 | t->pixelclock = pck; |