dm: sysreset: disable psci sysreset for SPL and TPL

SPL is the stage early than atf/op-tee that psci sysreset
is not supported.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I46b988b3776638265bf8f374a10f9027d1ebc90f
This commit is contained in:
Joseph Chen 2020-04-22 09:09:53 +08:00 committed by Jianhong Chen
parent cead3ab891
commit 2ca0cbb64a
2 changed files with 1 additions and 4 deletions

View File

@ -8,9 +8,6 @@ obj-$(CONFIG_$(SPL_TPL_)SYSRESET) += sysreset-uclass.o
ifndef CONFIG_SPL_BUILD
obj-$(CONFIG_SYSRESET) += sysreset-syscon-reboot.o
endif
ifndef CONFIG_TPL_BUILD
obj-$(CONFIG_SYSRESET_PSCI) += sysreset_psci.o
endif

View File

@ -34,7 +34,7 @@ int sysreset_walk(enum sysreset_t type)
* Use psci sysreset as primary for rockchip platforms,
* "rockchip_reset" is applied if PSCI is disabled.
*/
#if !defined(CONFIG_TPL_BUILD) && \
#if !defined(CONFIG_SPL_BUILD) && \
defined(CONFIG_ARCH_ROCKCHIP) && defined(CONFIG_SYSRESET_PSCI)
ret = uclass_get_device_by_driver(UCLASS_SYSRESET,
DM_GET_DRIVER(psci_sysreset), &dev);