Kconfig 3.4 KB

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