~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/driver-api/thermal/exynos_thermal_emulation.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php