summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-exar.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-10-17 19:06:00 +0200
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2022-10-26 14:52:02 +0200
commitb4e83d369015e3045418ca86984c3cd8dcf5a365 (patch)
tree8e62fc2d8376078c96da811617eecff99d49d7a3 /drivers/gpio/gpio-exar.c
parentgpio: Add gpio latch driver (diff)
downloadlinux-b4e83d369015e3045418ca86984c3cd8dcf5a365.tar.xz
linux-b4e83d369015e3045418ca86984c3cd8dcf5a365.zip
gpio: exar: Allow IO port access
It's possible that PCI device can provide an IO port resource for the device. regmap MMIO currently uses MMIO by default. With an additional flag we enable support for IO port accesses. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: William Breathitt Gray <william.gray@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-exar.c')
-rw-r--r--drivers/gpio/gpio-exar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-exar.c b/drivers/gpio/gpio-exar.c
index 482f678c893e..df1bdaae441c 100644
--- a/drivers/gpio/gpio-exar.c
+++ b/drivers/gpio/gpio-exar.c
@@ -141,6 +141,7 @@ static const struct regmap_config exar_regmap_config = {
.name = "exar-gpio",
.reg_bits = 16,
.val_bits = 8,
+ .io_port = true,
};
static int gpio_exar_probe(struct platform_device *pdev)