Skip to contentSkip to conversation

OMAP: DSS2: Fix for DISPC core functional clock divider

PATCH Tomi Valkeinen 2 participants 2 messages Mar 3, 2011 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 9 lines · Raghuveer Murthy

OMAP4 has 2 LCD channels and corresponding DISPC_DIVISOR1 and DISPC_DIVISOR2 registers to configure the pixel clock frequency, for the respective LCD displays.

There is also DISPC_DIVISOR register, which by default has the ENABLE bit set to zero, for backward compatibility mode. Hence the logical clock divider of DISPC_DIVISOR1.LCD, gets used for core func clk configuration. The default value of DISPC_DIVISOR1.LCD is 4.

Quoted 6 lines

If only the secondary LCD is enabled, at high pixel resolutions the core clk lags behind the pixel clock, causing stair-step effect (diagonal lines with tearing) on the display.

Hence DISPC_DIVISOR.ENABLE is set to 1, and the core functional clock is set independently and exclusively in DISPC_DIVISOR.LCD.

I think this patch set is ok. However, it doesn't apply with the latest master branch from DSS tree, some quite trivial conflicts with dss features. Can you rebase and post it?

Also, please send patches to my ti.com address, not iki.fi address.

Tomi

#2 lore raw
Quoted 17 lines · Tomi
Quoted 9 lines · Raghuveer Murthy

OMAP4 has 2 LCD channels and corresponding DISPC_DIVISOR1 and DISPC_DIVISOR2 registers to configure the pixel clock frequency, for the respective LCD displays.

There is also DISPC_DIVISOR register, which by default has the ENABLE bit set to zero, for backward compatibility mode. Hence the logical clock divider of DISPC_DIVISOR1.LCD, gets used for core func clk configuration. The default value of DISPC_DIVISOR1.LCD is 4.

Quoted 6 lines

If only the secondary LCD is enabled, at high pixel resolutions the core clk lags behind the pixel clock, causing stair-step effect (diagonal lines with tearing) on the display.

Hence DISPC_DIVISOR.ENABLE is set to 1, and the core functional clock is set independently and exclusively in DISPC_DIVISOR.LCD.

Quoted 9 lines

I think this patch set is ok. However, it doesn't apply with the latest master branch from DSS tree, some quite trivial conflicts with dss features. Can you rebase and post it?

Also, please send patches to my ti.com address, not iki.fi address.

Tomi

Hi Tomi,

Resent the after re-basing.

Regards,
Raghuveer