video: ipu: fix debug and comment
- fix debug pixel clk display and add unit - fix some comments Cc: Stefano Babic <sbabic@denx.de> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
parent
0156444cf7
commit
c1420328dc
|
@ -887,7 +887,7 @@ int32_t ipu_init_sync_panel(int disp, uint32_t pixel_clk,
|
||||||
v_total = height + v_sync_width + v_start_width + v_end_width;
|
v_total = height + v_sync_width + v_start_width + v_end_width;
|
||||||
|
|
||||||
/* Init clocking */
|
/* Init clocking */
|
||||||
debug("pixel clk = %d\n", pixel_clk);
|
debug("pixel clk = %dHz\n", pixel_clk);
|
||||||
|
|
||||||
if (sig.ext_clk) {
|
if (sig.ext_clk) {
|
||||||
if (!(g_di1_tvout && (disp == 1))) { /*not round div for tvout*/
|
if (!(g_di1_tvout && (disp == 1))) { /*not round div for tvout*/
|
||||||
|
|
|
@ -258,8 +258,7 @@ static int mxcfb_set_par(struct fb_info *fbi)
|
||||||
if (fbi->var.sync & FB_SYNC_CLK_IDLE_EN)
|
if (fbi->var.sync & FB_SYNC_CLK_IDLE_EN)
|
||||||
sig_cfg.clkidle_en = 1;
|
sig_cfg.clkidle_en = 1;
|
||||||
|
|
||||||
debug("pixclock = %ul Hz\n",
|
debug("pixclock = %lu Hz\n", PICOS2KHZ(fbi->var.pixclock) * 1000UL);
|
||||||
(u32) (PICOS2KHZ(fbi->var.pixclock) * 1000UL));
|
|
||||||
|
|
||||||
if (ipu_init_sync_panel(mxc_fbi->ipu_di,
|
if (ipu_init_sync_panel(mxc_fbi->ipu_di,
|
||||||
(PICOS2KHZ(fbi->var.pixclock)) * 1000UL,
|
(PICOS2KHZ(fbi->var.pixclock)) * 1000UL,
|
||||||
|
@ -486,7 +485,7 @@ static struct fb_info *mxcfb_init_fbinfo(void)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Probe routine for the framebuffer driver. It is called during the
|
* Probe routine for the framebuffer driver. It is called during the
|
||||||
* driver binding process. The following functions are performed in
|
* driver binding process. The following functions are performed in
|
||||||
* this routine: Framebuffer initialization, Memory allocation and
|
* this routine: Framebuffer initialization, Memory allocation and
|
||||||
* mapping, Framebuffer registration, IPU initialization.
|
* mapping, Framebuffer registration, IPU initialization.
|
||||||
*
|
*
|
||||||
|
@ -542,7 +541,7 @@ static int mxcfb_probe(u32 interface_pix_fmt, uint8_t disp,
|
||||||
|
|
||||||
mxcfb_set_fix(fbi);
|
mxcfb_set_fix(fbi);
|
||||||
|
|
||||||
/* alocate fb first */
|
/* allocate fb first */
|
||||||
if (mxcfb_map_video_memory(fbi) < 0)
|
if (mxcfb_map_video_memory(fbi) < 0)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue