Skip to content

Commit e221929

Browse files
xubilvrkhuangtao
authored andcommitted
drm/rockchip: dw-mipi-dsi: add mode_flags as a judgment condition
This flag is used as a condition for the register configuration Change-Id: I6741063b106ae00f4f1a690abde79d76bc529e95 Signed-off-by: xubilv <xbl@rock-chips.com>
1 parent 47aef81 commit e221929

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/rockchip/dw-mipi-dsi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ struct dw_mipi_dsi {
307307
struct clk *pclk;
308308
struct clk *phy_cfg_clk;
309309

310+
unsigned long mode_flags;
310311
unsigned int lane_mbps; /* per lane */
311312
u32 channel;
312313
u32 lanes;
@@ -598,6 +599,8 @@ static int dw_mipi_dsi_host_attach(struct mipi_dsi_host *host,
598599
dsi->lanes = device->lanes;
599600
dsi->channel = device->channel;
600601
dsi->format = device->format;
602+
dsi->mode_flags = device->mode_flags;
603+
601604
dsi->panel = of_drm_find_panel(device->dev.of_node);
602605
if (!dsi->panel) {
603606
DRM_ERROR("failed to find panel\n");

0 commit comments

Comments
 (0)