@@ -3011,21 +3011,30 @@ unsigned long dispc_core_clk_rate(void)
static unsigned long dispc_plane_output_rate(enum omap_plane plane)
{
- enum omap_channel channel = dispc_ovl_get_channel_out(plane);
+ if (plane != OMAP_DSS_WB) {
+ enum omap_channel channel = dispc_ovl_get_channel_out(plane);
- return dispc_mgr_pclk_rate(channel);
+ return dispc_mgr_pclk_rate(channel);
+ } else {
+ return 1;
+ }
}
static unsigned long dispc_plane_lclk_rate(enum omap_plane plane)
{
- enum omap_channel channel = dispc_ovl_get_channel_out(plane);
- if (dss_mgr_is_lcd(channel))
- return dispc_mgr_lclk_rate(channel);
- else
- return dispc_fclk_rate();
+ if (plane != OMAP_DSS_WB) {
+ enum omap_channel channel = dispc_ovl_get_channel_out(plane);
+ if (dss_mgr_is_lcd(channel))
+ return dispc_mgr_lclk_rate(channel);
+ else
+ return dispc_fclk_rate();
+ } else {
+ return 1;
+ }
}
+
static void dispc_dump_clocks_channel(struct seq_file *s, enum omap_channel channel)
{
int lcd, pcd;
The scalar output rate for writeback pipeline when configured in memory to memory mode isn't a fixed rate, it can increase or reduce based on the time it needs to downscale. It also depends on the rate at which it can receive and push out data from/to the interconnect. Set the scalar output rates for writeback to a low dummy value(set to 1) to represent that it can output at low rates, this is done so that maximum downscaling is possible in memory to memory mode. Signed-off-by: Archit Taneja <archit@ti.com> --- drivers/video/omap2/dss/dispc.c | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-)