Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/drivers/video/sunxi/disp2/disp/de/disp_lcd.c b/drivers/video/sunxi/disp2/disp/de/disp_lcd.c
index e8b651e1571..d6a76e51283 100755
--- a/drivers/video/sunxi/disp2/disp/de/disp_lcd.c
+++ b/drivers/video/sunxi/disp2/disp/de/disp_lcd.c
@@ -790,18 +790,29 @@ static s32 lcd_clk_config(struct disp_device* lcd)
}
dsi_rate = pll_rate / clk_info.dsi_div;
+ printk("lcd_clk_config: dsi_div = %d, tcon_div = %d, lcd_div = %d\n",
+ clk_info.dsi_div, clk_info.tcon_div, clk_info.lcd_div);
+ printk("lcd_clk_config: lcd_dclk_freq = %d, dclk_rate = %d\n", lcdp->panel_info.lcd_dclk_freq, dclk_rate);
+ printk("lcd_clk_config: lcd_rate = %d, pll_rate = %d, dsi_rate = %d\n", lcd_rate, pll_rate, dsi_rate);
+
if (lcdp->clk_parent) {
clk_set_rate(lcdp->clk_parent, pll_rate);
pll_rate_set = clk_get_rate(lcdp->clk_parent);
+ printk("if pll_rate_set=%d\n", pll_rate_set);
}
- if (clk_info.lcd_div)
+ if (clk_info.lcd_div) {
lcd_rate_set = pll_rate_set / clk_info.lcd_div;
+ printk("if lcd_rate_set=%d\n", lcd_rate_set);
+ }
+
clk_set_rate(lcdp->clk, lcd_rate_set);
lcd_rate_set = clk_get_rate(lcdp->clk);
+ printk("lcd_rate_set=%d\n", lcd_rate_set);
if (LCD_IF_DSI == lcdp->panel_info.lcd_if) {
dsi_rate_set = pll_rate_set / clk_info.dsi_div;
dsi_rate_set = (0 == clk_info.dsi_rate)? dsi_rate_set:clk_info.dsi_rate;
+ printk("if dsi_rate_set=%d\n", dsi_rate_set);
clk_set_rate(lcdp->dsi_clk0, dsi_rate_set);
//disp_sys_clk_set_rate(lcdp->dsi_clk1, dsi_rate_set);//FIXME, dsi clk0 = dsi clk1(rate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.