diff options
author | Ji Luo <ji.luo@nxp.com> | 2020-05-06 14:02:44 +0800 |
---|---|---|
committer | Ji Luo <ji.luo@nxp.com> | 2020-05-07 17:36:44 +0800 |
commit | 3432f444e283ccd83c7a28aa58ff1c5c67d5167f (patch) | |
tree | 58eac433a5c07c2adc1dde70134fe5cd5e9c4bfb /plat/imx/imx8m/ddr/dram.c | |
parent | cbf1114bb7f3bd1d54040e26f96b2d74860fea81 (diff) |
MA-17076 plat: imx8: Only save data section for cold reboot
In some cases, the bl31 won't be reloaded when spl is not supported,
commit 17de039 adds the save/restore data section to fix boot issues
which is caused by the dirty data in data section of previous boot.
However, sometimes the backup data section in dram won't be erased
totally in board cold reboot, it will be restored and modify the
'correct' data section which will cause the board hang.
This commit uses a global flag 'data_section_restore_flag' which is
initialized as '0x1' and should be stored in data section to indicate
the save/restore behavior.
Test: cold/warm reboot on imx8qm/imx8qxp.
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'plat/imx/imx8m/ddr/dram.c')
0 files changed, 0 insertions, 0 deletions