summaryrefslogtreecommitdiff
path: root/src/ec/kontron/kempld/kempld.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/kontron/kempld/kempld.c')
-rw-r--r--src/ec/kontron/kempld/kempld.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ec/kontron/kempld/kempld.c b/src/ec/kontron/kempld/kempld.c
index f8371a8d82..0489bac042 100644
--- a/src/ec/kontron/kempld/kempld.c
+++ b/src/ec/kontron/kempld/kempld.c
@@ -93,6 +93,14 @@ static void kempld_enable_dev(struct device *const dev)
printk(BIOS_WARNING, "KEMPLD: Spurious device %s.\n", dev_path(dev));
break;
}
+ } else if (dev->path.type == DEVICE_PATH_GPIO) {
+ if (dev->path.gpio.id == 0) {
+ if (kempld_gpio_pads_config(dev) < 0)
+ printk(BIOS_ERR, "KEMPLD: GPIO configuration failed!\n");
+ } else {
+ printk(BIOS_WARNING, "KEMPLD: Spurious GPIO device %s.\n",
+ dev_path(dev));
+ }
}
}