]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3572ef61b9dd19fa99ae56ec1de3326d6368239
tree15f7e34c8a4e09af0c6d6d260a2e857f56d5f870
parentdc8c36053508c1997d274da49c952e763ac83d65
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