Subject: Re: Driver for Analog Devices ADT7467 environmental controller - found in iBook G4 and others
To: None <port-macppc@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: port-macppc
Date: 12/15/2004 18:35:43
On Wed, Dec 15, 2004 at 12:51:00PM -0500, Michael wrote:
> Hello,
> 
> > I'll post a patch ( will be pretty big - 3 new drivers ( uni-n and deq don't do much more than attaching, adt7467c is the driver for
> > the environmental controller ), changes to two others (snapper and ki2n) ) when I'm done cleaning it up a bit.
> 
> Here's the patch. IF you have the right kind of thermal monitor chip you'll end up with something like this:
> cpu0 at mainbus0: 7455 (Revision 3.3), ID 0 (primary)
> cpu0: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>, PS=1
> cpu0: 614.39 MHz, 256KB L2 cache
> uni_n0 at mainbus0 address f8000000
> hw-clock at uni_n0 not configured
> ki2c0 at uni_n0 address 0xf8001000
> iic0 at ki2c0: I2C bus
> adt7467c0 at ki2c0 address 0x15c ADT7467 thermal monitor and fan controller
> adt7467c0: found 5 sensors
>  1: temperature PWR/MEMORY BOTTOMSIDE
>  2: temperature CPU BOTTOMSIDE
>  3: temperature GPU ON DIE
>  4: voltage CPU CORE
>  5: fanspeed REAR MAIN ENCLOSURE

Cool.

For consistency's sake, how about printing the five sensors with prefix
adt7467c0: ?

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933