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>
Thu, 10 Feb 2022 21:45:41 +0000 (22:45 +0100)
commit58d26c485c446ca71545be0aca31b584e6bf8a86
tree1f4b915b97a8bbb3939cce34cdd506293198bb8f
parentd60337511711431d1ea96ff74583d4c18e3454ee
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>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-piix4.c