From: drewie@freemail.hu (Andras BALI)
To: lm-sensors@vger.kernel.org
Subject: lm77 on national sc1100
Date: Thu, 19 May 2005 06:25:03 +0000 [thread overview]
Message-ID: <1088690691.2862.25.camel@null> (raw)
Hi all,
referencing to #1710 and #1714, I figured out that the LM77
sensor is not compatible with the LM75, though it's similar.
Attached is a driver for the LM77 that works for me. It gives
read access to the temperature register (temp1_input) and
read+write access to t_hyst, t_crit, t_high, t_low. The config
register is not made available, nor are the status bits, but
it should be really easy to add these if required. The code is
a shameless copy of the lm75 module -- all credits go to Frodo
Looijaard.
The detection is a bit problematic: the lm77 module should not
install itself for anything else but an lm77, but the lm75
driver will recognize an lm77 as an lm75. It could be patched to
check if the chip in question is an lm77 (and skip it if yes),
but I'm not sure if it's appropriate. Ideas are welcome.
I have this LM77 sensor on the secondary I2C bus of a National
SC1100 system. The bus is driven by the scx200_acb (stock kernel
2.6.7) module, which I had to patch in order to get it work: on
line 461, the following should be added:
adapter->class = I2C_CLASS_HWMON;
-- otherwise the sensors will not try to detect devices on this
bus (thanks Khali). I also had to change the ACCESS.bus base
addresses from 0x820, 0x840 to 0x810, 0x820 (line 46), but YMMV.
I would be really glad to see this module included in the
lm_sensors package.
Please CC me all replies to this message, I'm not subscribed to
this mailing list.
Best regards,
Andras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lm77.c
Type: text/x-csrc
Size: 9583 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040701/957be51a/lm77.bin
next reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 Andras BALI [this message]
2005-05-19 6:25 ` lm77 on national sc1100 Andras BALI
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Mark M. Hoffman
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Mark M. Hoffman
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Mark M. Hoffman
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Mark M. Hoffman
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Andras BALI
2005-05-19 6:25 ` Andras BALI
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1088690691.2862.25.camel@null \
--to=drewie@freemail.hu \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.