diff options
author | Ruibin Chang <ruibin.chang@ite.com.tw> | 2020-09-21 18:01:19 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-30 05:14:31 +0000 |
commit | b8c7e589114d1461cf351c72b2157d83a06020cf (patch) | |
tree | 9be395fa666ecb182c27d1f7aedadc69c898d2e4 /chip/it83xx | |
parent | 5e4dbc7023d1fbf2e6ce56ace6ad16c2dd4e50fc (diff) | |
download | chrome-ec-b8c7e589114d1461cf351c72b2157d83a06020cf.tar.gz |
driver/it83xx: change Rd_DB to Rd_5.1k in EC hibernate
We change Rd_DB to Rd_5.1k in EC hibernate. HW auto asserts Rd_DB
on CCs when EC is power off.
BUG=none
BRANCH=none
TEST=on board reef_it8320 and it8320_evb, in EC hibernate mode:
1.can wakeup by AC plug in, then pd state to SNK_READY.
2.Rd_5.1k power consumption is more 1uA than Rd_DB.
Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw>
Change-Id: I2d78838c9076dbe36a5d27204207c9da7cad9948
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2423668
Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Diffstat (limited to 'chip/it83xx')
-rw-r--r-- | chip/it83xx/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/it83xx/clock.c b/chip/it83xx/clock.c index 25486c1e3b..d38197379a 100644 --- a/chip/it83xx/clock.c +++ b/chip/it83xx/clock.c @@ -515,7 +515,7 @@ void __enter_hibernate(uint32_t seconds, uint32_t microseconds) * Rd_DB) alive in hibernate for better power consumption. */ for (i = 0; i < CONFIG_USB_PD_ITE_ACTIVE_PORT_COUNT; i++) - it83xx_disable_pd_module(i); + it83xx_Rd_5_1K_only_for_hibernate(i); } if (IS_ENABLED(CONFIG_ADC_VOLTAGE_COMPARATOR)) { |