imx9: soc: support reset cause
authorPeng Fan <peng.fan@nxp.com>
Fri, 28 Apr 2023 04:08:27 +0000 (12:08 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 21 May 2023 14:54:40 +0000 (16:54 +0200)
commit5f2ecac54868dc0adb778f524a12c428009721ed
tree3d5e86b5634fde5d9fd995738f462a01a9960eb4
parentfee8cf214af0807823865cfa4cc3d5e39eb8da3c
imx9: soc: support reset cause

Support print reset cause. Since SRSR is not accessible from non-secure
world, so first save it to grp0, then read it in non-secure world.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx9/soc.c