]> git.dujemihanovic.xyz Git - u-boot.git/commit
firmware: psci: Do not bind driver if U-Boot runs in EL3
authorMichal Simek <michal.simek@xilinx.com>
Thu, 13 Aug 2020 10:43:22 +0000 (12:43 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 Aug 2020 18:11:31 +0000 (14:11 -0400)
commit10e4d64e345b6b684d27d3da6ed8d887c8e45f76
treee74f81cb34502d8c6d668a4c3e2697a70764ff83
parent565add124de00c994652a0d2d6d1eb6b2a7c9553
firmware: psci: Do not bind driver if U-Boot runs in EL3

There is no reason to bind psci driver if U-Boot runs in EL3 because
SMC/HVC instructions can't be called. That's why detect this state and
don't let user to crash from prompt by performing reset or poweroff
commands (if enabled).

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/firmware/psci.c