imx6: clock: print real pixel clock rate
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sat, 22 Apr 2023 14:11:19 +0000 (16:11 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 2 May 2023 08:57:32 +0000 (10:57 +0200)
Add debug messages to print the real pixel clock rate, which may not be
the requested one.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
arch/arm/mach-imx/mx6/clock.c

index 267d86a..1bdc568 100644 (file)
@@ -802,6 +802,7 @@ void mxs_set_lcdclk(u32 base_addr, u32 freq)
                }
 
                enable_lcdif_clock(base_addr, 1);
+               debug("pixel clock = %u\n", mxc_get_clock(MXC_LCDIF1_CLK));
        } else if (is_mx6sx()) {
                /* Setting LCDIF2 for i.MX6SX */
                if (enable_pll_video(pll_div, pll_num, pll_denom, post_div))
@@ -823,6 +824,7 @@ void mxs_set_lcdclk(u32 base_addr, u32 freq)
                                 MXC_CCM_CSCMR1_LCDIF2_PODF_OFFSET));
 
                enable_lcdif_clock(base_addr, 1);
+               debug("pixel clock = %u\n", mxc_get_clock(MXC_LCDIF2_CLK));
        }
 }