MA-15813 [Android] imx8q: Enable reset in spl stage
authorJi Luo <ji.luo@nxp.com>
Mon, 4 Nov 2019 14:32:45 +0000 (22:32 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:17 +0000 (09:49 +0800)
commite42f06dbc70934ff9f535104f7322b9ac36491ce
tree38551a619af37a7f1486acb85d5c507420b14ced
parentd3510370046c603872c24db24a07c784c3fe960e
MA-15813 [Android] imx8q: Enable reset in spl stage

To avoid both A/B slots are marked as unbootable because
of some random failures, we will need to reset at spl stage
when current slot load/verify fail but already with flag
"successful_boot" set.

imx8q can't be reset via the psci driver because the atf
is not avaiable at spl stage, porting the sc_pm_reboot()
scu api so we can do reset at spl stage for imx8qm/imx8qxp
mek boards.

Test: reset on imx8qm_mek and imx8qxp_mek.

Change-Id: Ifa0bdea9393e413942a8a0188a4f937fa0aa9ab8
Signed-off-by: Ji Luo <ji.luo@nxp.com>
(cherry picked from a5c5748101c383bc3afb424a3ef2689ab2664846)
(cherry picked from c9f8d7c19a7fc20c99e061beabbb094b6bd50f52)
arch/arm/include/asm/arch-imx8/sci/sci.h
board/freescale/imx8qm_mek/imx8qm_mek.c
board/freescale/imx8qxp_mek/imx8qxp_mek.c
drivers/misc/imx8/scu_api.c