Patchwork [1/2] Add GPIO definitions to PC87392 superio

login
register
about
Submitter Sven Schnelle
Date 2011-03-31 20:02:32
Message ID <1301601753-23163-2-git-send-email-svens@stackframe.org>
Download mbox | patch
Permalink /patch/2827/
State Accepted
Commit r6472
Headers show

Comments

Sven Schnelle - 2011-03-31 20:02:32
Signed-off-by: Sven Schnelle <svens@stackframe.org>
---
 src/superio/nsc/pc87392/pc87392.h |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
Peter Stuge - 2011-03-31 20:35:36
Sven Schnelle wrote:
> Signed-off-by: Sven Schnelle <svens@stackframe.org>

Trivial, can self-ack.

Acked-by: Peter Stuge <peter@stuge.se>

Patch

diff --git a/src/superio/nsc/pc87392/pc87392.h b/src/superio/nsc/pc87392/pc87392.h
index 759f109..4756351 100644
--- a/src/superio/nsc/pc87392/pc87392.h
+++ b/src/superio/nsc/pc87392/pc87392.h
@@ -28,4 +28,15 @@ 
 #define PC87392_GPIO 0x07
 #define PC87392_WDT  0x0A
 
+#define PC87392_GPIO_PIN_OE 0x01
+#define PC87392_GPIO_PIN_TYPE_PUSH_PULL 0x02
+#define PC87392_GPIO_PIN_PULLUP 0x04
+#define PC87392_GPIO_PIN_LOCK 0x08
+#define PC87392_GPIO_PIN_TRIG_LEVEL 0x10
+#define PC87392_GPIO_PIN_TRIG_LOW 0x20
+#define PC87392_GPIO_PIN_DEBOUNCE 0x40
+
+#define PC87392_GPIO_PIN_TRIGGERS_IRQ 0x01
+#define PC87392_GPIO_PIN_TRIGGERS_SMI 0x02
+
 #endif