Re: Bitbanging i2c bus driver using the GPIO API

Lennart Sorensen
2007-04-26T13:29:11Z

On Thu, Apr 26, 2007 at 02:56:34PM +0200, Jean Delvare wrote:
> After digging some more, I finally managed to get my hands back on it:
> http://lists.lm-sensors.org/pipermail/lm-sensors/2006-April/016009.html
> http://lists.lm-sensors.org/pipermail/lm-sensors/2006-May/016053.html
>
> This isn't "randomly hitting ISA ports", this is reading the base I/O
> addresses from LPC configuration space. That's much better than letting
> the user set the addresses using module parameters.
>
> Lennart, can you please provide the output of the following commands on
> your system?
>
> isadump 0x2e 0x2f 5
> isadump 0x2e 0x2f 6

These return all 0xff. For example:

router2:~# isadump 0x2e 0x2f 5
WARNING! Running this program can cause system crashes, data loss and worse!
I will probe address register 0x2e and data register 0x2f.
Probing bank 5 using bank register 0x07.
Continue? [Y/n]
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

> isadump 0x4e 0x4f 5
> isadump 0x4e 0x4f 6

These return all 0x00

On the Geode LX800 where scx200_acb does work all 4 commands return all
0xff.

--
Len Sorensen