diff options
| author | Archit Taneja <archit@ti.com> | 2012-07-28 13:29:03 -0400 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-09-26 07:58:50 -0400 |
| commit | 36d87d95587825c39ee8e127d56aafeb7dda45da (patch) | |
| tree | f47913bf2aa7f71fe3b5e46de2defdc6d8b438fa | |
| parent | 7a155be39e95fa4bf61bdc4c4456316a52421185 (diff) | |
OMAPDSS: DISPC: Configure input and output sizes for writeback
Writeback uses the WB_PICTURE_SIZE register to define the size of the content
written to memory, this is the output of the scaler. It uses the WB_SIZE
register to define the size of the content coming from the overlay/manager to
which it is connected, this is the input to the scaler. This naming is different
as compared to overlays.
Add checks for writeback in dispc_ovl_set_input_size() and
dispc_ovl_set_output_size() to write to the correct registers.
Signed-off-by: Archit Taneja <archit@ti.com>
| -rw-r--r-- | drivers/video/omap2/dss/dispc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index b1b9e3f1be90..b9e53b3cbe05 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c | |||
| @@ -719,7 +719,7 @@ static void dispc_ovl_set_input_size(enum omap_plane plane, int width, | |||
| 719 | { | 719 | { |
| 720 | u32 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); | 720 | u32 val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); |
| 721 | 721 | ||
| 722 | if (plane == OMAP_DSS_GFX) | 722 | if (plane == OMAP_DSS_GFX || plane == OMAP_DSS_WB) |
| 723 | dispc_write_reg(DISPC_OVL_SIZE(plane), val); | 723 | dispc_write_reg(DISPC_OVL_SIZE(plane), val); |
| 724 | else | 724 | else |
| 725 | dispc_write_reg(DISPC_OVL_PICTURE_SIZE(plane), val); | 725 | dispc_write_reg(DISPC_OVL_PICTURE_SIZE(plane), val); |
| @@ -734,7 +734,10 @@ static void dispc_ovl_set_output_size(enum omap_plane plane, int width, | |||
| 734 | 734 | ||
| 735 | val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); | 735 | val = FLD_VAL(height - 1, 26, 16) | FLD_VAL(width - 1, 10, 0); |
| 736 | 736 | ||
| 737 | dispc_write_reg(DISPC_OVL_SIZE(plane), val); | 737 | if (plane == OMAP_DSS_WB) |
| 738 | dispc_write_reg(DISPC_OVL_PICTURE_SIZE(plane), val); | ||
| 739 | else | ||
| 740 | dispc_write_reg(DISPC_OVL_SIZE(plane), val); | ||
| 738 | } | 741 | } |
| 739 | 742 | ||
| 740 | static void dispc_ovl_set_zorder(enum omap_plane plane, | 743 | static void dispc_ovl_set_zorder(enum omap_plane plane, |
