Commit Graph
1192 Commits
Author SHA1 Message Date
Jean Delvare 184cb1e3c7 Use real-time alarm registers instead of interrupt registers for
W83782D, W83627HF, W83783S and W83791D. This is a backport from Linux
2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3260 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-02-23 23:11:17 +00:00
Jean Delvare 25e6966183 Add missing include for struct semaphore.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3251 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-02-07 10:15:27 +00:00
Rudolf Marek c83a8a43e8 Add back the temp1 in vt1211, patch from Juerg Haefliger <juergh@gmail.com>
This patch enables the reading of temp1 (Reading3) from the VT1211.
Reading3 returns the V1211's internal temperature.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3246 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-27 21:02:09 +00:00
Jean Delvare 0dec718da5 Drop unused struct member lm75.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3228 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-10 11:22:06 +00:00
Jean Delvare b36654cb3b Add 2.4 kernel and user-space support for the Winbond W83687THF
chip. Needs testing.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3226 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-10 11:17:17 +00:00
Jean Delvare 9f9be64fab Fix a reported compilation breakage with gcc 3.4 due to inline
functions being called before their actual definition. Thanks to Greg
Kroah-Hartman for the report.
Also, drop an unused lock.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3225 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-09 20:02:21 +00:00
Jean Delvare dcf611d1c7 One more supported PCI ID for the i2c-nforce2 driver. This is a
backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3223 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-07 17:26:14 +00:00
Jean Delvare c6d1ade5fe Always set the SMBAUXCTL register (which enables/disables PEC)
explicitly before each transaction. Backport from Linux 2.6, original
patch from Mark M. Hoffman.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3221 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-07 15:30:18 +00:00
Jean Delvare de5a8c5abb Cleanups to the fan and set_fan_div code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3218 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-17 17:36:05 +00:00
Jean Delvare fb223c5d24 Fix fan div auto-adjust. Patch from Yuan Mu.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3217 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-17 17:26:35 +00:00
Jean Delvare e843854352 Simplify message logging.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3215 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-13 19:53:22 +00:00
Jean Delvare a359166a48 Check for Fintek ID.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3214 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-13 19:44:04 +00:00
Jean Delvare dafffa2ec4 Rewrite the Super-I/O register access part so that we do not rely
on globals. The resulting code is slightly more compact too (both source
and compiled binary).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3213 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-13 19:35:17 +00:00
Jean Delvare c1ff1bbd55 Initialize the chip before registering it.
Drop useless local variable initialization.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3212 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-12 20:24:53 +00:00
Jean Delvare a51b72b468 Drop useless local variable.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3211 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-11 10:05:17 +00:00
Jean Delvare 0b298a851e Fix fan control mode (PWM/DC) reporting.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3210 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-11 09:58:01 +00:00
Jean Delvare faf61c24c8 Patch from Yuan Mu, with bug fixes and code cleanups backported
from Linux 2.6:

* Fan inputs 4, 5, 6 and 7 can be disabled.
* Simplify voltage reading code.
* Simplify and inline w83792d_{read,write}_value.
* Drop unused lock.
* Make needlessly global functions static.
* Fix the bug where tolerance 2 and tolerance 3 can not be set.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3209 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-11 09:20:21 +00:00
Jean Delvare 1bb52a68df Remove trailing whitespace. Patch from Yuan Mu.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3208 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-11 08:25:59 +00:00
Jean Delvare 0d65cedd4c Patch from Yuan Mu:
This patch fixes a typo in set VCORE function, in_min should be in_max.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3205 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-09 19:35:58 +00:00
Jean Delvare 06153c7a4c Display VID as 0V for W83627THF when GPIO5 is not used as VID
inputs. Backport of Yuan Mu's patch for Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3204 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-12-09 19:29:01 +00:00
Jean Delvare ae63690c60 Patch from Anton V. Staaf:
"(...) I found what I think is a bug in the it87_fan_div setting code.
(...) What was happening was that the check to make sure the third fan's
divisor was either 2 or 8 was using the wrong member of the it87 data
structure.  This was causing the if to never fail and thus always force
the divisor to 2."


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3200 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-21 20:07:02 +00:00
Jean Delvare 5cd5fde08d vt8231 cleanups, to get the 2.4 driver, libsensors and sensors
in line with the new 2.6 driver. The most important changes are temp
inputs renumbering, and conversion formulas changes, because part of the
conversions are now done by the driver as required by the interface
standard.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3194 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-19 14:55:30 +00:00
Jean Delvare ea30854a22 Drop DEFAULT_VRM, as it makes no sense to have a single default
VRM for all drivers. Same was done it Linux 2.6 some times ago.
Also comment out all "set vrm" lines in sensors.conf.eg, as Linux 2.6
now accurately deduces the VRM from the CPU model.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3190 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-12 09:30:38 +00:00
Jean Delvare a5438bfb88 Drop now unused register define.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3186 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-07 19:09:17 +00:00
Jean Delvare 9d0d49eead Coding style fixes, partly contributed by Ymu@Winbond.com.tw.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3185 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-06 22:00:10 +00:00
Jean Delvare 6e66ecd9b3 Fixes contributed by Ymu@Winbond.com.tw:
* Fix in4 reading on W83627THF and W83637HF.
* Use the right registers for alarms.
* Preserve fan min when setting fan div.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3184 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-06 21:54:05 +00:00
Jean Delvare 245b7171b3 Backport from Linux 2.6:
Add PEC support to the lm90 driver. Only the ADM1032 chip supports it,
and in a rather tricky way, which is why this patch comes with
documentation reinforcements. At least, this demonstrates that the new
PEC support logic in i2c-core can properly deal with chips with partial
PEC support.

As enabling PEC causes a significant performance drop, it can be
disabled through a procfs file (unsurprisingly named "pec").


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3181 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 20:47:45 +00:00
Jean Delvare 785cd3eda3 Coding style and printk fixes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3180 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 19:45:58 +00:00
Jean Delvare 2b5f162d40 Backport from Linux 2.6:
Preparatory patch to add PEC support to the lm90 driver. We need a
centralized function to read register values, where the PEC code will
be later inserted. A positive side effect is that read errors are now
handled properly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3179 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 19:18:44 +00:00
Jean Delvare 30cd73d63f Backport from Linux 2.6:
The tests leading to the use of hardware PEC in the i2c-i801 driver
can be simplified.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3178 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 18:40:17 +00:00
Jean Delvare 5467346e7b Backport SMBus PEC support rewrite from Linux 2.6:
The new SMBus PEC implementation doesn't support PEC emulation on
non-PEC non-I2C SMBus masters, so we can drop all related code.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3177 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 17:11:47 +00:00
Jean Delvare c12c82c13d Backport SMBus PEC support rewrite from Linux 2.6:
Discard I2C_FUNC_SMBUS_*_PEC defines. i2c clients are not supposed to
check for PEC support of i2c bus drivers on individual SMBus
transactions, and i2c bus drivers are not supposed to advertise them.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3176 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 12:24:30 +00:00
Jean Delvare ffdd27a3c2 Initial support for the Fintek F71805F/FG chip.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3169 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-04 20:59:18 +00:00
Jean Delvare 3664b58334 Drop unused structure members.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3167 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-01 15:49:52 +00:00
Jean Delvare ee837eeb43 Sync with Linux 2.6:
* Adjust log messages on SMBus reset.
* Reformat comment.
* Change the module author string.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3164 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-31 11:53:26 +00:00
Jean Delvare 6d94d22cd6 Support the ADM1032-2 and ADT7461-2, which have address 0x4d.
Backported from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3161 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 15:24:39 +00:00
Jean Delvare c7e6cd782f List the i845G as supported. PCI IDs cleanups.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3160 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 15:04:13 +00:00
Jean Delvare 2dfd3d5b47 Fix functions being declared static and then implemented
non-static. Backport from Linux 2.6, original patch from Ben Dooks.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3156 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 14:15:46 +00:00
Jean Delvare f1849c2f56 Drop useless w83627hf initialization step (backported from Linux
2.6).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3155 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 13:02:47 +00:00
Jean Delvare 2f12c68ed1 Misc fixes:
* The IT8705F and SiS950 have no SMBus interface.
* Fix a parenthesis misplacement.
* it87_detect should be static.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3154 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 11:52:13 +00:00
Jean Delvare 6ce664e2ec Using s8 instead of u8 to store temperature register values saves
a few instructions (backport from Linux 2.6).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3152 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 10:34:16 +00:00
Jean Delvare b1a481683d Revert request_region name change, this one driver does not
register as a pci_driver, so it has no pci_driver name.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3150 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 10:16:22 +00:00
Jean Delvare 7f68d835a3 Backport from Linux 2.6:
Clean up name string usage in 11 i2c bus drivers:
* Use the pci_driver name for requesting the I/O region rather than
  redefining a new string.
* Do not initialize the i2c_adapter name to "unset".
This should save a few data bytes here and there.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3149 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 10:02:58 +00:00
Jean Delvare 8d04d78a29 Remove dead code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3148 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 09:58:08 +00:00
Jean Delvare c23099c76d Drop a common comment about limits being set in initialization
functions. We no more do that.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3147 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 09:05:58 +00:00
Jean Delvare 29a686526d Strip trailing whitespace and break longs lines, as was done in
the Linux 2.6 version of this driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3145 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-30 08:41:31 +00:00
Jean Delvare 8abc37faf1 Improve register dump. This is a backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3143 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-29 21:47:49 +00:00
Jean Delvare 5aba57a4a9 Refactor a control outb. This allows for some other
simplifications. Backported from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3142 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-29 21:36:16 +00:00
Jean Delvare a181997776 Update the list of supported chips, stating which ones support
I2C block reads, and which don't. This is a backport from Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3141 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-29 21:13:25 +00:00
Jean Delvare 2f6bd9c4c2 Code cleanups, backported from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3140 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-29 21:04:11 +00:00