LFU-156 video: mxsfb: Fix pixel clock issue in non-DM driver
authorYe Li <ye.li@nxp.com>
Mon, 31 May 2021 04:43:51 +0000 (21:43 -0700)
committerYe Li <ye.li@nxp.com>
Mon, 31 May 2021 06:16:50 +0000 (23:16 -0700)
commita93a764dc7c5c9a851a5c75de0214738d0d64b09
treeefe710003e171a8881b21315810d02106b7199ea
parent3611c8f97c81d0ae05d76e59577e37cc79a2674f
LFU-156 video: mxsfb: Fix pixel clock issue in non-DM driver

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>
drivers/video/mxsfb.c