]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00153275-1 ahci L2638 add the standalone ahci temperature monitor
authorRichard Zhu <r65037@freescale.com>
Tue, 19 Jul 2011 05:42:29 +0000 (13:42 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:01 +0000 (08:33 +0200)
commitc986649c2901ad7deec342b631301aefff5fdfa6
tree3ac4e6eb69cd1dce542f43403c272a4b95967232
parent6d20b14d0e084f44fd56cf5a40a37c36fe30d619
ENGR00153275-1 ahci L2638 add the standalone ahci temperature monitor

based on the 2.6.38 kernel mainline, refer to linux lm-sensors
architeture, add the standalone ahci temperature monitor driver
on fsl i.mx53 platforms.
Less than half sencond is used in one temperature read operation.

usage:
Use the following cmd to cat the i.mx53 soc temperature after
boot up i.mx53 system in user space.
for example:
...$ cat /sys/class/hwmon/hwmon1/device/temp1_input
61000
or run the following cmd after configure the lm-sensors
...$ sensors
imx-ahci-hwmon-isa-0000
Adapter: ISA adapter
temp1:        +58.0 C

Signed-off-by: Richard Zhu <r65037@freescale.com>
drivers/hwmon/Kconfig
drivers/hwmon/Makefile
drivers/hwmon/imx_ahci_hwmon.c [new file with mode: 0644]