mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
video: check hardware version of DSI
Check the hardware version of DSI. Versions 1.30 & 1.31 are only supported. Signed-off-by: Yannick Fertre <yannick.fertre@st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Philippe Cornu <philippe.cornu@st.com>
This commit is contained in:
committed by
Anatolij Gustschin
parent
70b06d9542
commit
670eda3293
@@ -271,7 +271,6 @@ static int dsi_get_lane_mbps(void *priv_data, struct display_timing *timings,
|
|||||||
u32 val;
|
u32 val;
|
||||||
|
|
||||||
/* Update lane capabilities according to hw version */
|
/* Update lane capabilities according to hw version */
|
||||||
dsi->hw_version = dsi_read(dsi, DSI_VERSION) & VERSION;
|
|
||||||
dsi->lane_min_kbps = LANE_MIN_KBPS;
|
dsi->lane_min_kbps = LANE_MIN_KBPS;
|
||||||
dsi->lane_max_kbps = LANE_MAX_KBPS;
|
dsi->lane_max_kbps = LANE_MAX_KBPS;
|
||||||
if (dsi->hw_version == HWVER_131) {
|
if (dsi->hw_version == HWVER_131) {
|
||||||
@@ -475,6 +474,15 @@ static int stm32_dsi_probe(struct udevice *dev)
|
|||||||
/* Reset */
|
/* Reset */
|
||||||
reset_deassert(&rst);
|
reset_deassert(&rst);
|
||||||
|
|
||||||
|
/* check hardware version */
|
||||||
|
priv->hw_version = dsi_read(priv, DSI_VERSION) & VERSION;
|
||||||
|
if (priv->hw_version != HWVER_130 &&
|
||||||
|
priv->hw_version != HWVER_131) {
|
||||||
|
dev_err(dev, "DSI version 0x%x not supported\n", priv->hw_version);
|
||||||
|
ret = -ENODEV;
|
||||||
|
goto err_clk;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
err_clk:
|
err_clk:
|
||||||
clk_disable(&clk);
|
clk_disable(&clk);
|
||||||
|
Reference in New Issue
Block a user