diff options
author | Ye Li <ye.li@nxp.com> | 2022-04-06 14:30:23 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-04-12 17:33:57 +0200 |
commit | 7b68357130cbbda33d12dc3225361e851aaa501b (patch) | |
tree | 0a357005c4ad303e837b0c519235bc06656c8bd3 /board | |
parent | 34385a20f3c5110b2425aae55622a62b27eaed28 (diff) | |
download | u-boot-7b68357130cbbda33d12dc3225361e851aaa501b.tar.gz u-boot-7b68357130cbbda33d12dc3225361e851aaa501b.tar.bz2 u-boot-7b68357130cbbda33d12dc3225361e851aaa501b.zip |
imx: imx8ulp_evk: call the handshake with M33
If M33 handshake is successful, TPM and DSI panel MUX setting is
done by M33, no need to set them.
If handshake is failed or M33 is not booted, continue the TPM
and DSI panel MUX setting
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Biwen Li <biwen.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/imx8ulp_evk/imx8ulp_evk.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/board/freescale/imx8ulp_evk/imx8ulp_evk.c b/board/freescale/imx8ulp_evk/imx8ulp_evk.c index 1502e4dbb6..b61a4cfbe8 100644 --- a/board/freescale/imx8ulp_evk/imx8ulp_evk.c +++ b/board/freescale/imx8ulp_evk/imx8ulp_evk.c @@ -101,10 +101,18 @@ void mipi_dsi_panel_backlight(void) int board_init(void) { + int sync = -ENODEV; + if (IS_ENABLED(CONFIG_FEC_MXC)) setup_fec(); - if (IS_ENABLED(CONFIG_DM_VIDEO)) { + if (m33_image_booted()) { + sync = m33_image_handshake(1000); + printf("M33 Sync: %s\n", sync ? "Timeout" : "OK"); + } + + /* When sync with M33 is failed, use local driver to set for video */ + if (sync != 0 && IS_ENABLED(CONFIG_DM_VIDEO)) { mipi_dsi_mux_panel(); mipi_dsi_panel_backlight(); } |