summaryrefslogtreecommitdiff
path: root/include/power
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-03-18 09:51:47 -0600
committerCommit Bot <commit-bot@chromium.org>2021-03-19 15:54:32 +0000
commit96d38288166ce3a21d256a88c71b21ea96928dbe (patch)
tree8d1f3e3339ddcca9f7f95eb3aa08653d3fa963ca /include/power
parent029571ba02454d4f6f0691170c2ba3b5214a71da (diff)
downloadchrome-ec-96d38288166ce3a21d256a88c71b21ea96928dbe.tar.gz
sc7180: move switchcap declarations to common header
sc7180 depends on board specific functions: - board_set_switchcap_power - board_is_switchcap_enabled - board_is_switchcap_power_good The declaration for these functions were copied between many board.h files. Move the declaration to the new sc7180.h file so it can be commonly sourced. BUG=b:183054226 BRANCH=none TEST=make buildall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Icecb6220bfecdbee665dacb0834ab5752b06815b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2774363 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/sc7180.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/power/sc7180.h b/include/power/sc7180.h
index 4b61fe539c..af066ea714 100644
--- a/include/power/sc7180.h
+++ b/include/power/sc7180.h
@@ -18,4 +18,9 @@ enum power_signal {
};
#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_SC7180_H_ */