diff options
author | David Huang <david.huang@quanta.corp-partner.google.com> | 2021-12-15 09:56:04 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-05 03:33:56 +0000 |
commit | 0a9a432f8c3322b8a7d7d17d1005fd456a338aec (patch) | |
tree | b9a10d8d12c17f43d11b6333267b6e7c1dfd32ee | |
parent | b4ae7c0034ca2799cfc8acfb1e7caca338157938 (diff) | |
download | chrome-ec-0a9a432f8c3322b8a7d7d17d1005fd456a338aec.tar.gz |
Juniper: pull sensor SPI_NSS to low in S5
There is a leakage after changing the BMI160 to ICM42608
We should pull the sensor SPI_NSS to low in S5 to prevent a leakage
BUG=b:175362114
BRANCH=kukui
TEST=Check power consumption godd with ICM40608 and BMI160 in S5.
Signed-off-by: David Huang <david.huang@quanta.corp-partner.google.com>
Change-Id: I6b3732bb542cc8098fcd07b1526e057ccf5e95ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3337960
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
(cherry picked from commit 6270c3db53d72da30e894ce3a2f269928af7bb32)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3343567
Tested-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r-- | board/jacuzzi/board.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/jacuzzi/board.c b/board/jacuzzi/board.c index 7c77d8ef3b..cd6c37f41d 100644 --- a/board/jacuzzi/board.c +++ b/board/jacuzzi/board.c @@ -274,6 +274,9 @@ static void board_spi_disable(void) /* Set pins to a state calming the sensor down. */ gpio_set_flags(GPIO_EC_SENSOR_SPI_CK, GPIO_OUT_LOW); gpio_set_level(GPIO_EC_SENSOR_SPI_CK, 0); + /* Pull SPI_NSS pin to low to prevent a leakage. */ + gpio_set_flags(GPIO_EC_SENSOR_SPI_NSS, GPIO_OUT_LOW); + gpio_set_level(GPIO_EC_SENSOR_SPI_NSS, 0); gpio_config_module(MODULE_SPI_MASTER, 0); /* Disable spi peripheral and clocks. */ |