diff options
Diffstat (limited to 'include/dps.h')
-rw-r--r-- | include/dps.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/dps.h b/include/dps.h index 0cb2a9455b..8794220ab2 100644 --- a/include/dps.h +++ b/include/dps.h @@ -10,6 +10,13 @@ #include "common.h" +#define DPS_FLAG_DISABLED BIT(0) +#define DPS_FLAG_NO_SRCCAP BIT(1) +#define DPS_FLAG_WAITING BIT(2) +#define DPS_FLAG_SAMPLED BIT(3) +#define DPS_FLAG_NEED_MORE_PWR BIT(4) +#define DPS_FLAG_NO_BATTERY BIT(5) + /* Dynamic PDO Selection config. */ struct dps_config_t { /* (0, 100) coeff for transition to a lower power PDO*/ @@ -76,6 +83,8 @@ __test_only bool dps_is_fake_enabled(void); __test_only int dps_get_fake_mv(void); __test_only int dps_get_fake_ma(void); __test_only int *dps_get_debug_level(void); +__test_only int dps_get_flag(void); + #endif #endif /* __CROS_EC_DPS__H */ |