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)
commit2fbe47b7e77134c81d8def15a2a6e028abe0f077
treef2bf0091eb548e3afb079f5972626f5a6f8afca5
parentb1ff399c6ed19ce24d8bbcadc279f223941f257a
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