i2c: piix4: Support alternative port selection register
authorJean Delvare <jdelvare@suse.de>
Wed, 17 Feb 2016 09:26:35 +0000 (10:26 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 24 Feb 2016 14:59:04 +0000 (15:59 +0100)
commit6befa3fde65fe437f588da490c07a114393ce229
tree15f7e34c8a4e09af0c6d6d260a2e857f56d5f870
parentda4753e91c6e9d59dff5be76705fce3f5de27d6d
i2c: piix4: Support alternative port selection register

The SB800 register reference guide says that the SMBus port selection
bits may not always be in register Smbus0En (0x2c) but could
alternatively be found in register Smbus0Sel (0x2e) depending on the
settings in register Smbus0SelEn (0x2f.) Add support for this
configuration.

The "alternative" register is the only one working for the Bolton
(aka Hudson-2) chipset anyway. I do not have any documentation for
the "kerncz" chipset so we treat it the same as the Bolton for now.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Tested-by: Christian Fetzer <fetzer.ch@gmail.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-piix4.c