cpufreq.rst 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. .. SPDX-License-Identifier: GPL-2.0-only
  2. =======================
  3. S3C24XX CPUfreq support
  4. =======================
  5. Introduction
  6. ------------
  7. The S3C24XX series support a number of power saving systems, such as
  8. the ability to change the core, memory and peripheral operating
  9. frequencies. The core control is exported via the CPUFreq driver
  10. which has a number of different manual or automatic controls over the
  11. rate the core is running at.
  12. There are two forms of the driver depending on the specific CPU and
  13. how the clocks are arranged. The first implementation used as single
  14. PLL to feed the ARM, memory and peripherals via a series of dividers
  15. and muxes and this is the implementation that is documented here. A
  16. newer version where there is a separate PLL and clock divider for the
  17. ARM core is available as a separate driver.
  18. Layout
  19. ------
  20. The code core manages the CPU specific drivers, any data that they
  21. need to register and the interface to the generic drivers/cpufreq
  22. system. Each CPU registers a driver to control the PLL, clock dividers
  23. and anything else associated with it. Any board that wants to use this
  24. framework needs to supply at least basic details of what is required.
  25. The core registers with drivers/cpufreq at init time if all the data
  26. necessary has been supplied.
  27. CPU support
  28. -----------
  29. The support for each CPU depends on the facilities provided by the
  30. SoC and the driver as each device has different PLL and clock chains
  31. associated with it.
  32. Slow Mode
  33. ---------
  34. The SLOW mode where the PLL is turned off altogether and the
  35. system is fed by the external crystal input is currently not
  36. supported.
  37. sysfs
  38. -----
  39. The core code exports extra information via sysfs in the directory
  40. devices/system/cpu/cpu0/arch-freq.
  41. Board Support
  42. -------------
  43. Each board that wants to use the cpufreq code must register some basic
  44. information with the core driver to provide information about what the
  45. board requires and any restrictions being placed on it.
  46. The board needs to supply information about whether it needs the IO bank
  47. timings changing, any maximum frequency limits and information about the
  48. SDRAM refresh rate.
  49. Document Author
  50. ---------------
  51. Ben Dooks, Copyright 2009 Simtec Electronics