TV will show 639x480p60 when HDMI output 640x480p60.
The same issue can be found when pixel clock sources from ipu internally.
All video modes whose pixel clocks derive from DI clock work OK.
It is caused by the wrong parent clock rate the driver gets.
Fix the issue by getting the right parent clock(ipu->pixel_clk_sel).
Signed-off-by: Sandor Yu <R01008@freescale.com>
}
msleep(5);
/* Get integer portion of divider */
- div = clk_get_rate(clk_get_parent(ipu->pixel_clk[disp])) / rounded_pixel_clk;
+ div = clk_get_rate(clk_get_parent(ipu->pixel_clk_sel[disp])) / rounded_pixel_clk;
dev_dbg(ipu->dev, "div:%d\n", div);
if (!div) {
dev_err(ipu->dev, "invalid pixel clk div = 0\n");