i2c: piix4: Add EFCH MMIO support to region request and release
authorTerry Bowman <terry.bowman@amd.com>
Wed, 9 Feb 2022 17:27:14 +0000 (11:27 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:57:22 +0000 (09:57 +0200)
commit4b965566ca26e83553d92b8c57050e5d59911806
tree763d26b61abd2cdfe4271fdb9b8d82a4ad6cb0d8
parent08bc26f28bcbef4b96c94205a4cee5a763514279
i2c: piix4: Add EFCH MMIO support to region request and release

commit 7c148722d074c29fb998578eea5de3c14b9608c9 upstream.

EFCH cd6h/cd7h port I/O may no longer be available on later AMD
processors and it is recommended to use MMIO instead. Update the
request and release functions to support MMIO.

MMIO request/release and mmapping require details during cleanup.
Add a MMIO configuration structure containing resource and vaddress
details for mapping the region, accessing the region, and releasing
the region.

Signed-off-by: Terry Bowman <terry.bowman@amd.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
[wsa: rebased after fixup in previous patch]
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Cc: Mario Limonciello <Mario.Limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-piix4.c