diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-11-09 17:24:59 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-18 04:51:54 +0000 |
commit | 6fe661db731627a0d2ef82cef4bed594dce469ec (patch) | |
tree | 29de8937abdd30f47439386715bc53d64f20dc11 /common | |
parent | 34f01d9aec1eb5a71843080e11c47ca3acaaffcb (diff) | |
download | chrome-ec-6fe661db731627a0d2ef82cef4bed594dce469ec.tar.gz |
Revert "ec_gpio: Add GPIO power down support"
This reverts commit 5b6ec95320d231fb15a9ec69e2eefeb5eed1fd25.
BUG=b:200823466
TEST=make buildall -j
Change-Id: I651c326be626788ddba7ad2cebe6c473a7d12d9a
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3273438
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/gpio.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/common/gpio.c b/common/gpio.c index 76dbf58e14..cb3723f865 100644 --- a/common/gpio.c +++ b/common/gpio.c @@ -162,39 +162,6 @@ int gpio_get_ternary(enum gpio_signal signal) return pu && !pd ? 2 : pd; } -#ifdef CONFIG_GPIO_POWER_DOWN -/* - * Power down a group of GPIO pins marked with a module ID - * in board/board_name/gpio.inc - * Hibernation/sleep entry: - * gpio_power_down_module(MODULE_xxxx) - * Chip level code will power down all pins in module. - * Wake: - * Use gpio_config_module to put the module pin(s) - * back to enabled state. Chip level code will re-power - * and configure the pin(s). - * This mechanism does not handle dynamic changing of - * pin configuration at run time. - */ -int gpio_power_down_module(enum module_id id) -{ - const struct gpio_alt_func *af; - int rv = EC_ERROR_INVAL; - - /* Find pins and power down */ - for (af = gpio_alt_funcs; - af < gpio_alt_funcs + ARRAY_SIZE(gpio_alt_funcs); af++) { - if (af->module_id != id) - continue; /* Pins for some other module */ - - gpio_set_flags_by_mask(af->port, af->mask, GPIO_POWER_DOWN); - rv = EC_SUCCESS; - } - - return rv; -} -#endif /* #ifdef CONFIG_GPIO_POWER_DOWN */ - __attribute__((weak)) void gpio_set_wakepin(enum gpio_signal signal, uint32_t flags) { |