drm/rockchip: dw-mipi-dsi: add mode_flags as a judgment condition
authorxubilv <xbl@rock-chips.com>
Fri, 14 Jul 2017 08:59:13 +0000 (16:59 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 20 Jul 2017 11:11:20 +0000 (19:11 +0800)
This flag is used as a condition for the register configuration

Change-Id: I6741063b106ae00f4f1a690abde79d76bc529e95
Signed-off-by: xubilv <xbl@rock-chips.com>
drivers/gpu/drm/rockchip/dw-mipi-dsi.c

index f8e865798f08da3c72193e0b462a70f760cb5897..d6b3e70eecf50dfdae956662833e5c3b01314e56 100644 (file)
@@ -307,6 +307,7 @@ struct dw_mipi_dsi {
        struct clk *pclk;
        struct clk *phy_cfg_clk;
 
+       unsigned long mode_flags;
        unsigned int lane_mbps; /* per lane */
        u32 channel;
        u32 lanes;
@@ -598,6 +599,8 @@ static int dw_mipi_dsi_host_attach(struct mipi_dsi_host *host,
        dsi->lanes = device->lanes;
        dsi->channel = device->channel;
        dsi->format = device->format;
+       dsi->mode_flags = device->mode_flags;
+
        dsi->panel = of_drm_find_panel(device->dev.of_node);
        if (!dsi->panel) {
                DRM_ERROR("failed to find panel\n");