exynos_thermal_emulation.rst 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. =====================
  2. Exynos Emulation Mode
  3. =====================
  4. Copyright (C) 2012 Samsung Electronics
  5. Written by Jonghwa Lee <[email protected]>
  6. Description
  7. -----------
  8. Exynos 4x12 (4212, 4412) and 5 series provide emulation mode for thermal
  9. management unit. Thermal emulation mode supports software debug for
  10. TMU's operation. User can set temperature manually with software code
  11. and TMU will read current temperature from user value not from sensor's
  12. value.
  13. Enabling CONFIG_THERMAL_EMULATION option will make this support
  14. available. When it's enabled, sysfs node will be created as
  15. /sys/devices/virtual/thermal/thermal_zone'zone id'/emul_temp.
  16. The sysfs node, 'emul_node', will contain value 0 for the initial state.
  17. When you input any temperature you want to update to sysfs node, it
  18. automatically enable emulation mode and current temperature will be
  19. changed into it.
  20. (Exynos also supports user changeable delay time which would be used to
  21. delay of changing temperature. However, this node only uses same delay
  22. of real sensing time, 938us.)
  23. Exynos emulation mode requires synchronous of value changing and
  24. enabling. It means when you want to update the any value of delay or
  25. next temperature, then you have to enable emulation mode at the same
  26. time. (Or you have to keep the mode enabling.) If you don't, it fails to
  27. change the value to updated one and just use last succeessful value
  28. repeatedly. That's why this node gives users the right to change
  29. termerpature only. Just one interface makes it more simply to use.
  30. Disabling emulation mode only requires writing value 0 to sysfs node.
  31. ::
  32. TEMP 120 |
  33. |
  34. 100 |
  35. |
  36. 80 |
  37. | +-----------
  38. 60 | | |
  39. | +-------------| |
  40. 40 | | | |
  41. | | | |
  42. 20 | | | +----------
  43. | | | | |
  44. 0 |______________|_____________|__________|__________|_________
  45. A A A A TIME
  46. |<----->| |<----->| |<----->| |
  47. | 938us | | | | | |
  48. emulation : 0 50 | 70 | 20 | 0
  49. current temp: sensor 50 70 20 sensor