diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-09-30 15:06:11 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-10-01 19:12:07 +0000 |
commit | 05c367d9ce44fdc14eaa5c060b9b16dbf7dd6a98 (patch) | |
tree | 377f6ef24cd5d9e70f1aad389bcf4d882ed2899d /board/rambi/board.c | |
parent | bd74ad1e2008e31754718ecc1882a6ac98dbb11e (diff) | |
download | chrome-ec-05c367d9ce44fdc14eaa5c060b9b16dbf7dd6a98.tar.gz |
Clean up G781 temperature sensor power detection
This was previously done in a board-specific function across 4 boards.
Except that the board-specific function was identical in all cases
(that is, not really board-specific). Put it back in the common
implementation to get rid of duplicated code, and use
CONFIG_TEMP_SENSOR_POWER_GPIO to indicate which GPIO rail controls the
sensor power.
BUG=chrome-os-partner:18343
BRANCH=none
TEST=build all boards; pass unit tests
Change-Id: I29de40001d5d4dc873e5ba8f3abb328c6271f235
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/171140
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'board/rambi/board.c')
-rw-r--r-- | board/rambi/board.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/board/rambi/board.c b/board/rambi/board.c index a5813dba0a..93d04940a7 100644 --- a/board/rambi/board.c +++ b/board/rambi/board.c @@ -203,11 +203,3 @@ void board_process_wake_events(uint32_t active_wake_events) else gpio_set_level(GPIO_PCH_WAKE_L, 1); } - -/** - * Board-specific g781 power state. - */ -int board_g781_has_power(void) -{ - return gpio_get_level(GPIO_PP3300_DX_EN); -} |