summaryrefslogtreecommitdiff
path: root/drivers/video/stm32
diff options
context:
space:
mode:
authorYannick Fertre <yannick.fertre@st.com>2020-06-24 10:45:40 +0200
committerAnatolij Gustschin <agust@denx.de>2020-06-28 01:25:52 +0200
commit7084dd8c4bf212cf4b25dc1cf34d35f9b5999f9d (patch)
treecedf6f925a463fea029c4143ff165e1079c8f6d3 /drivers/video/stm32
parent36e66e3cd6067c2b38f97047193fc447a1842834 (diff)
video: stm32: stm32_dsi: copy DSI fields
Copy the DSI data link characteristics from panel platform data to mipi DSI device. Signed-off-by: Yannick Fertre <yannick.fertre@st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'drivers/video/stm32')
-rw-r--r--drivers/video/stm32/stm32_dsi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c
index 31ab8ebec7..283151398b 100644
--- a/drivers/video/stm32/stm32_dsi.c
+++ b/drivers/video/stm32/stm32_dsi.c
@@ -353,6 +353,9 @@ static int stm32_dsi_attach(struct udevice *dev)
mplat = dev_get_platdata(priv->panel);
mplat->device = &priv->device;
+ device->lanes = mplat->lanes;
+ device->format = mplat->format;
+ device->mode_flags = mplat->mode_flags;
ret = panel_get_display_timing(priv->panel, &timings);
if (ret) {