summaryrefslogtreecommitdiff
path: root/board/rambi/board.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-10-01 10:34:59 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-10-02 01:24:40 +0000
commit0f1f1229b9062376e706509d5a04d237253fbb47 (patch)
tree34e4a8f9f61d81fec7edfe21f7c92ddf5c5875c2 /board/rambi/board.c
parent159867844af5c1860c5b6f49f61f8b9893f57c64 (diff)
downloadchrome-ec-0f1f1229b9062376e706509d5a04d237253fbb47.tar.gz
lpc: Clean up processing wake events
Every board other than link does the same thing - filter out the power button event, then set the WAKE_L gpio level based on the remaining events. This code doesn't need to be duplicated 7 times, so make it common. Link didn't filter out the power button wake signal, but works fine with the common implementation. Like the other boards it gets a power button wake event via the dedicated PCH PWRBTN# signal. BUG=chrome-os-partner:18343 BRANCH=none TEST=suspend link, then wake using power button press compile all platforms; pass unit tests Change-Id: Ib3a6d310d0f5e337374b3c331ab2872fe377bdf6 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/171405 Reviewed-by: Alec Berg <alecaberg@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'board/rambi/board.c')
-rw-r--r--board/rambi/board.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/board/rambi/board.c b/board/rambi/board.c
index 93d04940a7..6c451ebaea 100644
--- a/board/rambi/board.c
+++ b/board/rambi/board.c
@@ -186,20 +186,3 @@ struct ec_thermal_config thermal_params[] = {
{{0, 0, 0}, 0, 0},
};
BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT);
-
-/**
- * Perform necessary actions on host wake events.
- */
-void board_process_wake_events(uint32_t active_wake_events)
-{
- uint32_t power_button_mask;
-
- power_button_mask = EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON);
-
- /* If there are other events aside from the power button press drive
- * the wake pin. Otherwise ensure it is high. */
- if (active_wake_events & ~power_button_mask)
- gpio_set_level(GPIO_PCH_WAKE_L, 0);
- else
- gpio_set_level(GPIO_PCH_WAKE_L, 1);
-}