From patchwork Wed Jun 24 08:45:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yannick Fertre X-Patchwork-Id: 242824 List-Id: U-Boot discussion From: yannick.fertre at st.com (Yannick Fertre) Date: Wed, 24 Jun 2020 10:45:40 +0200 Subject: [PATCH v1 2/4] video: stm32: stm32_dsi: copy DSI fields In-Reply-To: <20200624084542.18098-1-yannick.fertre@st.com> References: <20200624084542.18098-1-yannick.fertre@st.com> Message-ID: <20200624084542.18098-3-yannick.fertre@st.com> Copy the DSI data link characteristics from panel platform data to mipi DSI device. Signed-off-by: Yannick Fertre Reviewed-by: Patrick Delaunay --- drivers/video/stm32/stm32_dsi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c index 04796435f1..c9b1633cf7 100644 --- a/drivers/video/stm32/stm32_dsi.c +++ b/drivers/video/stm32/stm32_dsi.c @@ -354,6 +354,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) {