When changing video mode to display timing structure, the pclk from
env or board codes is represented by the time of one clock (picosecond).
So we can't directly assign it to pixel clock (hz), but use PS2KHZ
to convert.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
bpp = depth;
}
+ mode.pixclock_khz = PS2KHZ(mode.pixclock);
+ mode.pixclock = mode.pixclock_khz * 1000;
+
if (CONFIG_IS_ENABLED(IMX_MODULE_FUSE)) {
if (check_module_fused(MODULE_LCDIF)) {
printf("LCDIF@0x%x is fused, disable it\n", MXS_LCDIF_BASE);