]> git.sur5r.net Git - groeck-nct6775/log
groeck-nct6775
12 years agoAdd support for critical temperature on PECI sources
Guenter Roeck [Sat, 28 Apr 2012 14:38:51 +0000 (07:38 -0700)]
Add support for critical temperature on PECI sources

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAlternate temp registers only needed locally
Guenter Roeck [Sat, 28 Apr 2012 05:05:02 +0000 (22:05 -0700)]
Alternate temp registers only needed locally

thus remove persistent pointer and use a local variable instead

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoSome minor fan related cleanup
Guenter Roeck [Sat, 28 Apr 2012 02:23:37 +0000 (19:23 -0700)]
Some minor fan related cleanup

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoRevert "All NCT677X chips support RPM registers, so read the RPM directly"
Guenter Roeck [Sat, 28 Apr 2012 02:02:51 +0000 (19:02 -0700)]
Revert "All NCT677X chips support RPM registers, so read the RPM directly"

This reverts commit d82b291af288a77835721c2792bbf1478cd25a58.

Sounded like a good idea, but NCT6776 returns an RPM > 0 even
if no fan is connected.

12 years agoAll NCT677X chips support RPM registers, so read the RPM directly
Guenter Roeck [Sat, 28 Apr 2012 01:49:15 +0000 (18:49 -0700)]
All NCT677X chips support RPM registers, so read the RPM directly

This is simpler than reading the fan count register and calculating RPM from it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agonct6779: Fix vinX_min and vinX_max for in9..in14.
Guenter Roeck [Fri, 27 Apr 2012 20:45:31 +0000 (13:45 -0700)]
nct6779: Fix vinX_min and vinX_max for in9..in14.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoFix number of temp registers for NCT6779
Guenter Roeck [Fri, 27 Apr 2012 13:57:07 +0000 (06:57 -0700)]
Fix number of temp registers for NCT6779

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoTemperature source selection fixes
Guenter Roeck [Fri, 27 Apr 2012 02:07:25 +0000 (19:07 -0700)]
Temperature source selection fixes

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoNCT6779 supports fan3min and fan4min.
Guenter Roeck [Fri, 27 Apr 2012 01:42:37 +0000 (18:42 -0700)]
NCT6779 supports fan3min and fan4min.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoFix fan count registers for NCT6779
Guenter Roeck [Fri, 27 Apr 2012 01:36:30 +0000 (18:36 -0700)]
Fix fan count registers for NCT6779

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoUpdate debug message for invalid source register
Guenter Roeck [Thu, 26 Apr 2012 14:04:21 +0000 (07:04 -0700)]
Update debug message for invalid source register

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoCheck for invalid temperature source
Guenter Roeck [Thu, 26 Apr 2012 12:10:33 +0000 (05:10 -0700)]
Check for invalid temperature source

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoMinor cosmetic cleanup
Guenter Roeck [Thu, 26 Apr 2012 04:51:01 +0000 (21:51 -0700)]
Minor cosmetic cleanup

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAuso-generate have_in bit mask
Guenter Roeck [Thu, 26 Apr 2012 03:12:34 +0000 (20:12 -0700)]
Auso-generate have_in bit mask

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoFix size of NCT6775_REG_TEMP_ALTERNATE array
Guenter Roeck [Thu, 26 Apr 2012 03:04:08 +0000 (20:04 -0700)]
Fix size of NCT6775_REG_TEMP_ALTERNATE array

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoFix checkpatch warnings
Guenter Roeck [Thu, 26 Apr 2012 02:57:57 +0000 (19:57 -0700)]
Fix checkpatch warnings

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoFix temp10_max_hyst
Guenter Roeck [Thu, 26 Apr 2012 02:54:45 +0000 (19:54 -0700)]
Fix temp10_max_hyst

temp9_max_hyst was defined twice, and temp10_max_hyst was missing

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoUpdate some NCT6779 registers
Guenter Roeck [Wed, 25 Apr 2012 04:16:32 +0000 (21:16 -0700)]
Update some NCT6779 registers

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoReset caseopen clear bit after setting it
Guenter Roeck [Sun, 18 Mar 2012 17:19:25 +0000 (10:19 -0700)]
Reset caseopen clear bit after setting it

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoConvert status (alarm) register accesses to indexed mode
Guenter Roeck [Sun, 18 Mar 2012 16:23:17 +0000 (09:23 -0700)]
Convert status (alarm) register accesses to indexed mode

This enables support for different status register (alarm) bit maps.

Also convert caseopen status access to use real-time status register bits
instead of interrupt bits.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAdd NCT6776F usage note
Guenter Roeck [Sun, 18 Mar 2012 00:22:32 +0000 (17:22 -0700)]
Add NCT6776F usage note

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoDefine TESTING flag, remove debug output
Guenter Roeck [Sat, 17 Mar 2012 20:28:04 +0000 (13:28 -0700)]
Define TESTING flag, remove debug output

Only support alternate temperature registers if TESTING is enabled.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAdd support for more temperatures
Guenter Roeck [Sat, 17 Mar 2012 20:20:28 +0000 (13:20 -0700)]
Add support for more temperatures

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoFix maximum temperature source index
Guenter Roeck [Sat, 17 Mar 2012 17:46:30 +0000 (10:46 -0700)]
Fix maximum temperature source index

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoUpdate README
Guenter Roeck [Sat, 17 Mar 2012 15:37:34 +0000 (08:37 -0700)]
Update README

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoFind additonal temp registers and enable monitoring if possible
Guenter Roeck [Sat, 17 Mar 2012 14:30:38 +0000 (07:30 -0700)]
Find additonal temp registers and enable monitoring if possible

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAdd support for max_output and step_output, and re-enable SmartFan III support on...
Guenter Roeck [Fri, 16 Mar 2012 03:04:44 +0000 (20:04 -0700)]
Add support for max_output and step_output, and re-enable SmartFan III support on NCT6775

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAdd support for pwmX_stop_output_enable
Guenter Roeck [Thu, 15 Mar 2012 22:17:21 +0000 (15:17 -0700)]
Add support for pwmX_stop_output_enable

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAdd support for fixed temperature registers supported by NCT6779D
Guenter Roeck [Thu, 15 Mar 2012 18:29:40 +0000 (11:29 -0700)]
Add support for fixed temperature registers supported by NCT6779D

NCT6779D supports a fixed set of temperature registers in addition to the
registers with dymanically configured source. Add support for it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoRefactor code to allow up to 6 fixed temperature sources
Guenter Roeck [Thu, 15 Mar 2012 18:10:30 +0000 (11:10 -0700)]
Refactor code to allow up to 6 fixed temperature sources

Support SYSTIN, CPUTIN, AUXTIN0..3 (for NCT6779D)

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoDistinguish thermal temp diode / diode (types 1, 3)
Guenter Roeck [Thu, 15 Mar 2012 16:33:57 +0000 (09:33 -0700)]
Distinguish thermal temp diode / diode (types 1, 3)

Make diode type configurable.
Assign first three sensors to fixed types (SYSTIN, CPUTIN, AUXTIN).
Dynamic types start from index 4.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoCoding style cleanup
Guenter Roeck [Thu, 15 Mar 2012 10:02:39 +0000 (03:02 -0700)]
Coding style cleanup

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoConvert REG_CONFIG to pointer
Guenter Roeck [Thu, 15 Mar 2012 04:40:05 +0000 (21:40 -0700)]
Convert REG_CONFIG to pointer

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoConvert REG_VBAT to pointer
Guenter Roeck [Thu, 15 Mar 2012 04:25:59 +0000 (21:25 -0700)]
Convert REG_VBAT to pointer

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoWeight register support
Guenter Roeck [Wed, 14 Mar 2012 17:22:22 +0000 (10:22 -0700)]
Weight register support

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agolots of weight related and other changes
Guenter Roeck [Wed, 14 Mar 2012 02:55:06 +0000 (19:55 -0700)]
lots of weight related and other changes

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAdd support for temp offset register, and secondary pwm temp source register
Guenter Roeck [Tue, 13 Mar 2012 21:26:46 +0000 (14:26 -0700)]
Add support for temp offset register, and secondary pwm temp source register

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAdd support for temperature offset register / attributes
Guenter Roeck [Tue, 13 Mar 2012 11:10:18 +0000 (04:10 -0700)]
Add support for temperature offset register / attributes

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoPrepare for NCT6102/6106
Guenter Roeck [Mon, 12 Mar 2012 16:52:06 +0000 (09:52 -0700)]
Prepare for NCT6102/6106

Convert direct register accesses to chip type indexed accesses
Convert macro generated functions to real functions

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoDriver should not rely or depend on setting platform_drvdata to NULL
Guenter Roeck [Mon, 12 Mar 2012 18:35:09 +0000 (11:35 -0700)]
Driver should not rely or depend on setting platform_drvdata to NULL

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agofix some array sizes
Guenter Roeck [Mon, 12 Mar 2012 06:27:25 +0000 (23:27 -0700)]
fix some array sizes

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAdd attributes to set pwm temperature source
Guenter Roeck [Mon, 12 Mar 2012 04:22:12 +0000 (21:22 -0700)]
Add attributes to set pwm temperature source

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agorework temperature display
Guenter Roeck [Mon, 12 Mar 2012 01:56:25 +0000 (18:56 -0700)]
rework temperature display

temp[1..6] now always display SMIOVT[1..6] monitoring sources.
temp[7..11] displays fan control temperature sources.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoDrop support for SmartFan III
Guenter Roeck [Mon, 12 Mar 2012 00:19:06 +0000 (17:19 -0700)]
Drop support for SmartFan III

It only exists on NCT6775. Supporting it only makes the driver more complex
for little value.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAdd capability to turn fan control off (set max speed)
Guenter Roeck [Sun, 11 Mar 2012 23:40:22 +0000 (16:40 -0700)]
Add capability to turn fan control off (set max speed)

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agofix ABI (hysteresis -> temp_hyst)
Guenter Roeck [Sun, 11 Mar 2012 23:10:00 +0000 (16:10 -0700)]
fix ABI (hysteresis -> temp_hyst)

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoUpdate README to reflect that ABI is not final.
Guenter Roeck [Sun, 11 Mar 2012 23:06:22 +0000 (16:06 -0700)]
Update README to reflect that ABI is not final.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoAdd README
Guenter Roeck [Sun, 11 Mar 2012 21:47:57 +0000 (14:47 -0700)]
Add README

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agoReplace tolerance with auto_point_hysteresis attributes
Guenter Roeck [Sun, 11 Mar 2012 20:52:27 +0000 (13:52 -0700)]
Replace tolerance with auto_point_hysteresis attributes

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
12 years agonct6775: initial version
Guenter Roeck [Sun, 11 Mar 2012 20:12:28 +0000 (13:12 -0700)]
nct6775: initial version

Signed-off-by: Guenter Roeck <linux@roeck-us.net>