From: Franz S. <Fra...@la...> - 2002-07-13 14:20:09
|
On Montag, 8. Juli 2002 19:01, James Simmons wrote: > > Exactly. i8042.c has quite a few assumptions in it. It uses inb/out > > instead of ioremap/readb/writeb, it assumes control and data register are > > 4 addresses apart and it assumes no special sequences are necessary to > > access these registers. > > Some time ago I thought about this when I looked at the sparc i8042 > driver. I tried a few things but I didn't come up with a solution. What do you all think about the appended patch? With the strategy in the patch it should be possible to initialize and use i8042 chips on pretty much every platform without code duplication. The patch compiles on PPC (and thus should on x86 too), but I can't test it cause I don't have access to the affected embedded boards. If you like the approach, please apply it to the linux-input repo after testing on x86. Franz. |