diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-01-11 10:59:59 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-01-11 10:59:59 -0800 |
commit | a767d9b22b248095b609a4751ca46ec2b18dbb13 (patch) | |
tree | 4d2224019621857571cb109bfd2d2e7c743de750 /include | |
parent | 39f86d2fad567661d64716d9e6e815802835ccaa (diff) | |
download | chrome-ec-a767d9b22b248095b609a4751ca46ec2b18dbb13.tar.gz |
Add GPIO get/set commands
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=chrome-os-partner:7528
TEST=from debug console,
gpioget --> prints current level. Run a few times to see DEBUG_LED
value toggle.
gpioset debug_led 1 --> turns debug LED on. Run repeatedly to
override the idle task toggling it off.
Change-Id: I7c64044228697e052a9c20eb052d37a1f640f6e7
Diffstat (limited to 'include')
-rw-r--r-- | include/gpio.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/gpio.h b/include/gpio.h index 54ea231dba..0d307b8b95 100644 --- a/include/gpio.h +++ b/include/gpio.h @@ -12,10 +12,12 @@ /* GPIO signal definitions. */ enum gpio_signal { - EC_GPIO_DEBUG_LED = 0, /* Debug LED */ - EC_GPIO_POWER_BUTTON, /* Power button */ - EC_GPIO_POWER_BUTTON_OUT, /* Power button output to PCH */ + /* Signals with interrupt handlers are first for efficiency */ + EC_GPIO_POWER_BUTTON = 0, /* Power button */ EC_GPIO_LID_SWITCH, /* Lid switch */ + /* Other signals */ + EC_GPIO_DEBUG_LED, /* Debug LED */ + EC_GPIO_POWER_BUTTON_OUT, /* Power button output to PCH */ EC_GPIO_LID_SWITCH_OUT, /* Lid switch output to PCH */ /* Number of GPIOs; not an actual GPIO */ EC_GPIO_COUNT |