summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/include/subdev/gpio.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-05-13 15:54:17 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-06-11 16:09:15 +1000
commit20a8007485e9272ab0e964fdecc3cbceeef9d2f4 (patch)
treea96ee3776101b2667e103118b647447418358e82 /drivers/gpu/drm/nouveau/core/include/subdev/gpio.h
parentbc3b0c41b1caa6b12f510f300587c52275218b45 (diff)
drm/nouveau/gpio: send separate event types for high/low transitions
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include/subdev/gpio.h')
-rw-r--r--drivers/gpu/drm/nouveau/core/include/subdev/gpio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/gpio.h b/drivers/gpu/drm/nouveau/core/include/subdev/gpio.h
index 2e2effa66442..612d82ab683d 100644
--- a/drivers/gpu/drm/nouveau/core/include/subdev/gpio.h
+++ b/drivers/gpu/drm/nouveau/core/include/subdev/gpio.h
@@ -8,6 +8,12 @@
#include <subdev/bios.h>
#include <subdev/bios/gpio.h>
+enum nvkm_gpio_event {
+ NVKM_GPIO_HI = 1,
+ NVKM_GPIO_LO = 2,
+ NVKM_GPIO_TOGGLED = (NVKM_GPIO_HI | NVKM_GPIO_LO),
+};
+
struct nouveau_gpio {
struct nouveau_subdev base;