diff options
author | Wai-Hong Tam <waihong@google.com> | 2021-05-12 12:17:43 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-17 17:24:30 +0000 |
commit | 6e3cca09b86a8f8f6881563071e067f0440f99a6 (patch) | |
tree | 7808e1989964e904830113b444bad8125ab76d78 /include/power/qcom.h | |
parent | fa2f648597c0afb2644514b9c6b8af0e52987c25 (diff) | |
download | chrome-ec-6e3cca09b86a8f8f6881563071e067f0440f99a6.tar.gz |
qcom: Generalize the filenames for Qualcomm chipsets
The existing SC7180 power sequence can be reused on its next generation.
Generalize the filenames, sc7180.c/sc7180.h to qcom.c/qcom.h.
BRANCH=None
BUG=b:187980397
TEST=Built all the Chromium EC images and Zephyr EC images.
Change-Id: Ie04218ef0a12a4e8aa2db353040c5c39c533ae6f
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2893484
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
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_ */ |