OMAPDSS: DISPC: print fifo threshold values in bytes
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 13 Jan 2012 11:14:57 +0000 (13:14 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 25 Jan 2012 11:46:19 +0000 (13:46 +0200)
Fifo thresholds are calculated using bytes, but the debug print prints
values in buffer units. Change the prints to use bytes to be in line
with the calculations, and also to print in the same units on all OMAPs.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c

index d711518f9f18ba8069e028912361715b5a26f946..ba907bd600995cc48a2fc63c8c6d656d41b207f2 100644 (file)
@@ -1039,13 +1039,13 @@ void dispc_ovl_set_fifo_threshold(enum omap_plane plane, u32 low, u32 high)
        dss_feat_get_reg_field(FEAT_REG_FIFOHIGHTHRESHOLD, &hi_start, &hi_end);
        dss_feat_get_reg_field(FEAT_REG_FIFOLOWTHRESHOLD, &lo_start, &lo_end);
 
-       DSSDBG("fifo(%d) low/high old %u/%u, new %u/%u\n",
+       DSSDBG("fifo(%d) threshold (bytes), old %u/%u, new %u/%u\n",
                        plane,
                        REG_GET(DISPC_OVL_FIFO_THRESHOLD(plane),
-                               lo_start, lo_end),
+                               lo_start, lo_end) * unit,
                        REG_GET(DISPC_OVL_FIFO_THRESHOLD(plane),
-                               hi_start, hi_end),
-                       low, high);
+                               hi_start, hi_end) * unit,
+                       low * unit, high * unit);
 
        dispc_write_reg(DISPC_OVL_FIFO_THRESHOLD(plane),
                        FLD_VAL(high, hi_start, hi_end) |
This page took 0.027452 seconds and 5 git commands to generate.