video/drm: display: add support swap two channel data of MIPI
Change-Id: I44630143c7d59a0a7deff4d7b9ee690b621d1a0f Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
This commit is contained in:
parent
30567cf722
commit
10bd57236c
|
|
@ -245,6 +245,7 @@ struct dw_mipi_dsi {
|
||||||
u32 mode_flags;
|
u32 mode_flags;
|
||||||
struct mipi_dphy dphy;
|
struct mipi_dphy dphy;
|
||||||
struct drm_display_mode mode;
|
struct drm_display_mode mode;
|
||||||
|
bool data_swap;
|
||||||
|
|
||||||
const struct dw_mipi_dsi_plat_data *pdata;
|
const struct dw_mipi_dsi_plat_data *pdata;
|
||||||
};
|
};
|
||||||
|
|
@ -1140,6 +1141,9 @@ static int dw_mipi_dsi_connector_init(struct display_state *state)
|
||||||
dsi->slave->channel = dsi->channel;
|
dsi->slave->channel = dsi->channel;
|
||||||
conn_state->output_flags =
|
conn_state->output_flags =
|
||||||
ROCKCHIP_OUTPUT_DUAL_CHANNEL_LEFT_RIGHT_MODE;
|
ROCKCHIP_OUTPUT_DUAL_CHANNEL_LEFT_RIGHT_MODE;
|
||||||
|
if (dsi->data_swap)
|
||||||
|
conn_state->output_flags |= ROCKCHIP_OUTPUT_DATA_SWAP;
|
||||||
|
|
||||||
conn_state->output_if |= VOP_OUTPUT_IF_MIPI1;
|
conn_state->output_if |= VOP_OUTPUT_IF_MIPI1;
|
||||||
|
|
||||||
#if defined(CONFIG_ROCKCHIP_RK3568)
|
#if defined(CONFIG_ROCKCHIP_RK3568)
|
||||||
|
|
@ -1338,6 +1342,7 @@ static int dw_mipi_dsi_probe(struct udevice *dev)
|
||||||
dsi->dev = dev;
|
dsi->dev = dev;
|
||||||
dsi->pdata = pdata;
|
dsi->pdata = pdata;
|
||||||
dsi->id = id;
|
dsi->id = id;
|
||||||
|
dsi->data_swap = dev_read_bool(dsi->dev, "rockchip,data-swap");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue