CPUfreq.txt 2.2 KB

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