summaryrefslogtreecommitdiff
path: root/board/spring
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-10-18 10:38:07 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-10-21 21:10:36 +0000
commitd9530449fd75650a53d2ee8d9cfdc8ef063781b5 (patch)
treee04f409f01e555c6a05b228a965726ab055c35a6 /board/spring
parent15e2fa02fdae240411df7a4e3298b988736a4499 (diff)
downloadchrome-ec-d9530449fd75650a53d2ee8d9cfdc8ef063781b5.tar.gz
cleanup: Consolidate power interrupts
Every chipset had its own header file just to declare a GPIO interrupt handler. Since this seems to be a common feature of the power interface, make a standard power_interrupt() API provided by chipset.h. This lets us get rid of 4 include files, and makes it easier to add more chipsets in the future. BUG=chrome-os-partner:18343 BRANCH=none TEST=build all boards; pass unit tests Change-Id: I1fc5612d42625ea46e0a8e16a83085b66d476664 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/173745
Diffstat (limited to 'board/spring')
-rw-r--r--board/spring/board.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/board/spring/board.c b/board/spring/board.c
index 09e943d8f7..30269b27d8 100644
--- a/board/spring/board.c
+++ b/board/spring/board.c
@@ -10,7 +10,6 @@
#include "common.h"
#include "console.h"
#include "extpower.h"
-#include "gaia_power.h"
#include "gpio.h"
#include "hooks.h"
#include "host_command.h"
@@ -34,12 +33,12 @@
/* GPIO signal list. Must match order from enum gpio_signal. */
const struct gpio_info gpio_list[] = {
/* Inputs with interrupt handlers are first for efficiency */
- {"KB_PWR_ON_L", GPIO_B, (1<<5), GPIO_INT_BOTH, gaia_power_event},
- {"PP1800_LDO2", GPIO_A, (1<<1), GPIO_INT_BOTH, gaia_power_event},
- {"XPSHOLD", GPIO_A, (1<<3), GPIO_INT_BOTH, gaia_power_event},
+ {"KB_PWR_ON_L", GPIO_B, (1<<5), GPIO_INT_BOTH, power_interrupt},
+ {"PP1800_LDO2", GPIO_A, (1<<1), GPIO_INT_BOTH, power_interrupt},
+ {"XPSHOLD", GPIO_A, (1<<3), GPIO_INT_BOTH, power_interrupt},
{"CHARGER_INT_L", GPIO_C, (1<<4), GPIO_INT_FALLING, pmu_irq_handler},
{"LID_OPEN", GPIO_C, (1<<13), GPIO_INT_BOTH, lid_interrupt},
- {"SUSPEND_L", GPIO_A, (1<<7), INT_BOTH_FLOATING, gaia_suspend_event},
+ {"SUSPEND_L", GPIO_A, (1<<7), INT_BOTH_FLOATING, power_interrupt},
{"WP_L", GPIO_A, (1<<13), GPIO_INPUT, NULL},
{"KB_IN00", GPIO_C, (1<<8), GPIO_KB_INPUT,
keyboard_raw_gpio_interrupt},