diff options
Diffstat (limited to 'include/power/qcom.h')
-rw-r--r-- | include/power/qcom.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/power/qcom.h b/include/power/qcom.h new file mode 100644 index 0000000000..84b290479c --- /dev/null +++ b/include/power/qcom.h @@ -0,0 +1,26 @@ +/* Copyright 2021 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __CROS_EC_POWER_QCOM_H_ +#define __CROS_EC_POWER_QCOM_H_ + +#ifdef CONFIG_CHIPSET_SC7180 +enum power_signal { + SC7180_AP_RST_ASSERTED = 0, + SC7180_PS_HOLD, + SC7180_POWER_GOOD, + SC7180_WARM_RESET, + SC7180_AP_SUSPEND, + SC7180_DEPRECATED_AP_RST_REQ, + POWER_SIGNAL_COUNT, +}; +#endif + +/* Swithcap functions */ +void board_set_switchcap_power(int enable); +int board_is_switchcap_enabled(void); +int board_is_switchcap_power_good(void); + +#endif /* __CROS_EC_POWER_QCOM_H_ */ |