summaryrefslogtreecommitdiffstats
path: root/usr.sbin/gpioctl/gpioctl.c
diff options
context:
space:
mode:
authormbalmer <mbalmer@openbsd.org>2007-11-17 09:05:23 +0000
committermbalmer <mbalmer@openbsd.org>2007-11-17 09:05:23 +0000
commit017db7a370fdd73e86ee6605c152e137058a651d (patch)
tree416a2be7a0e6f5e8799cf1f5502a0136b316930f /usr.sbin/gpioctl/gpioctl.c
parentThe initial ipl on luna/mvme188 like interrupt arbiters is IPL_HIGH, not (diff)
downloadwireguard-openbsd-017db7a370fdd73e86ee6605c152e137058a651d.tar.xz
wireguard-openbsd-017db7a370fdd73e86ee6605c152e137058a651d.zip
pull-down (GPIO_PIN_PULLDOWN) is a valid flags for some GPIO devices,
e.g. the AMD Geode C5536 GPIO. ok grange
Diffstat (limited to 'usr.sbin/gpioctl/gpioctl.c')
-rw-r--r--usr.sbin/gpioctl/gpioctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/gpioctl/gpioctl.c b/usr.sbin/gpioctl/gpioctl.c
index 0825af6d66e..2ac2d330e17 100644
--- a/usr.sbin/gpioctl/gpioctl.c
+++ b/usr.sbin/gpioctl/gpioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gpioctl.c,v 1.5 2007/03/18 16:16:56 deraadt Exp $ */
+/* $OpenBSD: gpioctl.c,v 1.6 2007/11/17 09:05:23 mbalmer Exp $ */
/*
* Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
*
@@ -55,6 +55,7 @@ const struct bitstr {
{ GPIO_PIN_PUSHPULL, "pp" },
{ GPIO_PIN_TRISTATE, "tri" },
{ GPIO_PIN_PULLUP, "pu" },
+ { GPIO_PIN_PULLDOWN, "pd" },
{ 0, NULL },
};