]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i2c: tda998x: set the CEC I2C address based on the slave I2C address
authorAndrew Jackson <Andrew.Jackson@arm.com>
Fri, 7 Nov 2014 08:31:25 +0000 (08:31 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 21 Jan 2015 14:20:11 +0000 (14:20 +0000)
commit6af153bf405d06d0f511c949c7ddd4c2452304f3
tree141b48c422c996568a1ed30d6b19eecdc6df0e94
parenta703b37ff359d700fc56ecded3d9100827a64a4f
drm/i2c: tda998x: set the CEC I2C address based on the slave I2C address

The I2C address for the TDA9989 and TDA19989 is fixed at 0x34 but the
two LSBs of the TDA19988's address are set by two configuration pins
on the chip.  Irrespective of the chip, the associated CEC peripheral's
I2C address is based upon the main I2C address.

This patch avoids any special handling required to support systems that
contain multiple TDA19988 devices on the same I2C bus.

Signed-off-by: Andrew Jackson <Andrew.Jackson@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c