summaryrefslogtreecommitdiff
path: root/include/gpio.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-01-10 14:09:02 -0800
committerRandall Spangler <rspangler@chromium.org>2012-01-10 14:14:59 -0800
commit39f86d2fad567661d64716d9e6e815802835ccaa (patch)
treedfc253556afea85e85155a4fc6da756603da8b6d /include/gpio.h
parent55ffdb465b7cdfb19380c681ae4542d4022a6aa2 (diff)
downloadchrome-ec-39f86d2fad567661d64716d9e6e815802835ccaa.tar.gz
Split power button code into its own file
Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=chrome-os-partner:7499 TEST=press and release power button; should see debug messages Change-Id: I8909ae4643afc98753edb690771618ad43135e3e
Diffstat (limited to 'include/gpio.h')
-rw-r--r--include/gpio.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/gpio.h b/include/gpio.h
index 5e4edf0593..54ea231dba 100644
--- a/include/gpio.h
+++ b/include/gpio.h
@@ -12,12 +12,13 @@
/* GPIO signal definitions. */
enum gpio_signal {
- /* Firmware write protect */
- EC_GPIO_WRITE_PROTECT = 0,
- /* Recovery switch */
- EC_GPIO_RECOVERY_SWITCH,
- /* Debug LED */
- EC_GPIO_DEBUG_LED
+ EC_GPIO_DEBUG_LED = 0, /* Debug LED */
+ EC_GPIO_POWER_BUTTON, /* Power button */
+ EC_GPIO_POWER_BUTTON_OUT, /* Power button output to PCH */
+ EC_GPIO_LID_SWITCH, /* Lid switch */
+ EC_GPIO_LID_SWITCH_OUT, /* Lid switch output to PCH */
+ /* Number of GPIOs; not an actual GPIO */
+ EC_GPIO_COUNT
};