diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2020-06-25 11:59:39 +0200 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2020-07-06 10:48:06 +0200 |
commit | 821b67fa46390baea0ac5139a60eaa48805261b2 (patch) | |
tree | 8dea538654ee3de9ff7256834e273c6b9fbaae6a /drivers/firmware/smccc/Kconfig | |
parent | ARM: OMAP2: Use custom soc attribute group instead of device_create_file (diff) | |
download | linux-821b67fa46390baea0ac5139a60eaa48805261b2.tar.xz linux-821b67fa46390baea0ac5139a60eaa48805261b2.zip |
firmware: smccc: Add ARCH_SOC_ID support
SMCCC v1.2 adds a new optional function SMCCC_ARCH_SOC_ID to obtain a
SiP defined SoC identification value. Add support for the same.
Also using the SoC bus infrastructure, let us expose the platform
specific SoC atrributes under sysfs.
There are various ways in which it can be represented in shortened form
for efficiency and ease of parsing for userspace. The chosen form is
described in the ABI document.
Link: https://lore.kernel.org/r/20200625095939.50861-1-sudeep.holla@arm.com
Cc: Etienne Carriere <etienne.carriere@st.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/smccc/Kconfig')
-rw-r--r-- | drivers/firmware/smccc/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/firmware/smccc/Kconfig b/drivers/firmware/smccc/Kconfig index 27b675d76235..15e7466179a6 100644 --- a/drivers/firmware/smccc/Kconfig +++ b/drivers/firmware/smccc/Kconfig @@ -14,3 +14,12 @@ config HAVE_ARM_SMCCC_DISCOVERY to add SMCCC discovery mechanism though the PSCI firmware implementation of PSCI_FEATURES(SMCCC_VERSION) which returns success on firmware compliant to SMCCC v1.1 and above. + +config ARM_SMCCC_SOC_ID + bool "SoC bus device for the ARM SMCCC SOC_ID" + depends on HAVE_ARM_SMCCC_DISCOVERY + default y + select SOC_BUS + help + Include support for the SoC bus on the ARM SMCCC firmware based + platforms providing some sysfs information about the SoC variant. |