From 96d38288166ce3a21d256a88c71b21ea96928dbe Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Thu, 18 Mar 2021 09:51:47 -0600 Subject: 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 Change-Id: Icecb6220bfecdbee665dacb0834ab5752b06815b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2774363 Reviewed-by: Wai-Hong Tam --- include/power/sc7180.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/power') 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_ */ -- cgit v1.2.1