Kconfig 4.3 KB

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