]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: stm32: stm32_dsi: copy DSI fields
authorYannick Fertre <yannick.fertre@st.com>
Wed, 24 Jun 2020 08:45:40 +0000 (10:45 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sat, 27 Jun 2020 23:25:52 +0000 (01:25 +0200)
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>
drivers/video/stm32/stm32_dsi.c

index 31ab8ebec7809a0cfbf3e9b2c8998e2acfa8c8e3..283151398bbf5ae1a4f8836b3a6a2d47ddf77cd8 100644 (file)
@@ -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) {