Kconfig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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 frequnecy
  56. given at the initialization.
  57. comment "DEVFREQ Drivers"
  58. config ARM_EXYNOS4_BUS_DEVFREQ
  59. bool "ARM Exynos4210/4212/4412 Memory Bus DEVFREQ Driver"
  60. depends on (CPU_EXYNOS4210 || SOC_EXYNOS4212 || SOC_EXYNOS4412) && !ARCH_MULTIPLATFORM
  61. select DEVFREQ_GOV_SIMPLE_ONDEMAND
  62. select PM_OPP
  63. help
  64. This adds the DEVFREQ driver for Exynos4210 memory bus (vdd_int)
  65. and Exynos4212/4412 memory interface and bus (vdd_mif + vdd_int).
  66. It reads PPMU counters of memory controllers and adjusts
  67. the operating frequencies and voltages with OPP support.
  68. This does not yet operate with optimal voltages.
  69. config ARM_EXYNOS5_BUS_DEVFREQ
  70. tristate "ARM Exynos5250 Bus DEVFREQ Driver"
  71. depends on SOC_EXYNOS5250
  72. select DEVFREQ_GOV_SIMPLE_ONDEMAND
  73. select PM_OPP
  74. help
  75. This adds the DEVFREQ driver for Exynos5250 bus interface (vdd_int).
  76. It reads PPMU counters of memory controllers and adjusts the
  77. operating frequencies and voltages with OPP support.
  78. config ARM_TEGRA_DEVFREQ
  79. tristate "Tegra DEVFREQ Driver"
  80. depends on ARCH_TEGRA_124_SOC
  81. select DEVFREQ_GOV_SIMPLE_ONDEMAND
  82. select PM_OPP
  83. help
  84. This adds the DEVFREQ driver for the Tegra family of SoCs.
  85. It reads ACTMON counters of memory controllers and adjusts the
  86. operating frequencies and voltages with OPP support.
  87. source "drivers/devfreq/event/Kconfig"
  88. endif # PM_DEVFREQ