diff options
author | corentin.labbe <corentin.labbe@geomatys.fr> | 2012-01-12 20:32:04 +0100 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2012-01-12 20:32:04 +0100 |
commit | 65a2d74b76c5ae7c400de6daedeedae308ab0bdd (patch) | |
tree | 0d296ef635e83b0c1966931dc6b8221f6538bc91 /drivers/i2c/busses/i2c-nforce2.c | |
parent | 7c1f59c9d5caf3a84f35549b5d58f3c055a68da5 (diff) |
i2c-ali1535: enable SPARC support
The i2c-ali1535 driver doesn't work on SPARC, because it assumes that
ioport address are 16-bit wide (address stored in an unsigned short).
But on SPARC arch, ioports are mapped in memory and so must be stored
in an unsigned long.
Use pci_resource_start for getting IOMEM base address, then read the
SMBBA of the i2c bus and use these together for I/O access.
I would like to thank Jean DELVARE for reviewing my patch.
Signed-off-by: LABBE Corentin <corentin.labbe@geomatys.fr>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-nforce2.c')
0 files changed, 0 insertions, 0 deletions