]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit90a63a164c7d3e7107b895470410481543fea7a0
tree304ba513a92d61a4943392df4b35b306add5cc07
parent2835f70a0d3dbddd419e45b318d04859e2f74474
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