diff options
author | 2011-10-03 20:24:51 +0000 | |
---|---|---|
committer | 2011-10-03 20:24:51 +0000 | |
commit | 7d43445651831abca2f2802f210cec493410f64f (patch) | |
tree | 45c9a63ba0cbaf5618b36ba359661713a8bb620d /sys/dev/gpio/files.gpio | |
parent | - fix a segv caused by a deep recursion introduced with a recent quick-fix (diff) | |
download | wireguard-openbsd-7d43445651831abca2f2802f210cec493410f64f.tar.xz wireguard-openbsd-7d43445651831abca2f2802f210cec493410f64f.zip |
Add a 'flag' locator to gpioiic(4), and define a first flag
value to swap the SDA and SCL pins assigment during attach.
Mostly from work with mbalmer@NetBSD.
ok miod@
Diffstat (limited to 'sys/dev/gpio/files.gpio')
-rw-r--r-- | sys/dev/gpio/files.gpio | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/gpio/files.gpio b/sys/dev/gpio/files.gpio index 01d72f2ec50..26a84213a21 100644 --- a/sys/dev/gpio/files.gpio +++ b/sys/dev/gpio/files.gpio @@ -1,6 +1,6 @@ -# $OpenBSD: files.gpio,v 1.8 2008/11/28 17:42:43 mbalmer Exp $ +# $OpenBSD: files.gpio,v 1.9 2011/10/03 20:24:51 matthieu Exp $ -define gpio {[offset = -1], [mask = 0]} +define gpio {[offset = -1], [mask = 0], [flag = 0]} device gpio: gpio attach gpio at gpiobus |