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.
BRANCH=None
TEST=None
@@ -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 */
