i2c: piix4: Add EFCH MMIO support for SMBus port select
authorTerry Bowman <terry.bowman@amd.com>
Wed, 9 Feb 2022 17:27:16 +0000 (11:27 -0600)
committerWolfram Sang <wsa@kernel.org>
Fri, 11 Feb 2022 14:38:22 +0000 (15:38 +0100)
commit381a3083c6747ae5cdbef9b176d57d1b966db49f
tree2ae1ec4f0f3e67bc8906baea656a1b9f9e242af9
parent46967bc1ee93acd1d8953c87dc16f43de4076f93
i2c: piix4: Add EFCH MMIO support for SMBus port select

AMD processors include registers capable of selecting between 2 SMBus
ports. Port selection is made during each user access by writing to
FCH::PM::DECODEEN[smbus0sel]. Change the driver to use MMIO during
SMBus port selection because cd6h/cd7h port I/O is not available on
later AMD processors.

Signed-off-by: Terry Bowman <terry.bowman@amd.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-piix4.c