]> git.ipfire.org Git - people/ms/u-boot.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)
commit573a3811edc89c2ea3bf4fd077e3673b863b9a0d
tree8704ecc42d27c29d7aaef07c2f3942a67d8df476
parentc54bcf6805cc6762cb998751b8e005f39ee1dad1
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