Kconfig 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. menuconfig PM_DEVFREQ
  2. bool "Generic Dynamic Voltage and Frequency Scaling (DVFS) support"
  3. select SRCU
  4. select PM_OPP
  5. help
  6. A device may have a list of frequencies and voltages available.
  7. devfreq, a generic DVFS framework can be registered for a device
  8. in order to let the governor provided to devfreq choose an
  9. operating frequency based on the device driver's policy.
  10. Each device may have its own governor and policy. Devfreq can
  11. reevaluate the device state periodically and/or based on the
  12. notification to "nb", a notifier block, of devfreq.
  13. Like some CPUs with CPUfreq, a device may have multiple clocks.
  14. However, because the clock frequencies of a single device are
  15. determined by the single device's state, an instance of devfreq
  16. is attached to a single device and returns a "representative"
  17. clock frequency of the device, which is also attached
  18. to a device by 1-to-1. The device registering devfreq takes the
  19. responsibility to "interpret" the representative frequency and
  20. to set its every clock accordingly with the "target" callback
  21. given to devfreq.
  22. When OPP is used with the devfreq device, it is recommended to
  23. register devfreq's nb to the OPP's notifier head. If OPP is
  24. used with the devfreq device, you may use OPP helper
  25. functions defined in devfreq.h.
  26. if PM_DEVFREQ
  27. comment "DEVFREQ Governors"
  28. config DEVFREQ_GOV_SIMPLE_ONDEMAND
  29. tristate "Simple Ondemand"
  30. help
  31. Chooses frequency based on the recent load on the device. Works
  32. similar as ONDEMAND governor of CPUFREQ does. A device with
  33. Simple-Ondemand should be able to provide busy/total counter
  34. values that imply the usage rate. A device may provide tuned
  35. values to the governor with data field at devfreq_add_device().
  36. config DEVFREQ_GOV_PERFORMANCE
  37. tristate "Performance"
  38. help
  39. Sets the frequency at the maximum available frequency.
  40. This governor always returns UINT_MAX as frequency so that
  41. the DEVFREQ framework returns the highest frequency available
  42. at any time.
  43. config DEVFREQ_GOV_POWERSAVE
  44. tristate "Powersave"
  45. help
  46. Sets the frequency at the minimum available frequency.
  47. This governor always returns 0 as frequency so that
  48. the DEVFREQ framework returns the lowest frequency available
  49. at any time.
  50. config DEVFREQ_GOV_USERSPACE
  51. tristate "Userspace"
  52. help
  53. Sets the frequency at the user specified one.
  54. This governor returns the user configured frequency if there
  55. has been an input to /sys/devices/.../power/devfreq_set_freq.
  56. Otherwise, the governor does not change the frequency
  57. given at the initialization.
  58. config DEVFREQ_GOV_PASSIVE
  59. tristate "Passive"
  60. help
  61. Sets the frequency based on the frequency of its parent devfreq
  62. device. This governor does not change the frequency by itself
  63. through sysfs entries. The passive governor recommends that
  64. devfreq device uses the OPP table to get the frequency/voltage.
  65. comment "DEVFREQ Drivers"
  66. config ARM_EXYNOS_BUS_DEVFREQ
  67. tristate "ARM EXYNOS Generic Memory Bus DEVFREQ Driver"
  68. depends on ARCH_EXYNOS || COMPILE_TEST
  69. select DEVFREQ_GOV_SIMPLE_ONDEMAND
  70. select DEVFREQ_GOV_PASSIVE
  71. select DEVFREQ_EVENT_EXYNOS_PPMU
  72. select PM_DEVFREQ_EVENT
  73. select PM_OPP
  74. help
  75. This adds the common DEVFREQ driver for Exynos Memory bus. Exynos
  76. Memory bus has one more group of memory bus (e.g, MIF and INT block).
  77. Each memory bus group could contain many memoby bus block. It reads
  78. PPMU counters of memory controllers by using DEVFREQ-event device
  79. and adjusts the operating frequencies and voltages with OPP support.
  80. This does not yet operate with optimal voltages.
  81. config ARM_TEGRA_DEVFREQ
  82. tristate "Tegra DEVFREQ Driver"
  83. depends on ARCH_TEGRA_124_SOC
  84. select DEVFREQ_GOV_SIMPLE_ONDEMAND
  85. select PM_OPP
  86. help
  87. This adds the DEVFREQ driver for the Tegra family of SoCs.
  88. It reads ACTMON counters of memory controllers and adjusts the
  89. operating frequencies and voltages with OPP support.
  90. config ARM_RK3399_DMC_DEVFREQ
  91. tristate "ARM RK3399 DMC DEVFREQ Driver"
  92. depends on (ARCH_ROCKCHIP && HAVE_ARM_SMCCC) || \
  93. (COMPILE_TEST && HAVE_ARM_SMCCC)
  94. select DEVFREQ_EVENT_ROCKCHIP_DFI
  95. select DEVFREQ_GOV_SIMPLE_ONDEMAND
  96. select PM_DEVFREQ_EVENT
  97. select PM_OPP
  98. help
  99. This adds the DEVFREQ driver for the RK3399 DMC(Dynamic Memory Controller).
  100. It sets the frequency for the memory controller and reads the usage counts
  101. from hardware.
  102. source "drivers/devfreq/event/Kconfig"
  103. endif # PM_DEVFREQ