artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5970a65
)
Write to the correct control module registers when configuring gpio pins.
author
rapha
<rapha@openbsd.org>
Mon, 14 Jul 2014 08:55:07 +0000
(08:55 +0000)
committer
rapha
<rapha@openbsd.org>
Mon, 14 Jul 2014 08:55:07 +0000
(08:55 +0000)
Tested and ok joshe@
sys/arch/armv7/omap/omgpio.c
patch
|
blob
|
history
diff --git
a/sys/arch/armv7/omap/omgpio.c
b/sys/arch/armv7/omap/omgpio.c
index
66c9f39
..
3acf4de
100644
(file)
--- a/
sys/arch/armv7/omap/omgpio.c
+++ b/
sys/arch/armv7/omap/omgpio.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: omgpio.c,v 1.
4 2014/07/12 18:44:41 tedu
Exp $ */
+/* $OpenBSD: omgpio.c,v 1.
5 2014/07/14 08:55:07 rapha
Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
@@
-470,7
+470,8
@@
omgpio_pin_ctl(void *arg, int pin, int flags)
omgpio_pin_dir_write(sc, pin, OMGPIO_DIR_OUT);
if (board_id == BOARD_ID_AM335X_BEAGLEBONE)
- sitara_cm_padconf_set_gpioflags(pin, flags);
+ sitara_cm_padconf_set_gpioflags(
+ sc->sc_dev.dv_unit * GPIO_NUM_PINS + pin, flags);
}
void