exynos_thermal_emulation 2.2 KB

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