summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus/dev/zaurus_kbd.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2005-03-15 16:05:18 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2005-03-15 16:05:18 +0000
commit1e8f2de3c0e6e3fb1b3d6f7c479a3823d0f7646b (patch)
tree36b8f6a71154a00d0176a52dd8d827a568946961 /sys/arch/zaurus/dev/zaurus_kbd.c
parent1a32e051bc13191d0b50b41f62698df10b220e69 (diff)
Seperate delay for discharge and charge, otherwise discharge period may not
be long enough. should fix most of the extra keys on rollover.
Diffstat (limited to 'sys/arch/zaurus/dev/zaurus_kbd.c')
-rw-r--r--sys/arch/zaurus/dev/zaurus_kbd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_kbd.c b/sys/arch/zaurus/dev/zaurus_kbd.c
index 245a4d58504..46022ef5993 100644
--- a/sys/arch/zaurus/dev/zaurus_kbd.c
+++ b/sys/arch/zaurus/dev/zaurus_kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_kbd.c,v 1.17 2005/03/15 00:34:25 drahn Exp $ */
+/* $OpenBSD: zaurus_kbd.c,v 1.18 2005/03/15 16:05:17 drahn Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@openbsd.org>
*
@@ -311,7 +311,7 @@ zkbd_poll(void *v)
pxa2x0_gpio_set_bit(pin);
pxa2x0_gpio_set_dir(pin, GPIO_OUT);
- /* wait activate (and discharge, overlapped) delay */
+ /* wait activate delay */
delay(10);
/* read row */
@@ -329,6 +329,8 @@ zkbd_poll(void *v)
/* reset_col */
pxa2x0_gpio_set_dir(pin, GPIO_IN);
+ /* wait discharge delay */
+ delay(10);
}
/* charge all */
for (i = 0; i < sc->sc_nstrobe; i++) {