diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2022-06-23 20:34:12 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-29 20:15:47 +0000 |
commit | 4e3333699f1846ef490b6765048227ac658653c7 (patch) | |
tree | b5415908e7c0e1c2189690ec57eb263a3e95a64f | |
parent | b9dc7344a8a06f3fe557eefff25ae03fd4570987 (diff) | |
download | chrome-ec-4e3333699f1846ef490b6765048227ac658653c7.tar.gz |
throttle_ap: Add throttle_gpu and THROTTLE_SRC_AC
throttle_gpu will be used to throttle a GPU. THROTTLE_SRC_AC indicates
throttling is needed for a charger change.
BUG=b:216485035
BRANCH=None
TEST=None
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: Ide3094d0a757b36db2730e148d35f5ca9b0e12d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3733415
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
-rw-r--r-- | include/throttle_ap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/throttle_ap.h b/include/throttle_ap.h index 09669d70b1..20ce3ecf59 100644 --- a/include/throttle_ap.h +++ b/include/throttle_ap.h @@ -32,6 +32,7 @@ enum throttle_sources { THROTTLE_SRC_THERMAL = 0, THROTTLE_SRC_BAT_DISCHG_CURRENT, THROTTLE_SRC_BAT_VOLTAGE, + THROTTLE_SRC_AC, }; /** @@ -105,4 +106,8 @@ static inline void throttle_ap(enum throttle_level level, {} #endif +void throttle_gpu(enum throttle_level level, + enum throttle_type type, + enum throttle_sources source); + #endif /* __CROS_EC_THROTTLE_AP_H */ |