MLK-16706-2 video: fbdev: mipi_dsi_northwest: add 'phy_ref_clkfreq' field
authorFancy Fang <chen.fang@nxp.com>
Fri, 20 Oct 2017 11:01:58 +0000 (19:01 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:39:05 +0000 (15:39 -0500)
Add 'phy_ref_clkfreq' field to 'struct mipi_dsi_info'
to save the reference clock frequency configed in dtb
file for mipi phy pll.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
drivers/video/fbdev/mxc/mipi_dsi.h
drivers/video/fbdev/mxc/mipi_dsi_northwest.c

index b8d00b3..6219024 100644 (file)
@@ -88,6 +88,7 @@ struct mipi_dsi_info {
        int                             disp_id;
        char                            *lcd_panel;
        int                             irq;
+       uint32_t                        phy_ref_clkfreq;
 #ifdef CONFIG_FB_IMX64
        struct clk                      *core_clk;
        struct clk                      *phy_ref_clk;
index 2a22f6b..850ae2d 100644 (file)
@@ -984,6 +984,7 @@ static int dsi_clks_init(struct mipi_dsi_info *minfo)
                dev_err(&pdev->dev, "invalid phy reference clock rate\n");
                return -EINVAL;
        }
+       minfo->phy_ref_clkfreq = phy_ref_clkfreq;
 
        ret = clk_set_rate(minfo->phy_ref_clk, phy_ref_clkfreq);
        if (ret < 0) {