xref: /OK3568_Linux_fs/kernel/drivers/firmware/smccc/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunconfig HAVE_ARM_SMCCC
3*4882a593Smuzhiyun	bool
4*4882a593Smuzhiyun	help
5*4882a593Smuzhiyun	  Include support for the Secure Monitor Call (SMC) and Hypervisor
6*4882a593Smuzhiyun	  Call (HVC) instructions on Armv7 and above architectures.
7*4882a593Smuzhiyun
8*4882a593Smuzhiyunconfig HAVE_ARM_SMCCC_DISCOVERY
9*4882a593Smuzhiyun	bool
10*4882a593Smuzhiyun	depends on ARM_PSCI_FW
11*4882a593Smuzhiyun	default y
12*4882a593Smuzhiyun	help
13*4882a593Smuzhiyun	 SMCCC v1.0 lacked discoverability and hence PSCI v1.0 was updated
14*4882a593Smuzhiyun	 to add SMCCC discovery mechanism though the PSCI firmware
15*4882a593Smuzhiyun	 implementation of PSCI_FEATURES(SMCCC_VERSION) which returns
16*4882a593Smuzhiyun	 success on firmware compliant to SMCCC v1.1 and above.
17*4882a593Smuzhiyun
18*4882a593Smuzhiyunconfig ARM_SMCCC_SOC_ID
19*4882a593Smuzhiyun	bool "SoC bus device for the ARM SMCCC SOC_ID"
20*4882a593Smuzhiyun	depends on HAVE_ARM_SMCCC_DISCOVERY
21*4882a593Smuzhiyun	default y
22*4882a593Smuzhiyun	select SOC_BUS
23*4882a593Smuzhiyun	help
24*4882a593Smuzhiyun	  Include support for the SoC bus on the ARM SMCCC firmware based
25*4882a593Smuzhiyun	  platforms providing some sysfs information about the SoC variant.
26