summaryrefslogtreecommitdiff
path: root/board/wheatley
diff options
context:
space:
mode:
authorAnton Staaf <robotboy@chromium.org>2016-01-13 10:39:52 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-01-19 14:24:34 -0800
commitcdaf11549f94f7b35c3bda986b5dbcca3e65e317 (patch)
tree27d4c27d7abadb4ffc9ac4983272dc21efb242db /board/wheatley
parenta8f8be9b3a37f1adec91ab857fb3ded556398486 (diff)
downloadchrome-ec-cdaf11549f94f7b35c3bda986b5dbcca3e65e317.tar.gz
GPIO: Use gpio_set_flags instead of ..._by_mask
By using gpio_set_flags where we can we remove dependencies on gpio_list and gpio_info. Signed-off-by: Anton Staaf <robotboy@chromium.org> BRANCH=None BUG=None TEST=make buildall -j Change-Id: Ie5056a27b69e9c8702da90678ad7be014a04259a Reviewed-on: https://chromium-review.googlesource.com/321912 Commit-Ready: Anton Staaf <robotboy@chromium.org> Tested-by: Anton Staaf <robotboy@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/wheatley')
-rw-r--r--board/wheatley/board.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/wheatley/board.c b/board/wheatley/board.c
index 745a31dfc7..143642c3e0 100644
--- a/board/wheatley/board.c
+++ b/board/wheatley/board.c
@@ -413,7 +413,6 @@ void board_set_gpio_state_hibernate(void)
static void board_handle_reboot(void)
{
int flags;
- const struct gpio_info *g = &gpio_list[GPIO_BATLOW_L_PMIC_LDO_EN];
if (system_jumped_to_this_image())
return;
@@ -432,7 +431,7 @@ static void board_handle_reboot(void)
cflush();
/* Bring down all rails but RTC rail (including EC power). */
- gpio_set_flags_by_mask(g->port, g->mask, GPIO_OUT_HIGH);
+ gpio_set_flags(GPIO_BATLOW_L_PMIC_LDO_EN, GPIO_OUT_HIGH);
while (1)
; /* wait here */
}