mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
![Sudeep Holla](/assets/img/avatar_default.png)
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>
25 lines
810 B
Text
25 lines
810 B
Text
# SPDX-License-Identifier: GPL-2.0-only
|
|
config HAVE_ARM_SMCCC
|
|
bool
|
|
help
|
|
Include support for the Secure Monitor Call (SMC) and Hypervisor
|
|
Call (HVC) instructions on Armv7 and above architectures.
|
|
|
|
config HAVE_ARM_SMCCC_DISCOVERY
|
|
bool
|
|
depends on ARM_PSCI_FW
|
|
default y
|
|
help
|
|
SMCCC v1.0 lacked discoverability and hence PSCI v1.0 was updated
|
|
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.
|