drm/radeon/kms/dce3+: add support for hw i2c using atom
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Jan 2012 19:50:18 +0000 (14:50 -0500)
committerDave Airlie <airlied@redhat.com>
Fri, 3 Feb 2012 09:38:05 +0000 (09:38 +0000)
commit30388c6e48e62b2806b14552275f091e2f5adbf4
tree304ba513a92d61a4943392df4b35b306add5cc07
parent9048955748aa14b1dbf068ef3a9288ec15cabc66
drm/radeon/kms/dce3+: add support for hw i2c using atom

Starting with DCE3 hardware, atom contains a general purpose
ProcessI2cChannelTransaction similar to ProcessAuxChannelTransaction.

Add an implementation using the atom tables for DCE3+ hardware.

This should be a little less CPU intensive than bit banging and
may work better in certain cases.

Enable it by setting the radeon hw_i2c module parameter to 1.  E.g.,
radeon.hw_i2c=1
on the kernel command line in grub.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/Makefile
drivers/gpu/drm/radeon/atombios_i2c.c [new file with mode: 0644]
drivers/gpu/drm/radeon/radeon_i2c.c