diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-10-18 10:38:07 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-10-21 21:10:36 +0000 |
commit | d9530449fd75650a53d2ee8d9cfdc8ef063781b5 (patch) | |
tree | e04f409f01e555c6a05b228a965726ab055c35a6 /board/peppy/board.c | |
parent | 15e2fa02fdae240411df7a4e3298b988736a4499 (diff) | |
download | chrome-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/peppy/board.c')
-rw-r--r-- | board/peppy/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/peppy/board.c b/board/peppy/board.c index a60316552b..0c53cb74e4 100644 --- a/board/peppy/board.c +++ b/board/peppy/board.c @@ -7,7 +7,7 @@ #include "adc.h" #include "backlight.h" #include "chip_temp_sensor.h" -#include "chipset_haswell.h" +#include "chipset.h" #include "chipset_x86_common.h" #include "common.h" #include "ec_commands.h" @@ -58,7 +58,7 @@ const struct gpio_info gpio_list[] = { {"VCORE_PGOOD", LM4_GPIO_C, (1<<6), GPIO_INT_BOTH, x86_interrupt}, {"PCH_EDP_VDD_EN", LM4_GPIO_J, (1<<1), GPIO_INT_BOTH, - haswell_interrupt}, + power_interrupt}, {"RECOVERY_L", LM4_GPIO_A, (1<<5), GPIO_PULL_UP|GPIO_INT_BOTH, switch_interrupt}, {"WP_L", LM4_GPIO_A, (1<<4), GPIO_INT_BOTH, |