imx8qm: Reboot the system with OP-TEE using sc_pm_reboot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8qm: Reboot the system with OP-TEE using sc_pm_reboot

307 Views
ValeriiChubar
Contributor I

Hello,

I have a custom imx8qm board

The BSP setup:
U-Boot 2019.04
ARM-TF imx_5.4.24_2.1.0
linux-imx 5.4

OP-TEE 3.10

I am trying to add OP-TEE to the board.
I have an issue with the rebooting the board.

After debugging it turned out that after calling sc_pm_reboot in ARM-TF
https://github.com/boundarydevices/imx-atf/blob/boundary-imx_5.4.24_2.1.0/plat/imx/common/imx8_psci....
the board does not bring up.


1. What could be the reasons the board does not reboot?
2. How to debug the issue?
3. Is it Ok to use sc_pm_reset instead of sc_pm_reboot
in the setup With OP-TEE?
https://github.com/boundarydevices/imx-atf/commit/c8c1085323219563401454be45a56b53c8a41d47
4. What I am missing to make sc_pm_reboot reset the board?

Without adding the OP-TEE the board reboots as expected.

The Debug Monitor read power mode after reboot command shows the following output:

>$ power.r
Partition: 0 = on
SC_PID0 = on
SC_TPM = on
SC_PIT = on
SC_UART = on
SC_I2C = on
SC_MU_0B = on
SC_MU_1A = on
SYSCNT_RD = on
SYSCNT_CMP = on
DEBUG = on
OTP = on
DB = on
DBLOGIC = on
DRC_0 = on
DRC_1 = on
Partition: 1 = on
CCI = on
A53_0 = on
A53 = on
A72 = on
GIC = on
FSPI_0 = lp
FSPI_1 = lp
MU_0A = on
OCRAM = on
Partition: 2 = on
SECO = on

 

0 Kudos
Reply
0 Replies