Kconfig 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. menuconfig PM_DEVFREQ
  2. bool "Generic Dynamic Voltage and Frequency Scaling (DVFS) support"
  3. help
  4. A device may have a list of frequencies and voltages available.
  5. devfreq, a generic DVFS framework can be registered for a device
  6. in order to let the governor provided to devfreq choose an
  7. operating frequency based on the device driver's policy.
  8. Each device may have its own governor and policy. Devfreq can
  9. reevaluate the device state periodically and/or based on the
  10. notification to "nb", a notifier block, of devfreq.
  11. Like some CPUs with CPUfreq, a device may have multiple clocks.
  12. However, because the clock frequencies of a single device are
  13. determined by the single device's state, an instance of devfreq
  14. is attached to a single device and returns a "representative"
  15. clock frequency of the device, which is also attached
  16. to a device by 1-to-1. The device registering devfreq takes the
  17. responsiblity to "interpret" the representative frequency and
  18. to set its every clock accordingly with the "target" callback
  19. given to devfreq.
  20. When OPP is used with the devfreq device, it is recommended to
  21. register devfreq's nb to the OPP's notifier head. If OPP is
  22. used with the devfreq device, you may use OPP helper
  23. functions defined in devfreq.h.
  24. if PM_DEVFREQ
  25. comment "DEVFREQ Governors"
  26. config DEVFREQ_GOV_SIMPLE_ONDEMAND
  27. tristate "Simple Ondemand"
  28. help
  29. Chooses frequency based on the recent load on the device. Works
  30. similar as ONDEMAND governor of CPUFREQ does. A device with
  31. Simple-Ondemand should be able to provide busy/total counter
  32. values that imply the usage rate. A device may provide tuned
  33. values to the governor with data field at devfreq_add_device().
  34. config DEVFREQ_GOV_PERFORMANCE
  35. tristate "Performance"
  36. help
  37. Sets the frequency at the maximum available frequency.
  38. This governor always returns UINT_MAX as frequency so that
  39. the DEVFREQ framework returns the highest frequency available
  40. at any time.
  41. config DEVFREQ_GOV_POWERSAVE
  42. tristate "Powersave"
  43. help
  44. Sets the frequency at the minimum available frequency.
  45. This governor always returns 0 as frequency so that
  46. the DEVFREQ framework returns the lowest frequency available
  47. at any time.
  48. config DEVFREQ_GOV_USERSPACE
  49. tristate "Userspace"
  50. help
  51. Sets the frequency at the user specified one.
  52. This governor returns the user configured frequency if there
  53. has been an input to /sys/devices/.../power/devfreq_set_freq.
  54. Otherwise, the governor does not change the frequnecy
  55. given at the initialization.
  56. config DEVFREQ_GOV_MSM_ADRENO_TZ
  57. tristate "MSM Adreno Trustzone"
  58. depends on MSM_KGSL && MSM_SCM
  59. help
  60. Trustzone based governor for the Adreno GPU.
  61. Sets the frequency using a "on-demand" algorithm.
  62. This governor is unlikely to be useful for other devices.
  63. config DEVFREQ_GOV_MSM_CPUFREQ
  64. bool "MSM CPUfreq"
  65. depends on CPU_FREQ_MSM
  66. help
  67. MSM CPUfreq based governor for CPU bandwidth voting. Sets the CPU
  68. to DDR BW vote based on the current CPU frequency. This governor
  69. is unlikely to be useful for non-MSM devices.
  70. config DEVFREQ_GOV_MSM_CPUBW_HWMON
  71. tristate "HW monitor based governor for CPUBW"
  72. depends on ARCH_MSM_KRAIT
  73. help
  74. HW monitor based governor for CPU to DDR bandwidth voting. This
  75. goveror currently supports only Krait L2 PM counters. Sets the CPU
  76. BW vote by using L2 PM counters to monitor the Krait's use of DDR.
  77. Since this governor uses some of the PM counters it can conflict
  78. with existing profiling tools. This governor is unlikely to be
  79. useful for other devices.
  80. comment "DEVFREQ Drivers"
  81. config ARM_EXYNOS4_BUS_DEVFREQ
  82. bool "ARM Exynos4210/4212/4412 Memory Bus DEVFREQ Driver"
  83. depends on CPU_EXYNOS4210 || CPU_EXYNOS4212 || CPU_EXYNOS4412
  84. select ARCH_HAS_OPP
  85. select DEVFREQ_GOV_SIMPLE_ONDEMAND
  86. help
  87. This adds the DEVFREQ driver for Exynos4210 memory bus (vdd_int)
  88. and Exynos4212/4412 memory interface and bus (vdd_mif + vdd_int).
  89. It reads PPMU counters of memory controllers and adjusts
  90. the operating frequencies and voltages with OPP support.
  91. To operate with optimal voltages, ASV support is required
  92. (CONFIG_EXYNOS_ASV).
  93. endif # PM_DEVFREQ