drm/radeon/kms: add support for hw i2c on r1xx-r5xx
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 23 Dec 2009 08:23:21 +0000 (03:23 -0500)
committerDave Airlie <airlied@redhat.com>
Mon, 8 Feb 2010 23:31:10 +0000 (09:31 +1000)
commit40bacf1631a3e8654b1128aa9b72e73ca801c9e4
tree9d4dc63b4dfb124203335dd4e541c657417960ce
parent5a6f98f5bff7f975c61d56b5c756b5a96c4db167
drm/radeon/kms: add support for hw i2c on r1xx-r5xx

wire hw i2c support into radeon i2c algo.

fixes merged:
- handle bus probing correctly
- use meaningful error numbers
- abort if transaction fails
- The line mapping is different depending on the asic.
- protect hw i2c engine with a mutex
- rs300 doesn't have a pin select bit
- r200 has a different pin select setup

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r500_reg.h
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_combios.c
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_i2c.c
drivers/gpu/drm/radeon/radeon_reg.h