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)
committerWolfram Sang <wsa@kernel.org>
Fri, 11 Feb 2022 14:38:03 +0000 (15:38 +0100)
commit7c148722d074c29fb998578eea5de3c14b9608c9
tree1f4b915b97a8bbb3939cce34cdd506293198bb8f
parentfbafbd51bff52cb3a920fd98d4dae2a78dd433d0
i2c: piix4: Add EFCH MMIO support to region request and release

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>
drivers/i2c/busses/i2c-piix4.c