xref: /linux/drivers/firmware/arm_scmi/Kconfig (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: GPL-2.0-only
2menu "ARM System Control and Management Interface Protocol"
3
4config ARM_SCMI_PROTOCOL
5	tristate "ARM System Control and Management Interface (SCMI) Message Protocol"
6	depends on ARM || ARM64 || COMPILE_TEST
7	help
8	  ARM System Control and Management Interface (SCMI) protocol is a
9	  set of operating system-independent software interfaces that are
10	  used in system management. SCMI is extensible and currently provides
11	  interfaces for: Discovery and self-description of the interfaces
12	  it supports, Power domain management which is the ability to place
13	  a given device or domain into the various power-saving states that
14	  it supports, Performance management which is the ability to control
15	  the performance of a domain that is composed of compute engines
16	  such as application processors and other accelerators, Clock
17	  management which is the ability to set and inquire rates on platform
18	  managed clocks and Sensor management which is the ability to read
19	  sensor data, and be notified of sensor value.
20
21	  This protocol library provides interface for all the client drivers
22	  making use of the features offered by the SCMI.
23
24if ARM_SCMI_PROTOCOL
25
26config ARM_SCMI_NEED_DEBUGFS
27	bool
28	help
29	  This declares whether at least one SCMI facility is configured
30	  which needs debugfs support. When selected causess the creation
31	  of a common SCMI debugfs root directory.
32
33config ARM_SCMI_RAW_MODE_SUPPORT
34	bool "Enable support for SCMI Raw transmission mode"
35	depends on DEBUG_FS
36	select ARM_SCMI_NEED_DEBUGFS
37	help
38	  Enable support for SCMI Raw transmission mode.
39
40	  If enabled allows the direct injection and snooping of SCMI bare
41	  messages through a dedicated debugfs interface.
42	  It is meant to be used by SCMI compliance/testing suites.
43
44	  When enabled regular SCMI drivers interactions are inhibited in
45	  order to avoid unexpected interactions with the SCMI Raw message
46	  flow. If unsure say N.
47
48config ARM_SCMI_RAW_MODE_SUPPORT_COEX
49	bool "Allow SCMI Raw mode coexistence with normal SCMI stack"
50	depends on ARM_SCMI_RAW_MODE_SUPPORT
51	help
52	  Allow SCMI Raw transmission mode to coexist with normal SCMI stack.
53
54	  This will allow regular SCMI drivers to register with the core and
55	  operate normally, thing which could make an SCMI test suite using the
56	  SCMI Raw mode support unreliable. If unsure, say N.
57
58config ARM_SCMI_DEBUG_COUNTERS
59	bool "Enable SCMI communication debug metrics tracking"
60	select ARM_SCMI_NEED_DEBUGFS
61	depends on DEBUG_FS
62	default n
63	help
64	  Enables tracking of some key communication metrics for debug
65	  purposes. It may track metrics like how many messages were sent
66	  or received, were there any failures, what kind of failures, ..etc.
67
68	  Enable this option to create a new debugfs directory which contains
69	  such useful debug counters. This can be helpful for debugging and
70	  SCMI monitoring.
71
72source "drivers/firmware/arm_scmi/transports/Kconfig"
73source "drivers/firmware/arm_scmi/vendors/imx/Kconfig"
74
75endif #ARM_SCMI_PROTOCOL
76
77config ARM_SCMI_POWER_CONTROL
78	tristate "SCMI system power control driver"
79	depends on ARM_SCMI_PROTOCOL || (COMPILE_TEST && OF)
80	help
81	  This enables System Power control logic which binds system shutdown or
82	  reboot actions to SCMI System Power notifications generated by SCP
83	  firmware.
84
85	  This driver can also be built as a module.  If so, the module will be
86	  called scmi_power_control. Note this may needed early in boot to catch
87	  early shutdown/reboot SCMI requests.
88
89endmenu
90