Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Sep 2008 22:51:37 +0200
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        Paolo Pisati <piso@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: smbus & i2c: why i2c is not enabled on ich?
Message-ID:  <20080921205137.GM93308@cicely7.cicely.de>
In-Reply-To: <20080921115545.GA61452@tin.it>
References:  <20080921115545.GA61452@tin.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 21, 2008 at 01:55:45PM +0200, Paolo Pisati wrote:
> 
> Any reason why i2c mode in not enable in ichsmb?

Because the controller is a SMB controller and not a I2C one.
SMB is more specific than I2C in that it defines complete I2C
sequences.
With SMB you don't have the individual control over all I2C
phases.
You can do SMB with an I2C controller, but you can't do raw
I2C with an SMB controller.
Use SMB to address your devices - SMB is good enough to handle
most I2C cases.

> ichsmb0@pci0:0:31:3:    class=0x0c0500 card=0x82d81043 chip=0x266a8086 rev=0x04 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = '82801FB (ICH6) SMBus Controller'
>     class      = serial bus
>     subclass   = SMBus
> 
> piso@nano:~/eeebsd >sudo pciconf -rb pci0:0:31:3: 0x40
> 01 
> piso@nano:~/eeebsd >sudo ./scan_smbus 
> res: 0 slave = 0x44 data = 
> res: 0 slave = 0x50 data = 
> res: 0 slave = 0x69 data = 
> res: 0 slave = 0xC4 data = 
> res: 0 slave = 0xD0 data = 
> res: 0 slave = 0xE9 data = 
> piso@nano:~/eeebsd >sudo pciconf -wb pci0:0:31:3: 0x40 5
> piso@nano:~/eeebsd >sudo pciconf -rb pci0:0:31:3: 0x40
> 05 
> piso@nano:~/eeebsd >sudo ./scan_smbus
> res: 0 slave = 0x44 data = FF FF FF FF 
> res: 0 slave = 0x50 data = 0A 60 40 00 05 30 45 00 82 08 00 00 0C 04 
> res: 0 slave = 0x69 data = FF F7 00 00 01 0F 07 E0 18 46 1B 24 D8 63 00 
> res: 0 slave = 0xC4 data = FF FF FF FF 
> res: 0 slave = 0xD0 data = 0A 60 40 00 05 30 45 00 82 08 00 00 0C 04 
> res: 0 slave = 0xE9 data = FF F7 00 00 01 0F 07 E0 18 46 1B 24 D8 63 00 
> 
> FYI this is on an asus eeepc.
> --
> bye,
> P.
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

-- 
B.Walter <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080921205137.GM93308>