diff options
author | Aseda Aboagye <aaboagye@google.com> | 2017-10-16 16:03:24 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-10-23 04:28:23 -0700 |
commit | b6733343abb6d9b7ce7446b94f312dab51d46fac (patch) | |
tree | d54387e14251c5285e09225658e79a8822a42554 /include/config.h | |
parent | 8d639f58ea58c851eb226af9fe676693fbc901f8 (diff) | |
download | chrome-ec-b6733343abb6d9b7ce7446b94f312dab51d46fac.tar.gz |
power: Add task-safe API to control 5V rail.
For certain cannonlake designs, the 5V rail can be controlled by both
the chipset task as well as other tasks such as the USB charger tasks to
perform BC1.2 detection. This commit introduces an API that allows the
tasks to enable/disable the 5V rail. Enable requests will immediately
enable the rail, however, attempting to disable the rail will only
result in a request. Once all tasks want to turn off the 5V rail, the
rail will be turned off.
A bitmask is introduced to keep track of the requests. Index 0 is for
the chipset task.
All of this is gated behind a config option:
CONFIG_POWER_PP5000_CONTROL
BUG=b:65991615
BRANCH=None
TEST=With other zoombini code, verify that 5V can be enabled and disabled.
Change-Id: I1722b4a272c4d6ee24408929f5a7402051bb9cf3
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/722322
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index fefeaaf81d..8156ead7f4 100644 --- a/include/config.h +++ b/include/config.h @@ -1970,6 +1970,9 @@ /* Disable the power-on transition when the lid is opened */ #undef CONFIG_POWER_IGNORE_LID_OPEN +/* Enable a task-safe way to control the PP5000 rail. */ +#undef CONFIG_POWER_PP5000_CONTROL + /* Support stopping in S5 on shutdown */ #undef CONFIG_POWER_SHUTDOWN_PAUSE_IN_S5 |