]> git.baikalelectronics.ru Git - uboot.git/commit
sysreset: psci: support system reset in a generic way with PSCI
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 14 Apr 2017 02:10:24 +0000 (11:10 +0900)
committerTom Rini <trini@konsulko.com>
Tue, 18 Apr 2017 14:29:19 +0000 (10:29 -0400)
commit23776d76dd30395b7d2b85e7c0af960ffa641883
tree8704ecc42d27c29d7aaef07c2f3942a67d8df476
parent1d30dd4b6baeb3622c8b26d5691a6cf106491aad
sysreset: psci: support system reset in a generic way with PSCI

If the system is running PSCI firmware, the System Reset function
(func ID: 0x80000009) is supposed to be handled by PSCI, that is,
the SoC/board specific reset implementation should be moved to PSCI.
U-Boot should call the PSCI service according to the arm-smccc
manner.

The arm-smccc is supported on ARMv7 or later.  Especially, ARMv8
generation SoCs are likely to run ARM Trusted Firmware BL31.  In
this case, U-Boot is a non-secure world boot loader, so it should
not be able to reset the system directly.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
12 files changed:
arch/arm/Kconfig
drivers/Kconfig
drivers/Makefile
drivers/firmware/Kconfig [new file with mode: 0644]
drivers/firmware/Makefile [new file with mode: 0644]
drivers/firmware/firmware-uclass.c [new file with mode: 0644]
drivers/firmware/psci.c [new file with mode: 0644]
drivers/sysreset/Kconfig
drivers/sysreset/Makefile
drivers/sysreset/sysreset_psci.c [new file with mode: 0644]
include/dm/uclass-id.h
include/linux/psci.h