All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] Address configuration for scx200_acb
Date: Sun, 30 Apr 2006 12:17:07 +0000	[thread overview]
Message-ID: <20060430141707.28c6ea66.khali@linux-fr.org> (raw)
In-Reply-To: <20060427234114.941c9657.khali@linux-fr.org>

Hi Thomas,

[Jean Delvare]
> > Looks like standard LPC/Super-IO register mapping. Are the SC1100 and
> > SCx200 LPC chips? What are the values of CFG_INDEX and CFG_DATA in the
> > code snippet above? I'd guess/hope 0x2e and 0x2f respectively (or 0x4e
> > and 0x4f.)
> > 
> > I don't have much time to work on that myself, especially when I have
> > no hardware to test this on, but if you or anyone else could prepare a
> > patch implementing the idea above in the scx200_acb driver, so that
> > other users can give it some testing, this would be great.

[Thomas Andrews]
> I don't actually know what "LPC/Super-IO" means, but the data-sheet for
> the SC1100 seems to indicate that it is so:
> 
>     "The LPC interface of the Core Logic module is based on the Intel Low
>     Pin Count (LPC) Interface specification, revision 1.0."
> 
> and also:
> 
>     "LPC SuperI/O Addressing. SuperI/O control addresses I/O Ports 2Eh-2Fh.
>     See bit 16 for decode"
> 
> And as you suggested, there is another address pair that can be used:
> 
>     "LPC Alternate SuperI/O Addressing. Alternate SuperI/O control addresses
>     4Eh-4Fh. See bit 16 for decode."
> 
> In the code snippet above, I used 0x2e & x2f. I don't know how you
> determine which pair to use. I just tried the first one. Is there a
> "standard" way to select it?

Usually the address is selected by hardware, by latching the state of
one pin of the chip at power-up. So, most of the time you just have to
try both address pairs. See function w83627hf_find in
drivers/hwmon/w83627hf.c for an example. 0x2e/0x2f is almost always
the right address pair.

> I will submit a patch once I have a better understanding.

Great, thanks.

-- 
Jean Delvare


  parent reply	other threads:[~2006-04-30 12:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-27 21:41 [lm-sensors] Address configuration for scx200_acb Jean Delvare
2006-04-28  6:47 ` Thomas Andrews
2006-04-30  7:43 ` Jean Delvare
2006-04-30 10:12 ` Thomas Andrews
2006-04-30 12:17 ` Jean Delvare [this message]
2006-05-01 11:15 ` Jim Cromie
2006-05-01 12:22 ` Jean Delvare
2006-05-01 13:58 ` Thomas Andrews
2006-05-01 15:12 ` Jim Cromie
2006-05-01 17:26 ` Thomas Andrews
2006-05-02 14:08 ` Alexander Krause
2006-05-03 11:17 ` Thomas Andrews
2006-05-03 11:39 ` Alexander Krause
2006-05-03 12:21 ` Thomas Andrews
2006-05-03 19:59 ` Thomas Andrews
2006-05-04  3:24 ` Jim Cromie
2006-05-04  6:32 ` Thomas Andrews
2006-05-10 18:36 ` Thomas Andrews
2006-06-09 21:28 ` Jim Cromie
2007-04-26 12:45 ` Jean Delvare

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=20060430141707.28c6ea66.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --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.