OSDN Git Service

firmware: smccc: Add ARCH_SOC_ID support
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 25 Jun 2020 09:59:39 +0000 (10:59 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 6 Jul 2020 08:48:06 +0000 (09:48 +0100)
commit821b67fa46390baea0ac5139a60eaa48805261b2
tree8dea538654ee3de9ff7256834e273c6b9fbaae6a
parent475d04b48b9e227e1be2396b1499bd36274be40a
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>
Documentation/ABI/testing/sysfs-devices-soc
drivers/firmware/smccc/Kconfig
drivers/firmware/smccc/Makefile
drivers/firmware/smccc/soc_id.c [new file with mode: 0644]
include/linux/arm-smccc.h