]> git.baikalelectronics.ru Git - uboot.git/commit
firmware: psci: bind arm smccc features when discovered
authorEtienne Carriere <etienne.carriere@linaro.org>
Wed, 1 Jun 2022 08:27:33 +0000 (10:27 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 23 Jun 2022 17:12:56 +0000 (13:12 -0400)
commitce48130f15017c8b51dd2da1b2b8876e304af3c5
treef2bf0091eb548e3afb079f5972626f5a6f8afca5
parent9eb0446abbec0ed4d93956e16af099a474fec890
firmware: psci: bind arm smccc features when discovered

Use PSCI device to query Arm SMCCC v1.1 support from secure monitor
and if so, bind drivers for the SMCCC features that monitor supports.

Drivers willing to be bound from Arm SMCCC features discovery can use
macro ARM_SMCCC_FEATURE_DRIVER() to register to smccc feature discovery,
providing target driver name and a callback function that returns
whether or not the SMCCC feature is supported by the system.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
drivers/firmware/Kconfig
drivers/firmware/psci.c
include/linux/arm-smccc.h
include/linux/psci.h