diff options
author | mbalmer <mbalmer@openbsd.org> | 2007-11-17 09:05:23 +0000 |
---|---|---|
committer | mbalmer <mbalmer@openbsd.org> | 2007-11-17 09:05:23 +0000 |
commit | 017db7a370fdd73e86ee6605c152e137058a651d (patch) | |
tree | 416a2be7a0e6f5e8799cf1f5502a0136b316930f /usr.sbin/gpioctl | |
parent | The initial ipl on luna/mvme188 like interrupt arbiters is IPL_HIGH, not (diff) | |
download | wireguard-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')
-rw-r--r-- | usr.sbin/gpioctl/gpioctl.8 | 6 | ||||
-rw-r--r-- | usr.sbin/gpioctl/gpioctl.c | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/gpioctl/gpioctl.8 b/usr.sbin/gpioctl/gpioctl.8 index 97768d62dfb..39f3b235e88 100644 --- a/usr.sbin/gpioctl/gpioctl.8 +++ b/usr.sbin/gpioctl/gpioctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: gpioctl.8,v 1.9 2007/05/31 19:20:23 jmc Exp $ +.\" $OpenBSD: gpioctl.8,v 1.10 2007/11/17 09:05:23 mbalmer Exp $ .\" .\" Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: November 17 2007 $ .Dt GPIOCTL 8 .Os .Sh NAME @@ -100,6 +100,8 @@ push-pull output tri-state (output disabled) .It pu internal pull-up enabled +.It pd +internal pull-down enabled .El .Pp Note that not all the flags can be supported by the particular 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 }, }; |