diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-03-18 09:51:47 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-19 15:54:32 +0000 |
commit | 96d38288166ce3a21d256a88c71b21ea96928dbe (patch) | |
tree | 8d1f3e3339ddcca9f7f95eb3aa08653d3fa963ca /board/lazor | |
parent | 029571ba02454d4f6f0691170c2ba3b5214a71da (diff) | |
download | chrome-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 'board/lazor')
-rw-r--r-- | board/lazor/board.c | 1 | ||||
-rw-r--r-- | board/lazor/board.h | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/board/lazor/board.c b/board/lazor/board.c index e31c88dcc1..1886779009 100644 --- a/board/lazor/board.c +++ b/board/lazor/board.c @@ -27,6 +27,7 @@ #include "ln9310.h" #include "pi3usb9201.h" #include "power.h" +#include "power/sc7180.h" #include "power_button.h" #include "pwm.h" #include "pwm_chip.h" diff --git a/board/lazor/board.h b/board/lazor/board.h index 46e9c7b7dd..a6498671ee 100644 --- a/board/lazor/board.h +++ b/board/lazor/board.h @@ -121,10 +121,6 @@ enum battery_cell_type { BATTERY_CELL_TYPE_3S = 3 }; -/* Swithcap functions */ -void board_set_switchcap_power(int enable); -int board_is_switchcap_enabled(void); -int board_is_switchcap_power_good(void); enum battery_cell_type board_get_battery_cell_type(void); /* Custom function to indicate if sourcing VBUS */ int board_is_sourcing_vbus(int port); |